summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/cvicny.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cvicny.cpp')
-rw-r--r--src/mame/drivers/cvicny.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/drivers/cvicny.cpp b/src/mame/drivers/cvicny.cpp
index f78ffc91a35..4cf6a80a593 100644
--- a/src/mame/drivers/cvicny.cpp
+++ b/src/mame/drivers/cvicny.cpp
@@ -77,14 +77,15 @@ READ8_MEMBER( cvicny_state::key_r )
return ((data << 4) ^ 0xf0) | data;
}
-ADDRESS_MAP_START(cvicny_state::cvicny_mem)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE(0x0000, 0x07ff) AM_ROM // 1 x 2716
- AM_RANGE(0x0800, 0x0bff) AM_RAM AM_MIRROR(0x400) // 2x 2114 static ram
- AM_RANGE(0x1000, 0x17ff) AM_READ(key_r)
- AM_RANGE(0x1800, 0x1fff) AM_WRITE(digit_w)
- AM_RANGE(0x2000, 0x27ff) AM_WRITE(segment_w)
-ADDRESS_MAP_END
+void cvicny_state::cvicny_mem(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x0000, 0x07ff).rom(); // 1 x 2716
+ map(0x0800, 0x0bff).ram().mirror(0x400); // 2x 2114 static ram
+ map(0x1000, 0x17ff).r(this, FUNC(cvicny_state::key_r));
+ map(0x1800, 0x1fff).w(this, FUNC(cvicny_state::digit_w));
+ map(0x2000, 0x27ff).w(this, FUNC(cvicny_state::segment_w));
+}
/* Input ports */