nf flag (called IF in manuals) does _not_ block external irq, it just indicates that an one occured. This fixes some protection related issues in bosco.

This commit is contained in:
Michaël Banaan Ananas 2011-11-27 00:39:27 +00:00
parent c214ed0b54
commit 5b1aa2f2a2

View File

@ -247,7 +247,7 @@ static int pla( mb88_state *cpustate, int inA, int inB )
static void set_irq_line(mb88_state *cpustate, int state)
{
/* on falling edge trigger interrupt */
if ( (cpustate->pio & 0x04) && cpustate->nf == 0 && state != CLEAR_LINE )
if ( (cpustate->pio & 0x04) && state != CLEAR_LINE )
{
cpustate->pending_interrupt |= INT_CAUSE_EXTERNAL;
}