mirror of
https://github.com/holub/mame
synced 2025-06-07 05:13:46 +03:00
tms9901: Ensure that the INT3 input is disabled when the clock is enabled.
This commit is contained in:
parent
13c3ec0f00
commit
6d44504899
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user