diff options
author | 2018-04-20 21:00:11 +1000 | |
---|---|---|
committer | 2018-04-20 21:00:11 +1000 | |
commit | bea4983d34b380904d3dafd77db49041bae032e6 (patch) | |
tree | 2c3182325d43691c623bba92e5d7768cf53945a7 /src/mame/machine/wpc_shift.cpp | |
parent | 38f182d987d4e69e06b7991de43adfaee89e290a (diff) | |
parent | d7f5f63ce82d2e2d4e1b0de7842aeb12700becd2 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/mame/machine/wpc_shift.cpp')
-rw-r--r-- | src/mame/machine/wpc_shift.cpp | 13 |
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) |