summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/a7150.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/a7150.cpp')
-rw-r--r--src/mame/drivers/a7150.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/a7150.cpp b/src/mame/drivers/a7150.cpp
index a93a74d0886..3823d23d656 100644
--- a/src/mame/drivers/a7150.cpp
+++ b/src/mame/drivers/a7150.cpp
@@ -526,17 +526,17 @@ MACHINE_CONFIG_START(a7150_state::a7150)
MCFG_ADDRESS_MAP_BANK_DATA_WIDTH(8)
MCFG_ADDRESS_MAP_BANK_STRIDE(0x10000)
- MCFG_DEVICE_ADD("ctc_clock", CLOCK, 1230750)
- MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(Z80CTC_TAG, z80ctc_device, trg0))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(Z80CTC_TAG, z80ctc_device, trg1))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(Z80CTC_TAG, z80ctc_device, trg2))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(Z80CTC_TAG, z80ctc_device, trg3))
-
- MCFG_DEVICE_ADD(Z80CTC_TAG, Z80CTC, XTAL(16'000'000)/3)
- MCFG_Z80CTC_INTR_CB(INPUTLINE("gfxcpu", INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(WRITELINE(Z80SIO_TAG, z80sio_device, rxca_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(Z80SIO_TAG, z80sio_device, txca_w))
- MCFG_Z80CTC_ZC1_CB(WRITELINE(Z80SIO_TAG, z80sio_device, rxtxcb_w))
+ clock_device &ctc_clock(CLOCK(config, "ctc_clock", 1230750));
+ ctc_clock.signal_handler().set(m_ctc, FUNC(z80ctc_device::trg0));
+ ctc_clock.signal_handler().append(m_ctc, FUNC(z80ctc_device::trg1));
+ ctc_clock.signal_handler().append(m_ctc, FUNC(z80ctc_device::trg2));
+ ctc_clock.signal_handler().append(m_ctc, FUNC(z80ctc_device::trg3));
+
+ Z80CTC(config, m_ctc, 16_MHz_XTAL/3);
+ m_ctc->intr_callback().set_inputline(m_gfxcpu, INPUT_LINE_IRQ0);
+ m_ctc->zc_callback<0>().set(Z80SIO_TAG, FUNC(z80sio_device::rxca_w));
+ m_ctc->zc_callback<0>().append(Z80SIO_TAG, FUNC(z80sio_device::txca_w));
+ m_ctc->zc_callback<1>().set(Z80SIO_TAG, FUNC(z80sio_device::rxtxcb_w));
MCFG_DEVICE_ADD(Z80SIO_TAG, Z80SIO, XTAL(16'000'000)/4)
MCFG_Z80SIO_OUT_INT_CB(INPUTLINE("gfxcpu", INPUT_LINE_IRQ0))