summaryrefslogtreecommitdiffstats
path: root/src/devices/bus/msx_slot/panasonic08.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/msx_slot/panasonic08.h')
-rw-r--r--src/devices/bus/msx_slot/panasonic08.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/devices/bus/msx_slot/panasonic08.h b/src/devices/bus/msx_slot/panasonic08.h
index b21a4964e3b..33da0b6620b 100644
--- a/src/devices/bus/msx_slot/panasonic08.h
+++ b/src/devices/bus/msx_slot/panasonic08.h
@@ -12,6 +12,10 @@
DECLARE_DEVICE_TYPE(MSX_SLOT_PANASONIC08, msx_slot_panasonic08_device)
+#define MCFG_MSX_SLOT_PANASONIC08_ADD(_tag, _startpage, _numpages, _region, _offset) \
+ MCFG_MSX_INTERNAL_SLOT_ADD(_tag, MSX_SLOT_PANASONIC08, _startpage, _numpages) \
+ downcast<msx_slot_panasonic08_device &>(*device).set_rom_start(_region, _offset);
+
class msx_slot_panasonic08_device : public device_t, public msx_internal_slot_interface
{
public:
@@ -20,12 +24,11 @@ public:
// configuration helpers
void set_rom_start(const char *region, uint32_t offset) { m_rom_region.set_tag(region); m_region_offset = offset; }
- virtual uint8_t read(offs_t offset) override;
- virtual void write(offs_t offset, uint8_t data) override;
+ virtual DECLARE_READ8_MEMBER(read) override;
+ virtual DECLARE_WRITE8_MEMBER(write) override;
protected:
virtual void device_start() override;
- virtual void device_post_load() override;
virtual void device_add_mconfig(machine_config &config) override;