diff options
Diffstat (limited to 'src/mame/drivers/dmax8000.cpp')
-rw-r--r-- | src/mame/drivers/dmax8000.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/dmax8000.cpp b/src/mame/drivers/dmax8000.cpp index ae667a9ae28..8e2bb019f5d 100644 --- a/src/mame/drivers/dmax8000.cpp +++ b/src/mame/drivers/dmax8000.cpp @@ -159,18 +159,18 @@ MACHINE_CONFIG_START(dmax8000_state::dmax8000) MCFG_DEVICE_IO_MAP(dmax8000_io) MCFG_MACHINE_RESET_OVERRIDE(dmax8000_state, dmax8000) - MCFG_DEVICE_ADD("ctc_clock", CLOCK, 4'000'000 / 2) // 2MHz - MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE("ctc", z80ctc_device, trg0)) - MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("ctc", z80ctc_device, trg1)) - MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("ctc", z80ctc_device, trg2)) - - MCFG_DEVICE_ADD("ctc", Z80CTC, 4'000'000) - MCFG_Z80CTC_ZC0_CB(WRITELINE("dart1", z80dart_device, rxca_w)) - MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("dart1", z80dart_device, txca_w)) - MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("dart2", z80dart_device, rxca_w)) - MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("dart2", z80dart_device, txca_w)) - MCFG_Z80CTC_ZC1_CB(WRITELINE("dart2", z80dart_device, rxtxcb_w)) - MCFG_Z80CTC_ZC2_CB(WRITELINE("dart1", z80dart_device, rxtxcb_w)) + clock_device &ctc_clock(CLOCK(config, "ctc_clock", 4_MHz_XTAL / 2)); // 2MHz + ctc_clock.signal_handler().set("ctc", FUNC(z80ctc_device::trg0)); + ctc_clock.signal_handler().append("ctc", FUNC(z80ctc_device::trg1)); + ctc_clock.signal_handler().append("ctc", FUNC(z80ctc_device::trg2)); + + z80ctc_device &ctc(Z80CTC(config, "ctc", 4_MHz_XTAL)); + ctc.zc_callback<0>().set("dart1", FUNC(z80dart_device::rxca_w)); + ctc.zc_callback<0>().append("dart1", FUNC(z80dart_device::txca_w)); + ctc.zc_callback<0>().append("dart2", FUNC(z80dart_device::rxca_w)); + ctc.zc_callback<0>().append("dart2", FUNC(z80dart_device::txca_w)); + ctc.zc_callback<1>().set("dart2", FUNC(z80dart_device::rxtxcb_w)); + ctc.zc_callback<2>().set("dart1", FUNC(z80dart_device::rxtxcb_w)); MCFG_DEVICE_ADD("dart1", Z80DART, 4'000'000) // A = terminal; B = aux MCFG_Z80DART_OUT_TXDA_CB(WRITELINE("rs232", rs232_port_device, write_txd)) |