all repos — mgba @ b541b99d0c88379c6a40a15b79ec4752a22f9be8

mGBA Game Boy Advance Emulator

Implement NEG
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Apr 2013 03:06:11 -0700
commit

b541b99d0c88379c6a40a15b79ec4752a22f9be8

parent

53212baee52f95c80a06eebe758e621167b0d30f

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

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

@@ -223,7 +223,7 @@ DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(ADC, ARM_STUB)

DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(SBC, ARM_STUB) 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, 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, ARM_STUB) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(CMN, ARM_STUB) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(ORR, cpu->gprs[rd] = cpu->gprs[rd] | cpu->gprs[rn]; THUMB_NEUTRAL_S( , , cpu->gprs[rd]))