diff options
author | 2019-08-16 13:15:05 +0700 | |
---|---|---|
committer | 2019-08-16 13:15:05 +0700 | |
commit | ae25efbfcdfc6e6a463d3a09e4b2ca452404c132 (patch) | |
tree | 97ae0a69e8b8976d85878f2a0ca50191d51c787a | |
parent | daa3de1f6ae726b0f642e973eafae63bf86e5f21 (diff) |
jazz_mct_adr: fix timer (nw)
-rw-r--r-- | src/mame/machine/jazz_mct_adr.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/machine/jazz_mct_adr.cpp b/src/mame/machine/jazz_mct_adr.cpp index 36581ce459a..2c7da33aec9 100644 --- a/src/mame/machine/jazz_mct_adr.cpp +++ b/src/mame/machine/jazz_mct_adr.cpp @@ -160,7 +160,7 @@ void jazz_mct_adr_device::device_reset() m_isr = 0; m_imr = 0; // 0x10; - m_interval_timer->adjust(attotime::from_usec(1), 0, attotime::from_usec(1)); + m_interval_timer->adjust(attotime::from_msec(1), 0, attotime::from_msec(1)); } void jazz_mct_adr_device::set_irq_line(int irq, int state) @@ -211,12 +211,12 @@ void jazz_mct_adr_device::imr_w(u16 data) TIMER_CALLBACK_MEMBER(jazz_mct_adr_device::interval_timer) { - //m_out_int_timer(CLEAR_LINE); - if (!m_out_int_timer_asserted) - { + if (m_out_int_timer_asserted) + m_out_int_timer(0); + else m_out_int_timer_asserted = true; - m_out_int_timer(1); - } + + m_out_int_timer(1); } void jazz_mct_adr_device::set_drq_line(int channel, int state) |