mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-14 06:45:09 +01:00
[Core/CPU] fixed M68K STOP instruction edge case (case where STOP instruction unmasks pending interrupt)
This commit is contained in:
parent
e819af4553
commit
c953707ef5
@ -20967,7 +20967,10 @@ static void m68k_op_stop(void)
|
|||||||
uint new_sr = OPER_I_16();
|
uint new_sr = OPER_I_16();
|
||||||
CPU_STOPPED |= STOP_LEVEL_STOP;
|
CPU_STOPPED |= STOP_LEVEL_STOP;
|
||||||
m68ki_set_sr(new_sr);
|
m68ki_set_sr(new_sr);
|
||||||
SET_CYCLES(m68ki_cpu.cycle_end - 4*MUL);
|
if (CPU_STOPPED)
|
||||||
|
{
|
||||||
|
SET_CYCLES(m68ki_cpu.cycle_end - 4*MUL);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m68ki_exception_privilege_violation();
|
m68ki_exception_privilege_violation();
|
||||||
|
Loading…
Reference in New Issue
Block a user