mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-26 09:25:54 +00:00
Correct printAM3PreOrOffsetIndexOp disp value
This commit is contained in:
parent
41811a95fc
commit
996f06c30f
@ -1056,10 +1056,10 @@ static void printAM3PreOrOffsetIndexOp(MCInst *MI, unsigned Op, SStream *O,
|
||||
|
||||
if (MI->csh->detail) {
|
||||
if (subtracted) {
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = (int)MCOperand_getImm(MO3);
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = (int)ImmOffs;
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].subtracted = true;
|
||||
} else
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = (int)-MCOperand_getImm(MO3);
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = (int)-ImmOffs;
|
||||
}
|
||||
|
||||
SStream_concat0(O, "]");
|
||||
|
Loading…
x
Reference in New Issue
Block a user