mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-27 15:30:33 +00:00
x86: ATT syntax print unsigned imm with 0x prefix
This commit is contained in:
parent
8a7ebc3bd6
commit
7228b4a3a6
@ -335,7 +335,7 @@ static void _printOperand(MCInst *MI, unsigned OpNo, SStream *O)
|
||||
int64_t imm = MCOperand_getImm(Op);
|
||||
if (imm < 0) {
|
||||
if (MI->csh->imm_unsigned) {
|
||||
SStream_concat(O, "$%"PRIx64, imm);
|
||||
SStream_concat(O, "$0x%"PRIx64, imm);
|
||||
} else {
|
||||
if (imm < -HEX_THRESHOLD)
|
||||
SStream_concat(O, "$-0x%"PRIx64, -imm);
|
||||
@ -678,7 +678,7 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
|
||||
SStream_concat(O, "$%"PRIu64, imm);
|
||||
} else {
|
||||
if (MI->csh->imm_unsigned) {
|
||||
SStream_concat(O, "$%"PRIx64, imm);
|
||||
SStream_concat(O, "$0x%"PRIx64, imm);
|
||||
} else {
|
||||
if (imm == 0x8000000000000000LL) // imm == -imm
|
||||
SStream_concat0(O, "$0x8000000000000000");
|
||||
|
Loading…
Reference in New Issue
Block a user