mirror of https://github.com/mgba-emu/mgba.git
ALU instructions can write to PC
This commit is contained in:
parent
6e3a9a9508
commit
bda71cafc2
|
@ -207,7 +207,10 @@ void ARMStep(struct ARMCore* cpu) {
|
|||
SHIFTER(cpu, opcode); \
|
||||
BODY; \
|
||||
S_BODY; \
|
||||
POST_BODY;)
|
||||
POST_BODY; \
|
||||
if (rd == ARM_PC) { \
|
||||
ARM_WRITE_PC; \
|
||||
})
|
||||
|
||||
#define DEFINE_ALU_INSTRUCTION_ARM(NAME, S_BODY, BODY, POST_BODY) \
|
||||
DEFINE_ALU_INSTRUCTION_EX_ARM(NAME, , _barrelShift, BODY, POST_BODY) \
|
||||
|
|
Loading…
Reference in New Issue