summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/acorn/system
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-07-31 04:55:32 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-07-31 04:56:22 +0200
commit0f21c3fc3adce625fa6366f15b2119b536f333bd (patch)
tree9d02c5bd777cf513606b2e32aea9caa88e33c7a8 /src/devices/bus/acorn/system
parent249b42112be26464dc6030872fdbcddf3dd10980 (diff)
-8042kbdc, mb89352, mc6854: Removed legacy devcb accessors. [Ryan Holtz]
Diffstat (limited to 'src/devices/bus/acorn/system')
-rw-r--r--src/devices/bus/acorn/system/econet.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/devices/bus/acorn/system/econet.cpp b/src/devices/bus/acorn/system/econet.cpp
index 9c731593baa..d6613f35bf7 100644
--- a/src/devices/bus/acorn/system/econet.cpp
+++ b/src/devices/bus/acorn/system/econet.cpp
@@ -23,18 +23,22 @@ DEFINE_DEVICE_TYPE(ACORN_ECONET, acorn_econet_device, "acorn_econet", "Acorn Eco
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(acorn_econet_device::device_add_mconfig)
+void acorn_econet_device::device_add_mconfig(machine_config &config)
+{
/* econet */
- MCFG_DEVICE_ADD(m_adlc, MC6854, 0)
- MCFG_MC6854_OUT_TXD_CB(WRITELINE(m_econet, econet_device, host_data_w))
- MCFG_MC6854_OUT_IRQ_CB(WRITELINE(*this, acorn_econet_device, bus_irq_w))
+ MC6854(config, m_adlc);
+ m_adlc->out_txd_cb().set(m_econet, FUNC(econet_device::host_data_w));
+ m_adlc->out_irq_cb().set(FUNC(acorn_econet_device::bus_irq_w));
ECONET(config, m_econet, 0);
m_econet->clk_wr_callback().set(m_adlc, FUNC(mc6854_device::txc_w));
m_econet->clk_wr_callback().append(m_adlc, FUNC(mc6854_device::rxc_w));
m_econet->data_wr_callback().set(m_adlc, FUNC(mc6854_device::set_rx));
- MCFG_ECONET_SLOT_ADD("econet254", 254, econet_devices, nullptr)
-MACHINE_CONFIG_END
+
+ econet_slot_device &slot(ECONET_SLOT(config, "econet254", 0));
+ econet_devices(slot);
+ slot.set_slot(254);
+}
//**************************************************************************
// LIVE DEVICE