mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-03 04:22:18 +00:00
Fixes shift for ARM memory operand (#1162)
Shift is for same operand as index register
This commit is contained in:
parent
d15e310112
commit
9217582b9f
@ -2111,8 +2111,8 @@ static void printT2AddrModeSoRegOperand(MCInst *MI,
|
||||
SStream_concat0(O, ", lsl ");
|
||||
SStream_concat(O, "#%d", ShAmt);
|
||||
if (MI->csh->detail) {
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count - 1].shift.type = ARM_SFT_LSL;
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count - 1].shift.value = ShAmt;
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].shift.type = ARM_SFT_LSL;
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].shift.value = ShAmt;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user