all repos — mgba @ bc4924cef5ad81407c7e99aa34a5e7a6246d565d

mGBA Game Boy Advance Emulator

Implement CMP(3)
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Apr 2013 12:28:24 -0700
commit

bc4924cef5ad81407c7e99aa34a5e7a6246d565d

parent

aa14ed441c0981cf5001953918d364057452f1dd

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

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

@@ -224,7 +224,7 @@ 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(CMP3, ARM_STUB) +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]) #define DEFINE_IMMEDIATE_WITH_REGISTER_EX_THUMB(NAME, RD, BODY) \