ARM7: Fix decoding LDR3

This commit is contained in:
Jeffrey Pfau 2015-07-13 01:15:59 -07:00
parent 4d5c1f9849
commit 56208521d6
1 changed files with 1 additions and 1 deletions

View File

@ -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; \