tms9901: Ensure that the INT3 input is disabled when the clock is enabled.

This commit is contained in:
Michael Zapf 2019-05-15 23:07:24 +02:00
parent 13c3ec0f00
commit 6d44504899

View File

@ -188,11 +188,18 @@ void tms9901_device::prioritize_interrupts()
// Skip the rightmost bit // Skip the rightmost bit
uint16_t masked_ints = m_int_line; uint16_t masked_ints = m_int_line;
// Do we have a timer interrupt? // Is the clock enabled?
if (m_clock_register != 0 && m_timer_int_pending) if (m_clock_register != 0)
{ {
masked_ints |= (1<<INT3); // Disable the actual INT3* input
LOGMASKED(LOG_INT, "INT3 (timer) asserted\n"); masked_ints &= ~(1<<INT3);
// Do we have a clock interrupt?
if (m_timer_int_pending)
{
masked_ints |= (1<<INT3);
LOGMASKED(LOG_INT, "INT3 (timer) asserted\n");
}
} }
m_int_level = 1; m_int_level = 1;