mirror of https://github.com/mgba-emu/mgba.git
ADD/SUB 1 stubs
This commit is contained in:
parent
2618c39a5d
commit
56c3685ba6
|
@ -73,6 +73,17 @@ DEFINE_SHIFT_1_INSTRUCTION_THUMB(LSL, )
|
||||||
DEFINE_SHIFT_1_INSTRUCTION_THUMB(LSR, )
|
DEFINE_SHIFT_1_INSTRUCTION_THUMB(LSR, )
|
||||||
DEFINE_SHIFT_1_INSTRUCTION_THUMB(ASR, )
|
DEFINE_SHIFT_1_INSTRUCTION_THUMB(ASR, )
|
||||||
|
|
||||||
|
#define DEFINE_ADD_SUB_1_INSTRUCTION_EX_THUMB(NAME, IMMEDIATE, BODY) \
|
||||||
|
DEFINE_INSTRUCTION_THUMB(NAME, \
|
||||||
|
int immediate = IMMEDIATE; \
|
||||||
|
BODY;)
|
||||||
|
|
||||||
|
#define DEFINE_ADD_SUB_1_INSTRUCTION_THUMB(NAME, BODY) \
|
||||||
|
COUNT_3(DEFINE_ADD_SUB_1_INSTRUCTION_EX_THUMB, NAME ## 1_, BODY)
|
||||||
|
|
||||||
|
DEFINE_ADD_SUB_1_INSTRUCTION_THUMB(ADD, )
|
||||||
|
DEFINE_ADD_SUB_1_INSTRUCTION_THUMB(SUB, )
|
||||||
|
|
||||||
#define DEFINE_ADD_SUB_3_INSTRUCTION_EX_THUMB(NAME, RM, BODY) \
|
#define DEFINE_ADD_SUB_3_INSTRUCTION_EX_THUMB(NAME, RM, BODY) \
|
||||||
DEFINE_INSTRUCTION_THUMB(NAME, \
|
DEFINE_INSTRUCTION_THUMB(NAME, \
|
||||||
int rm = RM; \
|
int rm = RM; \
|
||||||
|
@ -94,6 +105,8 @@ DEFINE_ADD_SUB_3_INSTRUCTION_THUMB(SUB, )
|
||||||
APPLY(COUNT_5, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, ASR1_)) \
|
APPLY(COUNT_5, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, ASR1_)) \
|
||||||
APPLY(COUNT_3, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, ADD3_R)) \
|
APPLY(COUNT_3, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, ADD3_R)) \
|
||||||
APPLY(COUNT_3, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, SUB3_R)) \
|
APPLY(COUNT_3, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, SUB3_R)) \
|
||||||
|
APPLY(COUNT_3, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, ADD1_)) \
|
||||||
|
APPLY(COUNT_3, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, SUB1_)) \
|
||||||
|
|
||||||
static const ThumbInstruction _thumbTable[0x400] = {
|
static const ThumbInstruction _thumbTable[0x400] = {
|
||||||
DECLARE_THUMB_EMITTER_BLOCK(_ThumbInstruction)
|
DECLARE_THUMB_EMITTER_BLOCK(_ThumbInstruction)
|
||||||
|
|
Loading…
Reference in New Issue