ARM7: Fix decoding LDR3
Jeffrey Pfau jeffrey@endrift.com
Mon, 13 Jul 2015 01:15:59 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/arm/decoder-thumb.c
→
src/arm/decoder-thumb.c
@@ -153,7 +153,7 @@ ARM_OPERAND_IMMEDIATE_3;)
#define DEFINE_IMMEDIATE_WITH_REGISTER_MEM_THUMB(NAME, MNEMONIC, REG, CYCLES) \ DEFINE_THUMB_DECODER(NAME, MNEMONIC, \ - info->op1.reg = (opcode >> 6) & 0x0007; \ + info->op1.reg = (opcode >> 8) & 0x0007; \ info->memory.baseReg = REG; \ info->memory.offset.immediate = (opcode & 0x00FF) << 2; \ info->memory.width = ARM_ACCESS_WORD; \