mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
oops
This commit is contained in:
@ -523,9 +523,11 @@ void ARM::TriggerIRQ()
|
|||||||
UpdateMode(oldcpsr, CPSR);
|
UpdateMode(oldcpsr, CPSR);
|
||||||
|
|
||||||
R_IRQ[2] = oldcpsr;
|
R_IRQ[2] = oldcpsr;
|
||||||
|
#ifdef JIT_ENABLED
|
||||||
if constexpr (mode == CPUExecuteMode::JIT)
|
if constexpr (mode == CPUExecuteMode::JIT)
|
||||||
R[14] = R[15] + (oldcpsr & 0x20 ? 2 : 0);
|
R[14] = R[15] + (oldcpsr & 0x20 ? 2 : 0);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
R[14] = R[15] - (oldcpsr & 0x20 ? 0 : 4);
|
R[14] = R[15] - (oldcpsr & 0x20 ? 0 : 4);
|
||||||
JumpTo(ExceptionBase + 0x18);
|
JumpTo(ExceptionBase + 0x18);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user