mirror of
https://gitlab.com/qemu-project/capstone.git
synced 2025-09-17 02:01:15 +08:00
arm: update imm in printOperand() to fix error reported by @trufae in PR #764
This commit is contained in:
@ -736,12 +736,12 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
|
||||
address = (uint32_t)MI->address + 8;
|
||||
}
|
||||
|
||||
address += imm;
|
||||
imm += address;
|
||||
|
||||
if (address > HEX_THRESHOLD)
|
||||
SStream_concat(O, "#0x%x", address);
|
||||
if (imm > HEX_THRESHOLD)
|
||||
SStream_concat(O, "#0x%x", imm);
|
||||
else
|
||||
SStream_concat(O, "#%u", address);
|
||||
SStream_concat(O, "#%u", imm);
|
||||
} else {
|
||||
switch(MI->flat_insn->id) {
|
||||
default:
|
||||
|
Reference in New Issue
Block a user