summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/manohman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/manohman.cpp')
-rw-r--r--src/mame/drivers/manohman.cpp23
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?)
+}
/*