all repos — mgba @ 11de611fd2357f76f8631b3a2e57e5425b925958

mGBA Game Boy Advance Emulator

Stub out LDR3
Jeffrey Pfau jeffrey@endrift.com
Tue, 09 Apr 2013 22:57:24 -0700
commit

11de611fd2357f76f8631b3a2e57e5425b925958

parent

5e18eabd0413472b22eff7f15d5d5698a3b2048c

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

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

@@ -147,6 +147,16 @@ DEFINE_INSTRUCTION_WITH_HIGH_THUMB(ADD4, )

DEFINE_INSTRUCTION_WITH_HIGH_THUMB(CMP3, ) DEFINE_INSTRUCTION_WITH_HIGH_THUMB(MOV3, ) +#define DEFINE_LOAD_WITH_IMMEDIATE_EX_THUMB(NAME, RD, BODY) \ + DEFINE_INSTRUCTION_THUMB(NAME, \ + int rd = RD; \ + BODY;) + +#define DEFINE_LOAD_WITH_IMMEDIATE_THUMB(NAME, BODY) \ + COUNT_3(DEFINE_LOAD_WITH_IMMEDIATE_EX_THUMB, NAME ## 3_R, BODY) + +DEFINE_LOAD_WITH_IMMEDIATE_THUMB(LDR, ) + DEFINE_INSTRUCTION_THUMB(ILL, ) #define DECLARE_INSTRUCTION_THUMB(EMITTER, NAME) \

@@ -200,7 +210,7 @@ DECLARE_INSTRUCTION_THUMB(EMITTER, ILL), \

DECLARE_INSTRUCTION_THUMB(EMITTER, ILL), \ DECLARE_INSTRUCTION_THUMB(EMITTER, ILL), \ DECLARE_INSTRUCTION_THUMB(EMITTER, ILL), \ - DECLARE_INSTRUCTION_THUMB(EMITTER, ILL) + APPLY(COUNT_3, DUMMY_4, DECLARE_INSTRUCTION_THUMB(EMITTER, LDR3_R)) static const ThumbInstruction _thumbTable[0x400] = { DECLARE_THUMB_EMITTER_BLOCK(_ThumbInstruction)