summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/elekscmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/elekscmp.cpp')
-rw-r--r--src/mame/drivers/elekscmp.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/drivers/elekscmp.cpp b/src/mame/drivers/elekscmp.cpp
index 7fe1c306533..e9d2e376be7 100644
--- a/src/mame/drivers/elekscmp.cpp
+++ b/src/mame/drivers/elekscmp.cpp
@@ -98,14 +98,15 @@ READ8_MEMBER(elekscmp_state::keyboard_r)
return 0;
}
-ADDRESS_MAP_START(elekscmp_state::mem_map)
- ADDRESS_MAP_UNMAP_HIGH
- ADDRESS_MAP_GLOBAL_MASK(0x0fff)
- AM_RANGE(0x000, 0x5ff) AM_ROM // ROM
- AM_RANGE(0x700, 0x707) AM_WRITE(hex_display_w)
- AM_RANGE(0x708, 0x70f) AM_READ(keyboard_r)
- AM_RANGE(0x800, 0xfff) AM_RAM // RAM - up to 2K of RAM
-ADDRESS_MAP_END
+void elekscmp_state::mem_map(address_map &map)
+{
+ map.unmap_value_high();
+ map.global_mask(0x0fff);
+ map(0x000, 0x5ff).rom(); // ROM
+ map(0x700, 0x707).w(this, FUNC(elekscmp_state::hex_display_w));
+ map(0x708, 0x70f).r(this, FUNC(elekscmp_state::keyboard_r));
+ map(0x800, 0xfff).ram(); // RAM - up to 2K of RAM
+}
/* Input ports */
static INPUT_PORTS_START( elekscmp )