x86: add more cases to print as unsigned 8bit imm

test2
me 10 years ago
parent 89820c40ae
commit 26cb4aa50f
  1. 3
      arch/X86/X86ATTInstPrinter.c
  2. 3
      arch/X86/X86IntelInstPrinter.c

@ -649,6 +649,9 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
case X86_TEST8mi_alt:
case X86_XOR8mi:
case X86_XOR8mi8:
case X86_PUSH64i8:
case X86_CMP32ri8:
case X86_CMP64ri8:
imm = imm & 0xff;
opsize = 1; // immediate of 1 byte

@ -776,6 +776,9 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
case X86_TEST8mi_alt:
case X86_XOR8mi:
case X86_XOR8mi8:
case X86_PUSH64i8:
case X86_CMP32ri8:
case X86_CMP64ri8:
imm = imm & 0xff;
opsize = 1; // immediate of 1 byte

Loading…
Cancel
Save