summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/lpc-rtc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/lpc-rtc.cpp')
-rw-r--r--src/devices/machine/lpc-rtc.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/devices/machine/lpc-rtc.cpp b/src/devices/machine/lpc-rtc.cpp
index 24e9f34652a..9c7e542db56 100644
--- a/src/devices/machine/lpc-rtc.cpp
+++ b/src/devices/machine/lpc-rtc.cpp
@@ -5,15 +5,17 @@
DEFINE_DEVICE_TYPE(LPC_RTC, lpc_rtc_device, "lpc_rpc", "LPC RTC")
-ADDRESS_MAP_START(lpc_rtc_device::map)
- AM_RANGE(0x70, 0x77) AM_READWRITE8(index_r, index_w, 0x00ff00ff)
- AM_RANGE(0x70, 0x77) AM_READWRITE8(target_r, target_w, 0xff00ff00)
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(lpc_rtc_device::extmap)
- AM_RANGE(0x70, 0x77) AM_READWRITE8(extindex_r, extindex_w, 0x00ff0000)
- AM_RANGE(0x70, 0x77) AM_READWRITE8(exttarget_r, exttarget_w, 0xff000000)
-ADDRESS_MAP_END
+void lpc_rtc_device::map(address_map &map)
+{
+ map(0x70, 0x77).rw(this, FUNC(lpc_rtc_device::index_r), FUNC(lpc_rtc_device::index_w)).umask32(0x00ff00ff);
+ map(0x70, 0x77).rw(this, FUNC(lpc_rtc_device::target_r), FUNC(lpc_rtc_device::target_w)).umask32(0xff00ff00);
+}
+
+void lpc_rtc_device::extmap(address_map &map)
+{
+ map(0x70, 0x77).rw(this, FUNC(lpc_rtc_device::extindex_r), FUNC(lpc_rtc_device::extindex_w)).umask32(0x00ff0000);
+ map(0x70, 0x77).rw(this, FUNC(lpc_rtc_device::exttarget_r), FUNC(lpc_rtc_device::exttarget_w)).umask32(0xff000000);
+}
lpc_rtc_device::lpc_rtc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: lpc_device(mconfig, LPC_RTC, tag, owner, clock), cur_index(0), cur_extindex(0)