summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bigbord2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/bigbord2.cpp')
-rw-r--r--src/mame/drivers/bigbord2.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/bigbord2.cpp b/src/mame/drivers/bigbord2.cpp
index 72c9747cfd6..117ff5448f2 100644
--- a/src/mame/drivers/bigbord2.cpp
+++ b/src/mame/drivers/bigbord2.cpp
@@ -575,18 +575,18 @@ MACHINE_CONFIG_START(bigbord2_state::bigbord2)
Z80SIO(config, m_sio, MAIN_CLOCK);
m_sio->out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
- m_sio->out_synca_callback().set("ctc1", FUNC(z80ctc_device::trg2));
+ m_sio->out_synca_callback().set(m_ctc1, FUNC(z80ctc_device::trg2));
m_sio->out_wrdya_callback().set(FUNC(bigbord2_state::sio_wrdya_w));
m_sio->out_wrdyb_callback().set(FUNC(bigbord2_state::sio_wrdyb_w));
- MCFG_DEVICE_ADD("ctc1", Z80CTC, MAIN_CLOCK)
- MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
+ Z80CTC(config, m_ctc1, MAIN_CLOCK);
+ m_ctc1->intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
- MCFG_DEVICE_ADD("ctc2", Z80CTC, MAIN_CLOCK)
- MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(WRITELINE(m_sio, z80sio_device, rxtxcb_w)) // to SIO Ch B
- MCFG_Z80CTC_ZC1_CB(WRITELINE(*this, bigbord2_state, ctc_z1_w)) // to SIO Ch A
- MCFG_Z80CTC_ZC2_CB(WRITELINE("ctc2", z80ctc_device, trg3))
+ Z80CTC(config, m_ctc2, MAIN_CLOCK);
+ m_ctc2->intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
+ m_ctc2->zc_callback<0>().set(m_sio, FUNC(z80sio_device::rxtxcb_w)); // to SIO Ch B
+ m_ctc2->zc_callback<1>().set(FUNC(bigbord2_state::ctc_z1_w)); // to SIO Ch A
+ m_ctc2->zc_callback<2>().set(m_ctc2, FUNC(z80ctc_device::trg3));
MCFG_DEVICE_ADD("fdc", MB8877, 16_MHz_XTAL / 8) // 2MHz for 8 inch, or 1MHz otherwise (jumper-selectable)
//MCFG_WD_FDC_INTRQ_CALLBACK(INPUTLINE("maincpu", ??)) // info missing from schematic
@@ -599,7 +599,7 @@ MACHINE_CONFIG_START(bigbord2_state::bigbord2)
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(8)
MCFG_MC6845_UPDATE_ROW_CB(bigbord2_state, crtc_update_row)
- MCFG_MC6845_OUT_VSYNC_CB(WRITELINE("ctc1", z80ctc_device, trg3))
+ MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(m_ctc1, z80ctc_device, trg3))
ls259_device &proglatch(LS259(config, "proglatch")); // U41
proglatch.q_out_cb<6>().set("outlatch1", FUNC(ls259_device::clear_w)); // FCRST - also resets the 8877