summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/eolith.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-04-19 23:04:02 +0200
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-04-19 23:04:31 +0200
commit0234bc52f4f1ad7aebf54f7450bf6a23c06411a4 (patch)
tree345821288c55da10a33676051f1c5965f9437def /src/mame/drivers/eolith.cpp
parentd207fca25023e5bed8498a4c55d41ae5eca9a72d (diff)
downloadmame-0234bc52f4f1ad7aebf54f7450bf6a23c06411a4.tar.xz
mame-0234bc52f4f1ad7aebf54f7450bf6a23c06411a4.zip
maps: Finish mame/drivers (nw)
Diffstat (limited to 'src/mame/drivers/eolith.cpp')
-rw-r--r--src/mame/drivers/eolith.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/drivers/eolith.cpp b/src/mame/drivers/eolith.cpp
index 90f0f4020e5..32ba147b82f 100644
--- a/src/mame/drivers/eolith.cpp
+++ b/src/mame/drivers/eolith.cpp
@@ -231,13 +231,14 @@ void eolith_state::eolith_map(address_map &map)
map(0xfff80000, 0xffffffff).rom().region("maincpu", 0);
}
-ADDRESS_MAP_START(eolith_state::hidctch3_map)
- AM_IMPORT_FROM(eolith_map)
- AM_RANGE(0xfc200000, 0xfc200003) AM_WRITENOP // this generates pens vibration
+void eolith_state::hidctch3_map(address_map &map)
+{
+ eolith_map(map);
+ map(0xfc200000, 0xfc200003).nopw(); // this generates pens vibration
// It is not clear why the first reads are needed too
- AM_RANGE(0xfce00000, 0xfce00003) AM_MIRROR(0x00080000) AM_READ(hidctch3_pen_r<0>)
- AM_RANGE(0xfcf00000, 0xfcf00003) AM_MIRROR(0x00080000) AM_READ(hidctch3_pen_r<1>)
-ADDRESS_MAP_END
+ map(0xfce00000, 0xfce00003).mirror(0x00080000).r(this, FUNC(eolith_state::hidctch3_pen_r<0>));
+ map(0xfcf00000, 0xfcf00003).mirror(0x00080000).r(this, FUNC(eolith_state::hidctch3_pen_r<1>));
+}
/*************************************