diff options
author | 2018-03-13 07:36:43 +0100 | |
---|---|---|
committer | 2018-03-14 14:07:14 +0100 | |
commit | 115bb9936c5cd3faf955d7eb1e251a94e4744b7b (patch) | |
tree | f0230f547f6c750f9974c61479eef28cbe4ad571 /src/mame/drivers/manohman.cpp | |
parent | f155992daab88ad024cec995428a67108218b51d (diff) |
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/mame/drivers/manohman.cpp')
-rw-r--r-- | src/mame/drivers/manohman.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/mame/drivers/manohman.cpp b/src/mame/drivers/manohman.cpp index bd23d434f16..58fc68cd36a 100644 --- a/src/mame/drivers/manohman.cpp +++ b/src/mame/drivers/manohman.cpp @@ -186,17 +186,18 @@ IRQ_CALLBACK_MEMBER(manohman_state::iack_handler) * Memory Map Definition * *********************************************/ -ADDRESS_MAP_START(manohman_state::mem_map) - AM_RANGE(0x000000, 0x01ffff) AM_ROM - AM_RANGE(0x100000, 0x10003f) AM_DEVREADWRITE8("pit", pit68230_device, read, write, 0x00ff) - AM_RANGE(0x200000, 0x20001f) AM_DEVREADWRITE8("duart", mc68681_device, read, write, 0x00ff) - AM_RANGE(0x300000, 0x300003) AM_DEVWRITE8("saa", saa1099_device, write, 0x00ff) AM_READNOP - AM_RANGE(0x400000, 0x40001f) AM_DEVREADWRITE8("rtc", msm6242_device, read, write, 0x00ff) - AM_RANGE(0x500000, 0x503fff) AM_RAM AM_SHARE("nvram") //work RAM - AM_RANGE(0x600002, 0x600003) AM_WRITENOP // output through shift register? - AM_RANGE(0x600004, 0x600005) AM_READNOP - AM_RANGE(0x600006, 0x600007) AM_NOP //(r) is discarded (watchdog?) -ADDRESS_MAP_END +void manohman_state::mem_map(address_map &map) +{ + map(0x000000, 0x01ffff).rom(); + map(0x100000, 0x10003f).rw(m_pit, FUNC(pit68230_device::read), FUNC(pit68230_device::write)).umask16(0x00ff); + map(0x200000, 0x20001f).rw(m_duart, FUNC(mc68681_device::read), FUNC(mc68681_device::write)).umask16(0x00ff); + map(0x300000, 0x300003).w("saa", FUNC(saa1099_device::write)).umask16(0x00ff).nopr(); + map(0x400000, 0x40001f).rw("rtc", FUNC(msm6242_device::read), FUNC(msm6242_device::write)).umask16(0x00ff); + map(0x500000, 0x503fff).ram().share("nvram"); //work RAM + map(0x600002, 0x600003).nopw(); // output through shift register? + map(0x600004, 0x600005).nopr(); + map(0x600006, 0x600007).noprw(); //(r) is discarded (watchdog?) +} /* |