diff options
Diffstat (limited to 'src/devices/bus/wangpc/rtc.cpp')
-rw-r--r-- | src/devices/bus/wangpc/rtc.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/devices/bus/wangpc/rtc.cpp b/src/devices/bus/wangpc/rtc.cpp index 4512939003f..708c15ecc67 100644 --- a/src/devices/bus/wangpc/rtc.cpp +++ b/src/devices/bus/wangpc/rtc.cpp @@ -70,22 +70,22 @@ 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(m_sio, FUNC(z80sio0_device::cd_ba_r), FUNC(z80sio0_device::cd_ba_w)); + map(0x00, 0x03).rw(m_sio, FUNC(z80sio_device::cd_ba_r), FUNC(z80sio_device::cd_ba_w)); map(0x10, 0x1f).rw(AM9517A_TAG, FUNC(am9517a_device::read), FUNC(am9517a_device::write)); map(0x20, 0x23).rw(m_ctc0, FUNC(z80ctc_device::read), FUNC(z80ctc_device::write)); - map(0x30, 0x30); //AM_WRITE(clear_char_w) - map(0x31, 0x31); //AM_WRITE(set_char_w) - map(0x40, 0x40).portr("SW1"); //AM_WRITE(control_w) - map(0x44, 0x44); //AM_READ(i8086_status_r) AM_WRITE(reset_w) - map(0x48, 0x48); //AM_WRITE(dte_ready_w) - map(0x4c, 0x4c); //AM_READWRITE(8232_acu_r, 8232_acu_w) - map(0x50, 0x50); //AM_READ(outbound_data_r) - map(0x51, 0x52); //AM_WRITE(status_w) - map(0x54, 0x54); //AM_WRITE(enable_inbound_data_w) - map(0x51, 0x52); //AM_WRITE(inbound_data_w) + map(0x30, 0x30); //.w(FUNC(wangpc_rtc_device::clear_char_w)); + map(0x31, 0x31); //.w(FUNC(wangpc_rtc_device::set_char_w)); + map(0x40, 0x40).portr(m_sw1); //.w(FUNC(wangpc_rtc_device::control_w)); + map(0x44, 0x44); //.rw(FUNC(wangpc_rtc_device::i8086_status_r), FUNC(wangpc_rtc_device::reset_w)); + map(0x48, 0x48); //.w(FUNC(wangpc_rtc_device::dte_ready_w)); + map(0x4c, 0x4c); //.rw(FUNC(wangpc_rtc_device::8232_acu_r), FUNC(wangpc_rtc_device::8232_acu_w)); + map(0x50, 0x50); //.r(FUNC(wangpc_rtc_device::outbound_data_r)); + map(0x51, 0x52); //.w(FUNC(wangpc_rtc_device::status_w)); + map(0x54, 0x54); //.w(FUNC(wangpc_rtc_device::enable_inbound_data_w)); + map(0x51, 0x52); //.w(FUNC(wangpc_rtc_device::inbound_data_w)); map(0x60, 0x63).rw(m_ctc1, FUNC(z80ctc_device::read), FUNC(z80ctc_device::write)); - map(0x70, 0x70); //AM_READWRITE(led_toggle_r, odd_parity_w) - map(0x71, 0x71); //AM_WRITE(even_parity_w) + map(0x70, 0x70); //.rw(FUNC(wangpc_rtc_device::led_toggle_r), FUNC(wangpc_rtc_device::odd_parity_w)); + map(0x71, 0x71); //.w(FUNC(wangpc_rtc_device::even_parity_w)); } @@ -120,7 +120,7 @@ void wangpc_rtc_device::device_add_mconfig(machine_config &config) Z80CTC(config, m_ctc1, 2000000); m_ctc1->intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0); - Z80SIO0(config, m_sio, 2000000); + Z80SIO(config, m_sio, 2000000); // SIO/0? m_sio->out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0); } @@ -186,7 +186,8 @@ wangpc_rtc_device::wangpc_rtc_device(const machine_config &mconfig, const char * m_ctc0(*this, Z80CTC_0_TAG), m_ctc1(*this, Z80CTC_1_TAG), m_sio(*this, Z80SIO_TAG), - m_char_ram(*this, "char_ram") + m_char_ram(*this, "char_ram", 0x100, ENDIANNESS_LITTLE), + m_sw1(*this, "SW1") { } @@ -197,7 +198,6 @@ wangpc_rtc_device::wangpc_rtc_device(const machine_config &mconfig, const char * void wangpc_rtc_device::device_start() { - m_char_ram.allocate(0x100); } |