mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-10 21:05:12 +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();
|
||||
CPU_STOPPED |= STOP_LEVEL_STOP;
|
||||
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;
|
||||
}
|
||||
m68ki_exception_privilege_violation();
|
||||
|
Loading…
Reference in New Issue
Block a user