diff options
Diffstat (limited to 'src/mame/drivers/huebler.cpp')
-rw-r--r-- | src/mame/drivers/huebler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/huebler.cpp b/src/mame/drivers/huebler.cpp index ac7aacc2a0b..a6bae8e6903 100644 --- a/src/mame/drivers/huebler.cpp +++ b/src/mame/drivers/huebler.cpp @@ -329,11 +329,11 @@ MACHINE_CONFIG_START(amu880_state::amu880) MCFG_PALETTE_ADD_MONOCHROME("palette") /* devices */ - MCFG_DEVICE_ADD(Z80CTC_TAG, Z80CTC, XTAL(10'000'000)/4) - MCFG_Z80CTC_INTR_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0)) - MCFG_Z80CTC_ZC0_CB(WRITELINE(*this, amu880_state, ctc_z0_w)) - MCFG_Z80CTC_ZC1_CB(WRITELINE(m_z80sio, z80dart_device, rxtxcb_w)) - MCFG_Z80CTC_ZC2_CB(WRITELINE(*this, amu880_state, ctc_z2_w)) + z80ctc_device& ctc(Z80CTC(config, Z80CTC_TAG, XTAL(10'000'000)/4)); + ctc.intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0); + ctc.zc_callback<0>().set(FUNC(amu880_state::ctc_z0_w)); + ctc.zc_callback<1>().set(m_z80sio, FUNC(z80dart_device::rxtxcb_w)); + ctc.zc_callback<2>().set(FUNC(amu880_state::ctc_z2_w)); z80pio_device& pio1(Z80PIO(config, Z80PIO1_TAG, XTAL(10'000'000)/4)); pio1.out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0); |