all repos — mgba @ 8eb8cdfad86df5f501a960dd20ffbe5d14e0d6ca

mGBA Game Boy Advance Emulator

Implement SUB(1)
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Apr 2013 03:15:21 -0700
commit

8eb8cdfad86df5f501a960dd20ffbe5d14e0d6ca

parent

18b1fd490fa248cd8067c69c1483bb0f1b397c64

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

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

@@ -159,8 +159,7 @@ #define DEFINE_DATA_FORM_2_INSTRUCTION_THUMB(NAME, BODY) \

COUNT_3(DEFINE_DATA_FORM_2_INSTRUCTION_EX_THUMB, NAME ## 1_, BODY) DEFINE_DATA_FORM_2_INSTRUCTION_THUMB(ADD, THUMB_ADDITION(cpu->gprs[rd], cpu->gprs[rn], immediate)) - -DEFINE_DATA_FORM_2_INSTRUCTION_THUMB(SUB, ARM_STUB) +DEFINE_DATA_FORM_2_INSTRUCTION_THUMB(SUB, THUMB_SUBTRACTION(cpu->gprs[rd], cpu->gprs[rn], immediate)) #define DEFINE_DATA_FORM_3_INSTRUCTION_EX_THUMB(NAME, RD, BODY) \ DEFINE_INSTRUCTION_THUMB(NAME, \