summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/cxgz80.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cxgz80.cpp')
-rw-r--r--src/mame/drivers/cxgz80.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/drivers/cxgz80.cpp b/src/mame/drivers/cxgz80.cpp
index 490c1fbec5a..7fc17cf9435 100644
--- a/src/mame/drivers/cxgz80.cpp
+++ b/src/mame/drivers/cxgz80.cpp
@@ -268,12 +268,13 @@ READ8_MEMBER(cxgz80_state::ch2001_input_r)
// Chess 2001
-ADDRESS_MAP_START(cxgz80_state::ch2001_map)
- AM_RANGE(0x0000, 0x3fff) AM_ROM
- AM_RANGE(0x4000, 0x47ff) AM_MIRROR(0x3800) AM_RAM
- AM_RANGE(0x8000, 0x8000) AM_MIRROR(0x3fff) AM_READWRITE(ch2001_input_r, ch2001_leds_w)
- AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x3fff) AM_WRITE(ch2001_speaker_on_w)
-ADDRESS_MAP_END
+void cxgz80_state::ch2001_map(address_map &map)
+{
+ map(0x0000, 0x3fff).rom();
+ map(0x4000, 0x47ff).mirror(0x3800).ram();
+ map(0x8000, 0x8000).mirror(0x3fff).rw(this, FUNC(cxgz80_state::ch2001_input_r), FUNC(cxgz80_state::ch2001_leds_w));
+ map(0xc000, 0xc000).mirror(0x3fff).w(this, FUNC(cxgz80_state::ch2001_speaker_on_w));
+}