summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/ice_tbd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ice_tbd.cpp')
-rw-r--r--src/mame/drivers/ice_tbd.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mame/drivers/ice_tbd.cpp b/src/mame/drivers/ice_tbd.cpp
index 57d85284d88..dcc452384d4 100644
--- a/src/mame/drivers/ice_tbd.cpp
+++ b/src/mame/drivers/ice_tbd.cpp
@@ -40,15 +40,17 @@ private:
-ADDRESS_MAP_START(ice_tbd_state::ice_tbd_map)
- AM_RANGE(0x0000, 0x3fff) AM_ROM
- AM_RANGE(0x4000, 0x47ff) AM_RAM
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(ice_tbd_state::ice_tbd_io_map)
- ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ppi", i8255_device, read, write)
-ADDRESS_MAP_END
+void ice_tbd_state::ice_tbd_map(address_map &map)
+{
+ map(0x0000, 0x3fff).rom();
+ map(0x4000, 0x47ff).ram();
+}
+
+void ice_tbd_state::ice_tbd_io_map(address_map &map)
+{
+ map.global_mask(0xff);
+ map(0x00, 0x03).rw("ppi", FUNC(i8255_device::read), FUNC(i8255_device::write));
+}
static INPUT_PORTS_START( ice_tbd )