Implement SUB(1)
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Apr 2013 03:15:21 -0700
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
src/isa-thumb.c
→
src/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, \