summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/x1twin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/x1twin.cpp')
-rw-r--r--src/mame/drivers/x1twin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/x1twin.cpp b/src/mame/drivers/x1twin.cpp
index 3ac4ef6a51c..8e0ebffe984 100644
--- a/src/mame/drivers/x1twin.cpp
+++ b/src/mame/drivers/x1twin.cpp
@@ -419,11 +419,11 @@ MACHINE_CONFIG_START(x1twin_state::x1twin)
ADDRESS_MAP_BANK(config, "iobank").set_map(&x1_state::x1_io_banks).set_options(ENDIANNESS_LITTLE, 8, 17, 0x10000);
- MCFG_DEVICE_ADD("ctc", Z80CTC, MAIN_CLOCK/4)
- MCFG_Z80CTC_INTR_CB(INPUTLINE("x1_cpu", INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(WRITELINE("ctc", z80ctc_device, trg3))
- MCFG_Z80CTC_ZC1_CB(WRITELINE("ctc", z80ctc_device, trg1))
- MCFG_Z80CTC_ZC2_CB(WRITELINE("ctc", z80ctc_device, trg2))
+ z80ctc_device& ctc(Z80CTC(config, "ctc", MAIN_CLOCK/4));
+ ctc.intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
+ ctc.zc_callback<0>().set("ctc", FUNC(z80ctc_device::trg3));
+ ctc.zc_callback<1>().set("ctc", FUNC(z80ctc_device::trg1));
+ ctc.zc_callback<2>().set("ctc", FUNC(z80ctc_device::trg2));
MCFG_DEVICE_ADD("x1kb", X1_KEYBOARD, 0)