Skip to content

Commit

Permalink
arm64: support CS_OPT_UNSIGNED
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Feb 12, 2019
1 parent d662575 commit aebd183
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions arch/AArch64/AArch64InstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,13 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
imm += MI->address;
printUInt64Bang(O, imm);
} else {
if (MI->csh->doing_mem)
printInt64Bang(O, imm);
else
if (MI->csh->doing_mem) {
if (MI->csh->imm_unsigned) {
printInt64Bang(O, imm & 0xffff);
} else {
printInt64Bang(O, imm);
}
} else
printUInt64Bang(O, imm);
}

Expand Down

0 comments on commit aebd183

Please sign in to comment.