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,12 +188,19 @@ void tms9901_device::prioritize_interrupts()
// Skip the rightmost bit
uint16_t masked_ints = m_int_line;
// Do we have a timer interrupt?
if (m_clock_register != 0 && m_timer_int_pending)
// Is the clock enabled?
if (m_clock_register != 0)
{
// Disable the actual INT3* input
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;
masked_ints = (masked_ints & m_int_mask)>>1;