summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/x1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/x1.cpp')
-rw-r--r--src/mame/drivers/x1.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/x1.cpp b/src/mame/drivers/x1.cpp
index 54388a6e522..232e6651bbb 100644
--- a/src/mame/drivers/x1.cpp
+++ b/src/mame/drivers/x1.cpp
@@ -2208,11 +2208,11 @@ MACHINE_CONFIG_START(x1_state::x1)
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)