all repos — mgba @ 13a2289e25dc38cb7902fcb7c47de0569e66f24c

mGBA Game Boy Advance Emulator

Fix ADCS
Jeffrey Pfau jeffrey@endrift.com
Wed, 25 Sep 2013 00:27:40 -0700
commit

13a2289e25dc38cb7902fcb7c47de0569e66f24c

parent

a0505ee7d77261d656a1193c00326bb5f3b8d4af

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/arm/isa-arm.csrc/arm/isa-arm.c

@@ -569,7 +569,7 @@ DEFINE_ALU_INSTRUCTION_ARM(ADD, ARM_ADDITION_S(n, cpu->shifterOperand, cpu->gprs[rd]),

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;)