summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/swtpc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/swtpc.cpp')
-rw-r--r--src/mame/drivers/swtpc.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/src/mame/drivers/swtpc.cpp b/src/mame/drivers/swtpc.cpp
index 6d6db26618f..b620f32c6e9 100644
--- a/src/mame/drivers/swtpc.cpp
+++ b/src/mame/drivers/swtpc.cpp
@@ -102,47 +102,47 @@ MACHINE_CONFIG_START(swtpc_state::swtpc)
MCFG_DEVICE_ADD("maincpu", M6800, XTAL(1'843'200) / 2)
MCFG_DEVICE_PROGRAM_MAP(mem_map)
- MCFG_DEVICE_ADD("brg", MC14411, XTAL(1'843'200))
- MCFG_MC14411_F7_CB(WRITELINE("io0", ss50_interface_port_device, f600_1200_w)) // 1200b
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io1", ss50_interface_port_device, f600_1200_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io2", ss50_interface_port_device, f600_1200_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io3", ss50_interface_port_device, f600_1200_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io4", ss50_interface_port_device, f600_1200_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io5", ss50_interface_port_device, f600_1200_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io6", ss50_interface_port_device, f600_1200_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io7", ss50_interface_port_device, f600_1200_w))
- MCFG_MC14411_F8_CB(WRITELINE("io0", ss50_interface_port_device, f600_4800_w)) // 600b
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io1", ss50_interface_port_device, f600_4800_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io2", ss50_interface_port_device, f600_4800_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io3", ss50_interface_port_device, f600_4800_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io4", ss50_interface_port_device, f600_4800_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io5", ss50_interface_port_device, f600_4800_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io6", ss50_interface_port_device, f600_4800_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io7", ss50_interface_port_device, f600_4800_w))
- MCFG_MC14411_F9_CB(WRITELINE("io0", ss50_interface_port_device, f300_w)) // 300b
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io1", ss50_interface_port_device, f300_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io2", ss50_interface_port_device, f300_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io3", ss50_interface_port_device, f300_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io4", ss50_interface_port_device, f300_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io5", ss50_interface_port_device, f300_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io6", ss50_interface_port_device, f300_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io7", ss50_interface_port_device, f300_w))
- MCFG_MC14411_F11_CB(WRITELINE("io0", ss50_interface_port_device, f150_9600_w)) // 150b
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io1", ss50_interface_port_device, f150_9600_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io2", ss50_interface_port_device, f150_9600_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io3", ss50_interface_port_device, f150_9600_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io4", ss50_interface_port_device, f150_9600_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io5", ss50_interface_port_device, f150_9600_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io6", ss50_interface_port_device, f150_9600_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io7", ss50_interface_port_device, f150_9600_w))
- MCFG_MC14411_F13_CB(WRITELINE("io0", ss50_interface_port_device, f110_w)) // 110b
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io1", ss50_interface_port_device, f110_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io2", ss50_interface_port_device, f110_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io3", ss50_interface_port_device, f110_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io4", ss50_interface_port_device, f110_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io5", ss50_interface_port_device, f110_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io6", ss50_interface_port_device, f110_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("io7", ss50_interface_port_device, f110_w))
+ MC14411(config, m_brg, XTAL(1'843'200));
+ m_brg->out_f7_cb().set("io0", FUNC(ss50_interface_port_device::f600_1200_w)); // 1200b
+ m_brg->out_f7_cb().append("io1", FUNC(ss50_interface_port_device::f600_1200_w));
+ m_brg->out_f7_cb().append("io2", FUNC(ss50_interface_port_device::f600_1200_w));
+ m_brg->out_f7_cb().append("io3", FUNC(ss50_interface_port_device::f600_1200_w));
+ m_brg->out_f7_cb().append("io4", FUNC(ss50_interface_port_device::f600_1200_w));
+ m_brg->out_f7_cb().append("io5", FUNC(ss50_interface_port_device::f600_1200_w));
+ m_brg->out_f7_cb().append("io6", FUNC(ss50_interface_port_device::f600_1200_w));
+ m_brg->out_f7_cb().append("io7", FUNC(ss50_interface_port_device::f600_1200_w));
+ m_brg->out_f8_cb().set("io0", FUNC(ss50_interface_port_device::f600_4800_w)); // 600b
+ m_brg->out_f8_cb().append("io1", FUNC(ss50_interface_port_device::f600_4800_w));
+ m_brg->out_f8_cb().append("io2", FUNC(ss50_interface_port_device::f600_4800_w));
+ m_brg->out_f8_cb().append("io3", FUNC(ss50_interface_port_device::f600_4800_w));
+ m_brg->out_f8_cb().append("io4", FUNC(ss50_interface_port_device::f600_4800_w));
+ m_brg->out_f8_cb().append("io5", FUNC(ss50_interface_port_device::f600_4800_w));
+ m_brg->out_f8_cb().append("io6", FUNC(ss50_interface_port_device::f600_4800_w));
+ m_brg->out_f8_cb().append("io7", FUNC(ss50_interface_port_device::f600_4800_w));
+ m_brg->out_f9_cb().set("io0", FUNC(ss50_interface_port_device::f300_w)); // 300b
+ m_brg->out_f9_cb().append("io1", FUNC(ss50_interface_port_device::f300_w));
+ m_brg->out_f9_cb().append("io2", FUNC(ss50_interface_port_device::f300_w));
+ m_brg->out_f9_cb().append("io3", FUNC(ss50_interface_port_device::f300_w));
+ m_brg->out_f9_cb().append("io4", FUNC(ss50_interface_port_device::f300_w));
+ m_brg->out_f9_cb().append("io5", FUNC(ss50_interface_port_device::f300_w));
+ m_brg->out_f9_cb().append("io6", FUNC(ss50_interface_port_device::f300_w));
+ m_brg->out_f9_cb().append("io7", FUNC(ss50_interface_port_device::f300_w));
+ m_brg->out_f11_cb().set("io0", FUNC(ss50_interface_port_device::f150_9600_w)); // 150b
+ m_brg->out_f11_cb().append("io1", FUNC(ss50_interface_port_device::f150_9600_w));
+ m_brg->out_f11_cb().append("io2", FUNC(ss50_interface_port_device::f150_9600_w));
+ m_brg->out_f11_cb().append("io3", FUNC(ss50_interface_port_device::f150_9600_w));
+ m_brg->out_f11_cb().append("io4", FUNC(ss50_interface_port_device::f150_9600_w));
+ m_brg->out_f11_cb().append("io5", FUNC(ss50_interface_port_device::f150_9600_w));
+ m_brg->out_f11_cb().append("io6", FUNC(ss50_interface_port_device::f150_9600_w));
+ m_brg->out_f11_cb().append("io7", FUNC(ss50_interface_port_device::f150_9600_w));
+ m_brg->out_f13_cb().set("io0", FUNC(ss50_interface_port_device::f110_w)); // 110b
+ m_brg->out_f13_cb().append("io1", FUNC(ss50_interface_port_device::f110_w));
+ m_brg->out_f13_cb().append("io2", FUNC(ss50_interface_port_device::f110_w));
+ m_brg->out_f13_cb().append("io3", FUNC(ss50_interface_port_device::f110_w));
+ m_brg->out_f13_cb().append("io4", FUNC(ss50_interface_port_device::f110_w));
+ m_brg->out_f13_cb().append("io5", FUNC(ss50_interface_port_device::f110_w));
+ m_brg->out_f13_cb().append("io6", FUNC(ss50_interface_port_device::f110_w));
+ m_brg->out_f13_cb().append("io7", FUNC(ss50_interface_port_device::f110_w));
MCFG_SS50_INTERFACE_PORT_ADD("io0", default_2rs_devices, nullptr)
MCFG_SS50_INTERFACE_IRQ_CALLBACK(WRITELINE("mainirq", input_merger_device, in_w<0>))