summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/wangpc/rtc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/wangpc/rtc.cpp')
-rw-r--r--src/devices/bus/wangpc/rtc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/wangpc/rtc.cpp b/src/devices/bus/wangpc/rtc.cpp
index 794510e142b..dbff0547a4f 100644
--- a/src/devices/bus/wangpc/rtc.cpp
+++ b/src/devices/bus/wangpc/rtc.cpp
@@ -70,7 +70,7 @@ void wangpc_rtc_device::wangpc_rtc_mem(address_map &map)
void wangpc_rtc_device::wangpc_rtc_io(address_map &map)
{
map.global_mask(0xff);
- map(0x00, 0x03).rw(Z80SIO_TAG, FUNC(z80sio0_device::cd_ba_r), FUNC(z80sio0_device::cd_ba_w));
+ map(0x00, 0x03).rw(m_sio, FUNC(z80sio0_device::cd_ba_r), FUNC(z80sio0_device::cd_ba_w));
map(0x10, 0x1f).rw(AM9517A_TAG, FUNC(am9517a_device::read), FUNC(am9517a_device::write));
map(0x20, 0x23).rw(Z80CTC_0_TAG, FUNC(z80ctc_device::read), FUNC(z80ctc_device::write));
map(0x30, 0x30); //AM_WRITE(clear_char_w)
@@ -119,8 +119,8 @@ MACHINE_CONFIG_START(wangpc_rtc_device::device_add_mconfig)
MCFG_DEVICE_ADD(Z80CTC_1_TAG, Z80CTC, 2000000)
MCFG_Z80CTC_INTR_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_DEVICE_ADD(Z80SIO_TAG, Z80SIO0, 2000000)
- MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
+ Z80SIO0(config, m_sio, 2000000);
+ m_sio->out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
MACHINE_CONFIG_END