summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/wpc_shift.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/wpc_shift.cpp')
-rw-r--r--src/mame/machine/wpc_shift.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/machine/wpc_shift.cpp b/src/mame/machine/wpc_shift.cpp
index 0dd7c30fff9..59f9c6e42d9 100644
--- a/src/mame/machine/wpc_shift.cpp
+++ b/src/mame/machine/wpc_shift.cpp
@@ -15,12 +15,13 @@ wpc_shift_device::~wpc_shift_device()
{
}
-ADDRESS_MAP_START(wpc_shift_device::registers)
- AM_RANGE(0, 0) AM_READWRITE(adrh_r, adrh_w)
- AM_RANGE(1, 1) AM_READWRITE(adrl_r, adrl_w)
- AM_RANGE(2, 2) AM_READWRITE(val1_r, val1_w)
- AM_RANGE(3, 3) AM_READWRITE(val2_r, val2_w)
-ADDRESS_MAP_END
+void wpc_shift_device::registers(address_map &map)
+{
+ map(0, 0).rw(this, FUNC(wpc_shift_device::adrh_r), FUNC(wpc_shift_device::adrh_w));
+ map(1, 1).rw(this, FUNC(wpc_shift_device::adrl_r), FUNC(wpc_shift_device::adrl_w));
+ map(2, 2).rw(this, FUNC(wpc_shift_device::val1_r), FUNC(wpc_shift_device::val1_w));
+ map(3, 3).rw(this, FUNC(wpc_shift_device::val2_r), FUNC(wpc_shift_device::val2_w));
+}
READ8_MEMBER(wpc_shift_device::adrh_r)