all repos — mgba @ 18b1fd490fa248cd8067c69c1483bb0f1b397c64

mGBA Game Boy Advance Emulator

Implement SUB(3)
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Apr 2013 03:13:06 -0700
commit

18b1fd490fa248cd8067c69c1483bb0f1b397c64

parent

280fc18cffc156864e56c5a2d8f5787874a51c78

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

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

@@ -146,7 +146,7 @@ #define DEFINE_DATA_FORM_1_INSTRUCTION_THUMB(NAME, BODY) \

COUNT_3(DEFINE_DATA_FORM_1_INSTRUCTION_EX_THUMB, NAME ## 3_R, BODY) DEFINE_DATA_FORM_1_INSTRUCTION_THUMB(ADD, THUMB_ADDITION(cpu->gprs[rd], cpu->gprs[rn], cpu->gprs[rm])) -DEFINE_DATA_FORM_1_INSTRUCTION_THUMB(SUB, ARM_STUB) +DEFINE_DATA_FORM_1_INSTRUCTION_THUMB(SUB, THUMB_SUBTRACTION(cpu->gprs[rd], cpu->gprs[rn], cpu->gprs[rm])) #define DEFINE_DATA_FORM_2_INSTRUCTION_EX_THUMB(NAME, IMMEDIATE, BODY) \ DEFINE_INSTRUCTION_THUMB(NAME, \