Fixed taking of interrupts in the Nintendo Minx cpu core.

This commit is contained in:
Wilbert Pol 2008-06-02 19:28:29 +00:00
parent 9933905b03
commit e290212a9d

View File

@ -171,9 +171,9 @@ static int minx_execute( int cycles )
if ( regs.interrupt_pending ) if ( regs.interrupt_pending )
{ {
regs.halted = 0; regs.halted = 0;
if ( ( regs.F & 0xc0 ) == 0x40 ) if ( ! ( regs.F & 0xc0 ) )
{ {
logerror("minx_execute(): taking IRQ\n"); //logerror("minx_execute(): taking IRQ\n");
PUSH8( regs.V ); PUSH8( regs.V );
PUSH16( regs.PC ); PUSH16( regs.PC );
PUSH8( regs.F ); PUSH8( regs.F );