mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
atari/antic.cpp: VBL status is always held no matter enable irq reg, fixes a800 anteater hangs
This commit is contained in:
parent
8bc84c08ea
commit
dedf0964b6
@ -2362,12 +2362,16 @@ void antic_device::generic_interrupt(int button_count)
|
|||||||
m_render2 = 0;
|
m_render2 = 0;
|
||||||
m_render3 = 0;
|
m_render3 = 0;
|
||||||
|
|
||||||
/* if the CPU want's to be interrupted at vertical blank... */
|
// At scanline 248 vblank status is always held without caring about the mask reg
|
||||||
|
// (cfr. anteater PC=a10a), while DLI always goes low.
|
||||||
|
m_r.nmist |= VBL_NMI;
|
||||||
|
m_r.nmist &= ~DLI_NMI;
|
||||||
|
|
||||||
|
/* if the CPU wants to be interrupted at vertical blank... */
|
||||||
if( m_w.nmien & VBL_NMI )
|
if( m_w.nmien & VBL_NMI )
|
||||||
{
|
{
|
||||||
LOG(" cause VBL NMI\n");
|
LOG(" cause VBL NMI\n");
|
||||||
/* set the VBL NMI status bit */
|
/* set the VBL NMI status bit */
|
||||||
m_r.nmist |= VBL_NMI;
|
|
||||||
m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
|
m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user