summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rainbow.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-02-23 08:48:39 -0500
committer AJR <ajrhacker@users.noreply.github.com>2020-02-23 08:50:11 -0500
commitbe7d48d2c9bfab1fa88f97a6ae759787402f05fa (patch)
tree666ea9f123920110a2359ed9c1389fb02714087f /src/mame/drivers/rainbow.cpp
parent047dfdd5d797bc978cadfde1a4e6f6d7b10cda43 (diff)
i8274, upd7201: Replace legacy device emulations and rename new devices
(nw) The victor9k change is confirmed from schematics: the RI lines are only linked to the VIA.
Diffstat (limited to 'src/mame/drivers/rainbow.cpp')
-rw-r--r--src/mame/drivers/rainbow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/rainbow.cpp b/src/mame/drivers/rainbow.cpp
index 331443d8df4..2d8fa1b174b 100644
--- a/src/mame/drivers/rainbow.cpp
+++ b/src/mame/drivers/rainbow.cpp
@@ -634,7 +634,7 @@ protected:
required_device<corvus_hdc_device> m_corvus_hdc;
- required_device<upd7201_new_device> m_mpsc;
+ required_device<upd7201_device> m_mpsc;
required_device<com8116_003_device> m_dbrg;
required_device<rs232_port_device> m_comm_port;
@@ -2771,7 +2771,7 @@ WRITE8_MEMBER(rainbow_base_state::diagnostic_w) // 8088 (port 0A WRITTEN). Fig.4
// Install 8088 read / write handler once loopback test is over
if ( !(data & 32) && (m_diagnostic & 32) )
{
- io.install_readwrite_handler(0x40, 0x43, read8sm_delegate(*m_mpsc, FUNC(upd7201_new_device::cd_ba_r)), write8sm_delegate(*m_mpsc, FUNC(upd7201_new_device::cd_ba_w)));
+ io.install_readwrite_handler(0x40, 0x43, read8sm_delegate(*m_mpsc, FUNC(upd7201_device::cd_ba_r)), write8sm_delegate(*m_mpsc, FUNC(upd7201_device::cd_ba_w)));
logerror("\n **** COMM HANDLER INSTALLED **** ");
//popmessage("Autoboot from drive %c", m_p_nvram[0xab] ? (64 + m_p_nvram[0xab]) : 0x3F );
}
@@ -3306,20 +3306,20 @@ void rainbow_base_state::rainbow_base(machine_config &config)
m_dbrg->fr_handler().set(FUNC(rainbow_base_state::dbrg_fr_w));
m_dbrg->ft_handler().set(FUNC(rainbow_base_state::dbrg_ft_w));
- UPD7201_NEW(config, m_mpsc, 24.0734_MHz_XTAL / 5 / 2); // 2.4073 MHz (nominally 2.5 MHz)
+ UPD7201(config, m_mpsc, 24.0734_MHz_XTAL / 5 / 2); // 2.4073 MHz (nominally 2.5 MHz)
m_mpsc->out_int_callback().set(FUNC(rainbow_base_state::mpsc_irq));
m_mpsc->out_txda_callback().set(m_comm_port, FUNC(rs232_port_device::write_txd));
m_mpsc->out_txdb_callback().set("printer", FUNC(rs232_port_device::write_txd));
// RTS and DTR outputs are not connected
RS232_PORT(config, m_comm_port, default_rs232_devices, nullptr);
- m_comm_port->rxd_handler().set(m_mpsc, FUNC(upd7201_new_device::rxa_w));
- m_comm_port->cts_handler().set(m_mpsc, FUNC(upd7201_new_device::ctsa_w));
- m_comm_port->dcd_handler().set(m_mpsc, FUNC(upd7201_new_device::dcda_w));
+ m_comm_port->rxd_handler().set(m_mpsc, FUNC(upd7201_device::rxa_w));
+ m_comm_port->cts_handler().set(m_mpsc, FUNC(upd7201_device::ctsa_w));
+ m_comm_port->dcd_handler().set(m_mpsc, FUNC(upd7201_device::dcda_w));
rs232_port_device &printer(RS232_PORT(config, "printer", default_rs232_devices, nullptr));
- printer.rxd_handler().set(m_mpsc, FUNC(upd7201_new_device::rxb_w));
- printer.dcd_handler().set(m_mpsc, FUNC(upd7201_new_device::ctsb_w)); // actually DTR
+ printer.rxd_handler().set(m_mpsc, FUNC(upd7201_device::rxb_w));
+ printer.dcd_handler().set(m_mpsc, FUNC(upd7201_device::ctsb_w)); // actually DTR
m_comm_port->option_add("microsoft_mouse", MSFT_HLE_SERIAL_MOUSE);
m_comm_port->option_add("logitech_mouse", LOGITECH_HLE_SERIAL_MOUSE);