mirror of
https://github.com/holub/mame
synced 2025-06-29 23:48:56 +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
|
// 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)
|
||||||
|
{
|
||||||
|
// Disable the actual INT3* input
|
||||||
|
masked_ints &= ~(1<<INT3);
|
||||||
|
|
||||||
|
// Do we have a clock interrupt?
|
||||||
|
if (m_timer_int_pending)
|
||||||
{
|
{
|
||||||
masked_ints |= (1<<INT3);
|
masked_ints |= (1<<INT3);
|
||||||
LOGMASKED(LOG_INT, "INT3 (timer) asserted\n");
|
LOGMASKED(LOG_INT, "INT3 (timer) asserted\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_int_level = 1;
|
m_int_level = 1;
|
||||||
masked_ints = (masked_ints & m_int_mask)>>1;
|
masked_ints = (masked_ints & m_int_mask)>>1;
|
||||||
|
Loading…
Reference in New Issue
Block a user