summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/st_mp100.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/st_mp100.cpp')
-rw-r--r--src/mame/drivers/st_mp100.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mame/drivers/st_mp100.cpp b/src/mame/drivers/st_mp100.cpp
index bae2b6a0eb0..bdef37e1c69 100644
--- a/src/mame/drivers/st_mp100.cpp
+++ b/src/mame/drivers/st_mp100.cpp
@@ -90,16 +90,17 @@ private:
};
-ADDRESS_MAP_START(st_mp100_state::st_mp100_map)
- ADDRESS_MAP_GLOBAL_MASK(0x1fff)
- AM_RANGE(0x0000, 0x007f) AM_RAM // internal to the cpu
- AM_RANGE(0x0088, 0x008b) AM_DEVREADWRITE("pia_u10", pia6821_device, read, write)
- AM_RANGE(0x0090, 0x0093) AM_DEVREADWRITE("pia_u11", pia6821_device, read, write)
- AM_RANGE(0x00a0, 0x00a7) AM_WRITENOP // to sound board
- AM_RANGE(0x00c0, 0x00c7) // to sound board
- AM_RANGE(0x0200, 0x02ff) AM_RAM AM_SHARE("nvram")
- AM_RANGE(0x1000, 0x1fff) AM_ROM AM_REGION("roms", 0 )
-ADDRESS_MAP_END
+void st_mp100_state::st_mp100_map(address_map &map)
+{
+ map.global_mask(0x1fff);
+ map(0x0000, 0x007f).ram(); // internal to the cpu
+ map(0x0088, 0x008b).rw(m_pia_u10, FUNC(pia6821_device::read), FUNC(pia6821_device::write));
+ map(0x0090, 0x0093).rw(m_pia_u11, FUNC(pia6821_device::read), FUNC(pia6821_device::write));
+ map(0x00a0, 0x00a7).nopw(); // to sound board
+ map(0x00c0, 0x00c7); // to sound board
+ map(0x0200, 0x02ff).ram().share("nvram");
+ map(0x1000, 0x1fff).rom().region("roms", 0);
+}
static INPUT_PORTS_START( mp100 )
PORT_START("TEST")