(MESS) nes: improved Tengen 800032 (RAMBO-1) IRQ mechanism,

based on the new findings from nesdev boards. Hard Drivin' proto
is a lot more playable. [Fabio Priuli]
This commit is contained in:
Fabio Priuli 2014-02-21 15:15:49 +00:00
parent 1dc5001457
commit 0cd66d1b4e

View File

@ -172,19 +172,12 @@ inline void nes_tengen032_device::irq_clock(int blanked)
m_irq_reset = 0;
m_irq_count = m_irq_count_latch + 1;
}
else
{
if (!m_irq_count)
m_irq_count = m_irq_count_latch;
else
{
m_irq_count--;
if (m_irq_enable && !blanked && !m_irq_count)
{
machine().device("maincpu")->execute().set_input_line(M6502_IRQ_LINE, ASSERT_LINE);
}
}
}
else if (!m_irq_count)
m_irq_count = m_irq_count_latch;
m_irq_count--;
if (m_irq_enable && !blanked && !m_irq_count)
machine().device("maincpu")->execute().set_input_line(M6502_IRQ_LINE, ASSERT_LINE);
}
// we use the HBLANK IRQ latch from PPU for the scanline based IRQ mode