diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2020-05-31 13:50:26 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2020-05-31 13:50:26 -0400 |
commit | b68afeeac40f6cbc629f0f1bda1c12c4bebacddb (patch) | |
tree | e0b3098be5d4ffa5c4ca2aa6cd83cc80018f3b04 /src/devices/bus/sms_exp/smsexp.h | |
parent | b2991c51fe744bf898445ae2f52eee35b2feabe8 (diff) |
sg1000.cpp, sms.cpp & associated buses: Simplify handler signatures (nw)
Diffstat (limited to 'src/devices/bus/sms_exp/smsexp.h')
-rw-r--r-- | src/devices/bus/sms_exp/smsexp.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/bus/sms_exp/smsexp.h b/src/devices/bus/sms_exp/smsexp.h index 1169bf3f58a..1fb6a709468 100644 --- a/src/devices/bus/sms_exp/smsexp.h +++ b/src/devices/bus/sms_exp/smsexp.h @@ -29,11 +29,11 @@ public: virtual ~device_sms_expansion_slot_interface(); // reading and writing - virtual DECLARE_READ8_MEMBER(read) { return 0xff; } - virtual DECLARE_WRITE8_MEMBER(write) { } - virtual DECLARE_WRITE8_MEMBER(write_mapper) { } - virtual DECLARE_READ8_MEMBER(read_ram) { return 0xff; } - virtual DECLARE_WRITE8_MEMBER(write_ram) { } + virtual uint8_t read(offs_t offset) { return 0xff; } + virtual void write(offs_t offset, uint8_t data) { } + virtual void write_mapper(offs_t offset, uint8_t data) { } + virtual uint8_t read_ram(offs_t offset) { return 0xff; } + virtual void write_ram(offs_t offset, uint8_t data) { } virtual int get_lphaser_xoffs() { return 0; } @@ -61,11 +61,11 @@ public: virtual ~sms_expansion_slot_device(); // reading and writing - DECLARE_READ8_MEMBER(read) { return m_device ? m_device->read(space, offset, mem_mask) : 0xff; } - DECLARE_WRITE8_MEMBER(write) { if (m_device) m_device->write(space, offset, data, mem_mask); } - DECLARE_WRITE8_MEMBER(write_mapper) { if (m_device) m_device->write_mapper(space, offset, data, mem_mask); } - DECLARE_READ8_MEMBER(read_ram) { return m_device ? m_device->read_ram(space, offset, mem_mask) : 0xff; } - DECLARE_WRITE8_MEMBER(write_ram) { if (m_device) m_device->write_ram(space, offset, data, mem_mask); } + uint8_t read(offs_t offset) { return m_device ? m_device->read(offset) : 0xff; } + void write(offs_t offset, uint8_t data) { if (m_device) m_device->write(offset, data); } + void write_mapper(offs_t offset, uint8_t data) { if (m_device) m_device->write_mapper(offset, data); } + uint8_t read_ram(offs_t offset) { return m_device ? m_device->read_ram(offset) : 0xff; } + void write_ram(offs_t offset, uint8_t data) { if (m_device) m_device->write_ram(offset, data); } int get_lphaser_xoffs() { return m_device ? m_device->get_lphaser_xoffs() : 0; } |