diff options
Diffstat (limited to 'src/mame/drivers/st_mp200.cpp')
-rw-r--r-- | src/mame/drivers/st_mp200.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mame/drivers/st_mp200.cpp b/src/mame/drivers/st_mp200.cpp index da0a7c3f231..281920d61af 100644 --- a/src/mame/drivers/st_mp200.cpp +++ b/src/mame/drivers/st_mp200.cpp @@ -104,16 +104,17 @@ private: }; -ADDRESS_MAP_START(st_mp200_state::st_mp200_map) +void st_mp200_state::st_mp200_map(address_map &map) +{ //ADDRESS_MAP_GLOBAL_MASK(0x7fff) - 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, 0xffff) AM_ROM //AM_REGION("roms", 0 ) -ADDRESS_MAP_END + 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, 0xffff).rom(); //AM_REGION("roms", 0 ) +} static INPUT_PORTS_START( mp200 ) PORT_START("TEST") |