summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/icecold.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/icecold.cpp')
-rw-r--r--src/mame/drivers/icecold.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mame/drivers/icecold.cpp b/src/mame/drivers/icecold.cpp
index 45473aef6e2..511ee25e91f 100644
--- a/src/mame/drivers/icecold.cpp
+++ b/src/mame/drivers/icecold.cpp
@@ -67,15 +67,16 @@ public:
void icecold_map(address_map &map);
};
-ADDRESS_MAP_START(icecold_state::icecold_map)
- AM_RANGE(0x0000, 0x07ff) AM_RAM
- AM_RANGE(0x4010, 0x4013) AM_DEVREADWRITE("pia0", pia6821_device, read, write)
- AM_RANGE(0x4020, 0x4023) AM_DEVREADWRITE("pia1", pia6821_device, read, write)
- AM_RANGE(0x4040, 0x4043) AM_DEVREADWRITE("pia2", pia6821_device, read, write) // not used
- AM_RANGE(0x4080, 0x4081) AM_DEVREADWRITE("i8279", i8279_device, read, write)
- AM_RANGE(0x4100, 0x4100) AM_WRITE(motors_w)
- AM_RANGE(0xa000, 0xffff) AM_ROM
-ADDRESS_MAP_END
+void icecold_state::icecold_map(address_map &map)
+{
+ map(0x0000, 0x07ff).ram();
+ map(0x4010, 0x4013).rw("pia0", FUNC(pia6821_device::read), FUNC(pia6821_device::write));
+ map(0x4020, 0x4023).rw(m_pia1, FUNC(pia6821_device::read), FUNC(pia6821_device::write));
+ map(0x4040, 0x4043).rw("pia2", FUNC(pia6821_device::read), FUNC(pia6821_device::write)); // not used
+ map(0x4080, 0x4081).rw("i8279", FUNC(i8279_device::read), FUNC(i8279_device::write));
+ map(0x4100, 0x4100).w(this, FUNC(icecold_state::motors_w));
+ map(0xa000, 0xffff).rom();
+}
static INPUT_PORTS_START( icecold )
PORT_START("DSW3")