diff options
Diffstat (limited to 'src/devices/bus/gamate/rom.cpp')
-rw-r--r-- | src/devices/bus/gamate/rom.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/bus/gamate/rom.cpp b/src/devices/bus/gamate/rom.cpp index 74af9e76160..7301b6bdfc7 100644 --- a/src/devices/bus/gamate/rom.cpp +++ b/src/devices/bus/gamate/rom.cpp @@ -77,11 +77,11 @@ void gamate_rom_4in1_device::device_reset() -------------------------------------------------*/ -READ8_MEMBER(gamate_rom_plain_device::read_cart) +uint8_t gamate_rom_plain_device::read_cart(offs_t offset) { if (m_protection->is_protection_passed()) { - return read_rom(space, offset, mem_mask); + return read_rom(offset); } else { @@ -91,12 +91,12 @@ READ8_MEMBER(gamate_rom_plain_device::read_cart) return 0xff; } -READ8_MEMBER(gamate_rom_plain_device::read_rom) +uint8_t gamate_rom_plain_device::read_rom(offs_t offset) { return m_rom[offset & (m_rom_size-1)]; } -READ8_MEMBER(gamate_rom_banked_device::read_rom) +uint8_t gamate_rom_banked_device::read_rom(offs_t offset) { if (offset < 0x4000) { @@ -110,7 +110,7 @@ READ8_MEMBER(gamate_rom_banked_device::read_rom) return 0xff; } -READ8_MEMBER(gamate_rom_4in1_device::read_rom) +uint8_t gamate_rom_4in1_device::read_rom(offs_t offset) { if (offset < 0x4000) { @@ -122,11 +122,11 @@ READ8_MEMBER(gamate_rom_4in1_device::read_rom) } } -WRITE8_MEMBER(gamate_rom_plain_device::write_cart) +void gamate_rom_plain_device::write_cart(offs_t offset, uint8_t data) { if (m_protection->is_protection_passed()) { - write_rom(space, offset, data, mem_mask); + write_rom(offset, data); } else { @@ -134,13 +134,13 @@ WRITE8_MEMBER(gamate_rom_plain_device::write_cart) } } -WRITE8_MEMBER(gamate_rom_plain_device::write_rom) +void gamate_rom_plain_device::write_rom(offs_t offset, uint8_t data) { // shouldn't be any write on an unbanked game logerror("gamate_rom_plain_device::write_rom %04x %02x\n", offset, data); } -WRITE8_MEMBER(gamate_rom_banked_device::write_rom) +void gamate_rom_banked_device::write_rom(offs_t offset, uint8_t data) { if (offset == 0x6000) { @@ -152,7 +152,7 @@ WRITE8_MEMBER(gamate_rom_banked_device::write_rom) } } -WRITE8_MEMBER(gamate_rom_4in1_device::write_rom) +void gamate_rom_4in1_device::write_rom(offs_t offset, uint8_t data) { if (offset == 0x2000) { |