static TIMER_DEVICE_CALLBACK( ctc_tick ) { trs80m2_state *state = timer.machine().driver_data<trs80m2_state>(); z80ctc_trg0_w(state->m_ctc, 1); z80ctc_trg0_w(state->m_ctc, 0); z80ctc_trg1_w(state->m_ctc, 1); z80ctc_trg1_w(state->m_ctc, 0); z80ctc_trg2_w(state->m_ctc, 1); z80ctc_trg2_w(state->m_ctc, 0); }
INPUT_PORTS_END /*************************************************************************** DEVICE CONFIGURATION ***************************************************************************/ /*------------------------------------------------- Z80CTC_INTERFACE( ctc_intf ) -------------------------------------------------*/ static TIMER_DEVICE_CALLBACK( ctc_tick ) { mtx_state *state = timer.machine().driver_data<mtx_state>(); z80ctc_trg1_w(state->m_z80ctc, 1); z80ctc_trg1_w(state->m_z80ctc, 0 ); z80ctc_trg2_w(state->m_z80ctc, 1); z80ctc_trg2_w(state->m_z80ctc, 0 ); }