summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mtx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mtx.cpp')
-rw-r--r--src/mame/drivers/mtx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/mtx.cpp b/src/mame/drivers/mtx.cpp
index c7d0cc45913..72b4d4f84b9 100644
--- a/src/mame/drivers/mtx.cpp
+++ b/src/mame/drivers/mtx.cpp
@@ -307,10 +307,10 @@ MACHINE_CONFIG_START(mtx_state::mtx512)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
/* devices */
- MCFG_DEVICE_ADD(Z80CTC_TAG, Z80CTC, XTAL(4'000'000))
- MCFG_Z80CTC_INTR_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC1_CB(WRITELINE(*this, mtx_state, ctc_trg1_w))
- MCFG_Z80CTC_ZC2_CB(WRITELINE(*this, mtx_state, ctc_trg2_w))
+ Z80CTC(config, m_z80ctc, XTAL(4'000'000));
+ m_z80ctc->intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
+ m_z80ctc->zc_callback<1>().set(FUNC(mtx_state::ctc_trg1_w));
+ m_z80ctc->zc_callback<2>().set(FUNC(mtx_state::ctc_trg2_w));
MCFG_TIMER_DRIVER_ADD_PERIODIC("z80ctc_timer", mtx_state, ctc_tick, attotime::from_hz(XTAL(4'000'000)/13))