mirror of https://github.com/mgba-emu/mgba.git
ARM7: Fix decoding LDR3
This commit is contained in:
parent
4d5c1f9849
commit
56208521d6
|
@ -153,7 +153,7 @@ DEFINE_DECODER_WITH_HIGH_THUMB(MOV3, MOV, ARM_OPERAND_AFFECTED_1, 0)
|
||||||
|
|
||||||
#define DEFINE_IMMEDIATE_WITH_REGISTER_MEM_THUMB(NAME, MNEMONIC, REG, CYCLES) \
|
#define DEFINE_IMMEDIATE_WITH_REGISTER_MEM_THUMB(NAME, MNEMONIC, REG, CYCLES) \
|
||||||
DEFINE_THUMB_DECODER(NAME, MNEMONIC, \
|
DEFINE_THUMB_DECODER(NAME, MNEMONIC, \
|
||||||
info->op1.reg = (opcode >> 6) & 0x0007; \
|
info->op1.reg = (opcode >> 8) & 0x0007; \
|
||||||
info->memory.baseReg = REG; \
|
info->memory.baseReg = REG; \
|
||||||
info->memory.offset.immediate = (opcode & 0x00FF) << 2; \
|
info->memory.offset.immediate = (opcode & 0x00FF) << 2; \
|
||||||
info->memory.width = ARM_ACCESS_WORD; \
|
info->memory.width = ARM_ACCESS_WORD; \
|
||||||
|
|
Loading…
Reference in New Issue