summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/bml3/bml3rtc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/bml3/bml3rtc.cpp')
-rw-r--r--src/devices/bus/bml3/bml3rtc.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/devices/bus/bml3/bml3rtc.cpp b/src/devices/bus/bml3/bml3rtc.cpp
index eced1123289..28971440f49 100644
--- a/src/devices/bus/bml3/bml3rtc.cpp
+++ b/src/devices/bus/bml3/bml3rtc.cpp
@@ -35,7 +35,7 @@ void bml3bus_rtc_device::device_add_mconfig(machine_config &config)
}
-READ8_MEMBER(bml3bus_rtc_device::bml3_rtc_r)
+uint8_t bml3bus_rtc_device::bml3_rtc_r(offs_t offset)
{
uint8_t data = 0x00;
@@ -53,7 +53,7 @@ READ8_MEMBER(bml3bus_rtc_device::bml3_rtc_r)
return data | 0xf0; // return low nibble only
}
-WRITE8_MEMBER(bml3bus_rtc_device::bml3_rtc_w)
+void bml3bus_rtc_device::bml3_rtc_w(offs_t offset, uint8_t data)
{
switch (offset)
{
@@ -95,13 +95,15 @@ bml3bus_rtc_device::bml3bus_rtc_device(const machine_config &mconfig, const char
void bml3bus_rtc_device::device_start()
{
- // install into memory
- address_space &space_prg = space();
- space_prg.install_readwrite_handler(0xff38, 0xff3a, read8_delegate(*this, FUNC(bml3bus_rtc_device::bml3_rtc_r)), write8_delegate(*this, FUNC(bml3bus_rtc_device::bml3_rtc_w)));
-
m_addr_latch = 0;
m_data_latch = 0;
save_item(NAME(m_addr_latch));
save_item(NAME(m_data_latch));
}
+
+void bml3bus_rtc_device::map_io(address_space_installer &space)
+{
+ // install into memory
+ space.install_readwrite_handler(0xff38, 0xff3a, read8sm_delegate(*this, FUNC(bml3bus_rtc_device::bml3_rtc_r)), write8sm_delegate(*this, FUNC(bml3bus_rtc_device::bml3_rtc_w)));
+}