mirror of https://github.com/mgba-emu/mgba.git
Make sure if we reset the CPSR to the SPSR that we check if we get tossed into Thumb
This commit is contained in:
parent
633a87269a
commit
adfd8f6872
|
@ -269,7 +269,11 @@ void ARMStep(struct ARMCore* cpu) {
|
|||
S_BODY; \
|
||||
POST_BODY; \
|
||||
if (rd == ARM_PC) { \
|
||||
ARM_WRITE_PC; \
|
||||
if (cpu->executionMode == MODE_ARM) { \
|
||||
ARM_WRITE_PC; \
|
||||
} else { \
|
||||
THUMB_WRITE_PC; \
|
||||
} \
|
||||
})
|
||||
|
||||
#define DEFINE_ALU_INSTRUCTION_ARM(NAME, S_BODY, BODY, POST_BODY) \
|
||||
|
|
Loading…
Reference in New Issue