summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/elf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/elf.cpp')
-rw-r--r--src/mame/drivers/elf.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mame/drivers/elf.cpp b/src/mame/drivers/elf.cpp
index d0f4a77519d..0f0fc2422b1 100644
--- a/src/mame/drivers/elf.cpp
+++ b/src/mame/drivers/elf.cpp
@@ -74,17 +74,19 @@ WRITE8_MEMBER( elf2_state::memory_w )
/* Memory Maps */
-ADDRESS_MAP_START(elf2_state::elf2_mem)
- ADDRESS_MAP_UNMAP_HIGH
- ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x0000, 0x00ff) AM_RAMBANK("bank1")
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(elf2_state::elf2_io)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE(0x01, 0x01) AM_READ(dispon_r)
- AM_RANGE(0x04, 0x04) AM_READWRITE(data_r, data_w)
-ADDRESS_MAP_END
+void elf2_state::elf2_mem(address_map &map)
+{
+ map.unmap_value_high();
+ map.global_mask(0xff);
+ map(0x0000, 0x00ff).bankrw("bank1");
+}
+
+void elf2_state::elf2_io(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x01, 0x01).r(this, FUNC(elf2_state::dispon_r));
+ map(0x04, 0x04).rw(this, FUNC(elf2_state::data_r), FUNC(elf2_state::data_w));
+}
/* Input Ports */