all repos — mgba @ abd522a2cec531fab6838f2292e2b8c99da4dd43

mGBA Game Boy Advance Emulator

Implement ADD(4)
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Apr 2013 12:32:15 -0700
commit

abd522a2cec531fab6838f2292e2b8c99da4dd43

parent

bc4924cef5ad81407c7e99aa34a5e7a6246d565d

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

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

@@ -223,7 +223,7 @@ DEFINE_INSTRUCTION_WITH_HIGH_EX_THUMB(NAME ## 01, 0, 8, BODY) \

DEFINE_INSTRUCTION_WITH_HIGH_EX_THUMB(NAME ## 10, 8, 0, BODY) \ DEFINE_INSTRUCTION_WITH_HIGH_EX_THUMB(NAME ## 11, 8, 8, BODY) -DEFINE_INSTRUCTION_WITH_HIGH_THUMB(ADD4, ARM_STUB) +DEFINE_INSTRUCTION_WITH_HIGH_THUMB(ADD4, cpu->gprs[rd] += cpu->gprs[rm]) DEFINE_INSTRUCTION_WITH_HIGH_THUMB(CMP3, int32_t aluOut = cpu->gprs[rd] - cpu->gprs[rm]; THUMB_SUBTRACTION_S(cpu->gprs[rd], cpu->gprs[rm], aluOut)) DEFINE_INSTRUCTION_WITH_HIGH_THUMB(MOV3, cpu->gprs[rd] = cpu->gprs[rm])