summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sg1000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sg1000.cpp')
-rw-r--r--src/mame/drivers/sg1000.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/sg1000.cpp b/src/mame/drivers/sg1000.cpp
index c9ce4f770fc..984a5bf6d80 100644
--- a/src/mame/drivers/sg1000.cpp
+++ b/src/mame/drivers/sg1000.cpp
@@ -194,13 +194,13 @@ void sg1000_state::sc3000_io_map(address_map &map)
}
/* This is how the I/O ports are really mapped, but MAME does not support overlapping ranges
-ADDRESS_MAP_START(sg1000_state::sc3000_io_map)
- ADDRESS_MAP_GLOBAL_MASK(0xff)
- map(0x00, 0x00) AM_MIRROR(0xdf) AM_DEVREADWRITE(UPD9255_TAG, i8255_device, read, write)
- map(0x00, 0x00) AM_MIRROR(0x7f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_device, write)
- map(0x00, 0x00) AM_MIRROR(0xae) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, vram_read, vram_write)
- map(0x01, 0x01) AM_MIRROR(0xae) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, register_read, register_write)
- map(0x60, 0x60) AM_MIRROR(0x9f) AM_READ(sc3000_r_r)
+void sg1000_state::sc3000_io_map(address_map &map)
+ map.global_mask(0xff);
+ map(0x00, 0x00).mirror(0xdf).rw(UPD9255_TAG, FUNC(i8255_device::read), FUNC(i8255_device::write));
+ map(0x00, 0x00).mirror(0x7f).w(SN76489AN_TAG, FUNC(sn76489a_device::write));
+ map(0x00, 0x00).mirror(0xae).rw(TMS9918A_TAG, FUNC(tms9918a_device::vram_read), FUNC(tms9918a_device::vram_write));
+ map(0x01, 0x01).mirror(0xae).rw(TMS9918A_TAG, FUNC(tms9918a_device::register_read), FUNC(tms9918a_device::register_write));
+ map(0x60, 0x60).mirror(0x9f).r(this, FUNC(sg1000_state::sc3000_r_r));
ADDRESS_MAP_END
*/