mirror of https://github.com/mgba-emu/mgba.git
Fix ADCS
This commit is contained in:
parent
a0505ee7d7
commit
13a2289e25
|
@ -569,7 +569,7 @@ DEFINE_ALU_INSTRUCTION_ARM(ADD, ARM_ADDITION_S(n, cpu->shifterOperand, cpu->gprs
|
|||
int32_t n = cpu->gprs[rn];
|
||||
cpu->gprs[rd] = n + cpu->shifterOperand;)
|
||||
|
||||
DEFINE_ALU_INSTRUCTION_ARM(ADC, ARM_ADDITION_S(cpu->gprs[rn], shifterOperand, cpu->gprs[rd]),
|
||||
DEFINE_ALU_INSTRUCTION_ARM(ADC, ARM_ADDITION_S(n, shifterOperand, cpu->gprs[rd]),
|
||||
int32_t n = cpu->gprs[rn];
|
||||
int32_t shifterOperand = cpu->shifterOperand + cpu->cpsr.c;
|
||||
cpu->gprs[rd] = n + shifterOperand;)
|
||||
|
|
Loading…
Reference in New Issue