summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/pipbug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pipbug.cpp')
-rw-r--r--src/mame/drivers/pipbug.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/mame/drivers/pipbug.cpp b/src/mame/drivers/pipbug.cpp
index b0464148490..6be0cb7708f 100644
--- a/src/mame/drivers/pipbug.cpp
+++ b/src/mame/drivers/pipbug.cpp
@@ -68,16 +68,18 @@ WRITE8_MEMBER( pipbug_state::pipbug_ctrl_w )
// 0x80 is written here - not connected in the baby 2650
}
-ADDRESS_MAP_START(pipbug_state::pipbug_mem)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE( 0x0000, 0x03ff) AM_ROM
- AM_RANGE( 0x0400, 0x7fff) AM_RAM
-ADDRESS_MAP_END
+void pipbug_state::pipbug_mem(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x0000, 0x03ff).rom();
+ map(0x0400, 0x7fff).ram();
+}
-ADDRESS_MAP_START(pipbug_state::pipbug_data)
+void pipbug_state::pipbug_data(address_map &map)
+{
// ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE(S2650_CTRL_PORT, S2650_CTRL_PORT) AM_WRITE(pipbug_ctrl_w)
-ADDRESS_MAP_END
+ map(S2650_CTRL_PORT, S2650_CTRL_PORT).w(this, FUNC(pipbug_state::pipbug_ctrl_w));
+}
/* Input ports */
static INPUT_PORTS_START( pipbug )