summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/c80.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/c80.cpp')
-rw-r--r--src/mame/drivers/c80.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mame/drivers/c80.cpp b/src/mame/drivers/c80.cpp
index 3411bf15fda..e1b3c5c1531 100644
--- a/src/mame/drivers/c80.cpp
+++ b/src/mame/drivers/c80.cpp
@@ -63,17 +63,19 @@ data of next byte, and so on.
/* Memory Maps */
-ADDRESS_MAP_START(c80_state::c80_mem)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE(0x0000, 0x07ff) AM_ROM
- AM_RANGE(0x0800, 0x0bff) AM_MIRROR(0x400) AM_RAM
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(c80_state::c80_io)
- ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x7c, 0x7f) AM_DEVREADWRITE(Z80PIO2_TAG, z80pio_device, read, write)
- AM_RANGE(0xbc, 0xbf) AM_DEVREADWRITE(Z80PIO1_TAG, z80pio_device, read, write)
-ADDRESS_MAP_END
+void c80_state::c80_mem(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x0000, 0x07ff).rom();
+ map(0x0800, 0x0bff).mirror(0x400).ram();
+}
+
+void c80_state::c80_io(address_map &map)
+{
+ map.global_mask(0xff);
+ map(0x7c, 0x7f).rw(Z80PIO2_TAG, FUNC(z80pio_device::read), FUNC(z80pio_device::write));
+ map(0xbc, 0xbf).rw(m_pio1, FUNC(z80pio_device::read), FUNC(z80pio_device::write));
+}
/* Input Ports */