all repos — mgba @ 21490dcf511b7e0d640bf779c02c0ba53c4e99f4

mGBA Game Boy Advance Emulator

Implement CMN
Jeffrey Pfau jeffrey@endrift.com
Thu, 25 Apr 2013 00:48:35 -0700
commit

21490dcf511b7e0d640bf779c02c0ba53c4e99f4

parent

c8b2d2753e185dd4e8d8309a0d93b1064d1a31f2

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

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

@@ -253,7 +253,7 @@ DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(ROR, ARM_STUB)

DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(TST, ARM_STUB) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(NEG, THUMB_SUBTRACTION(cpu->gprs[rd], 0, cpu->gprs[rn])) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(CMP2, int32_t aluOut = cpu->gprs[rd] - cpu->gprs[rn]; THUMB_SUBTRACTION_S(cpu->gprs[rd], cpu->gprs[rn], aluOut)) -DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(CMN, ARM_STUB) +DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(CMN, int32_t aluOut = cpu->gprs[rd] + cpu->gprs[rn]; THUMB_ADDITION_S(cpu->gprs[rd], cpu->gprs[rn], aluOut)) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(ORR, cpu->gprs[rd] = cpu->gprs[rd] | cpu->gprs[rn]; THUMB_NEUTRAL_S( , , cpu->gprs[rd])) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(MUL, cpu->gprs[rd] *= cpu->gprs[rn]; THUMB_NEUTRAL_S( , , cpu->gprs[rd])) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(BIC, cpu->gprs[rd] = cpu->gprs[rd] & ~cpu->gprs[rn]; THUMB_NEUTRAL_S( , , cpu->gprs[rd]))