mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
bus/nes: Explicitly clear IRQs in almanfds games.
This commit is contained in:
parent
4737eba161
commit
2600559600
@ -616,14 +616,12 @@ void nes_ks7017_device::device_timer(emu_timer &timer, device_timer_id id, int p
|
||||
{
|
||||
if (m_irq_enable)
|
||||
{
|
||||
if (!m_irq_count)
|
||||
if (--m_irq_count == 0)
|
||||
{
|
||||
hold_irq_line();
|
||||
set_irq_line(ASSERT_LINE);
|
||||
m_irq_enable = 0;
|
||||
m_irq_status |= 0x01;
|
||||
}
|
||||
else
|
||||
m_irq_count--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -668,6 +666,7 @@ uint8_t nes_ks7017_device::read_ex(offs_t offset)
|
||||
{
|
||||
int temp = m_irq_status;
|
||||
m_irq_status &= ~0x01;
|
||||
set_irq_line(CLEAR_LINE);
|
||||
return temp;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user