summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/binbug.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-09-03 19:32:28 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2018-09-03 19:32:28 +0200
commitf9676d8f1d40d31513bee602fb531443093bd2c3 (patch)
tree73a681b61e88bc566fcdf04353deb7e053b3eb1c /src/mame/drivers/binbug.cpp
parentef3fa1f0df917b58c16bf01533429ff8c67cc7f6 (diff)
z80ctc: removed MCFG macros (nw)
Diffstat (limited to 'src/mame/drivers/binbug.cpp')
-rw-r--r--src/mame/drivers/binbug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/binbug.cpp b/src/mame/drivers/binbug.cpp
index 59995610b0c..b0fe4b8efe8 100644
--- a/src/mame/drivers/binbug.cpp
+++ b/src/mame/drivers/binbug.cpp
@@ -564,9 +564,9 @@ MACHINE_CONFIG_START(dg680_state::dg680)
WAVE(config, "wave", "cassette").add_route(ALL_OUTPUTS, "mono", 0.25);
/* Devices */
- MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL(8'000'000) / 4)
- MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(WRITELINE("z80ctc", z80ctc_device, trg1))
+ z80ctc_device& ctc(Z80CTC(config, "z80ctc", XTAL(8'000'000) / 4));
+ ctc.intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
+ ctc.zc_callback<0>().set("z80ctc", FUNC(z80ctc_device::trg1));
z80pio_device& pio(Z80PIO(config, "z80pio", XTAL(8'000'000) / 4));
pio.out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);