diff options
author | 2019-02-25 19:16:06 -0500 | |
---|---|---|
committer | 2019-02-25 19:17:01 -0500 | |
commit | 7a8a8cc5dbe6e1595b370f090d3477a9900c62a7 (patch) | |
tree | d1a279cf21aebd232d89dd084a5300078263e9ee /src/devices/bus/nes/cony.cpp | |
parent | d19a46aed8e70d48131c48d26a67208bf0d4ca71 (diff) |
bus/nes, vrc6: Simplify read/write handlers; misc. minor changes (nw)
- Hide m_open_bus behind accessor
- De-virtualize a few methods without actual overrides
Diffstat (limited to 'src/devices/bus/nes/cony.cpp')
-rw-r--r-- | src/devices/bus/nes/cony.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/nes/cony.cpp b/src/devices/bus/nes/cony.cpp index 78c89a57141..e42ae833f82 100644 --- a/src/devices/bus/nes/cony.cpp +++ b/src/devices/bus/nes/cony.cpp @@ -174,7 +174,7 @@ void nes_cony_device::device_timer(emu_timer &timer, device_timer_id id, int par } } -WRITE8_MEMBER(nes_cony_device::write_l) +void nes_cony_device::write_l(offs_t offset, uint8_t data) { LOG_MMC(("cony write_l, offset: %04x, data: %02x\n", offset, data)); @@ -182,7 +182,7 @@ WRITE8_MEMBER(nes_cony_device::write_l) m_low_reg[offset & 0x03] = data; } -READ8_MEMBER(nes_cony_device::read_l) +uint8_t nes_cony_device::read_l(offs_t offset) { LOG_MMC(("cony read_l, offset: %04x\n", offset)); @@ -229,7 +229,7 @@ void nes_cony_device::set_chr() } } -WRITE8_MEMBER(nes_cony_device::write_h) +void nes_cony_device::write_h(offs_t offset, uint8_t data) { LOG_MMC(("cony write_h, offset: %04x, data: %02x\n", offset, data)); @@ -310,7 +310,7 @@ WRITE8_MEMBER(nes_cony_device::write_h) -------------------------------------------------*/ -WRITE8_MEMBER(nes_yoko_device::write_l) +void nes_yoko_device::write_l(offs_t offset, uint8_t data) { LOG_MMC(("yoko write_l, offset: %04x, data: %02x\n", offset, data)); @@ -318,7 +318,7 @@ WRITE8_MEMBER(nes_yoko_device::write_l) m_low_reg[offset & 0x03] = data; } -READ8_MEMBER(nes_yoko_device::read_l) +uint8_t nes_yoko_device::read_l(offs_t offset) { LOG_MMC(("yoko read_l, offset: %04x\n", offset)); @@ -359,7 +359,7 @@ void nes_yoko_device::set_chr() chr2_6(m_reg[7], CHRROM); } -WRITE8_MEMBER(nes_yoko_device::write_h) +void nes_yoko_device::write_h(offs_t offset, uint8_t data) { LOG_MMC(("yoko write_h, offset: %04x, data: %02x\n", offset, data)); |