mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
Merge pull request #8332 from 0kmg/nes-almanfds-irq
bus/nes: Explicitly clear IRQs in almanfds (and clones).
This commit is contained in:
commit
d3d2710e89
@ -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_enable)
|
||||||
{
|
{
|
||||||
if (!m_irq_count)
|
if (--m_irq_count == 0)
|
||||||
{
|
{
|
||||||
hold_irq_line();
|
set_irq_line(ASSERT_LINE);
|
||||||
m_irq_enable = 0;
|
m_irq_enable = 0;
|
||||||
m_irq_status |= 0x01;
|
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;
|
int temp = m_irq_status;
|
||||||
m_irq_status &= ~0x01;
|
m_irq_status &= ~0x01;
|
||||||
|
set_irq_line(CLEAR_LINE);
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user