mirror of https://github.com/x64dbg/zydis
Fixed formatting of signed 8-bit immediate operands
This commit is contained in:
parent
c62cd21c89
commit
c91fe2cc4b
|
@ -368,6 +368,11 @@ static ZydisStatus ZydisFormatterPrintImmediateIntel(const ZydisFormatter* forma
|
||||||
return ZYDIS_STATUS_INVALID_PARAMETER;
|
return ZYDIS_STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (operand->size == 8)
|
||||||
|
{
|
||||||
|
return ZydisPrintHexU(
|
||||||
|
buffer, bufferLen, (uint8_t)operand->imm.value.u, 2, ZYDIS_TRUE, ZYDIS_TRUE);
|
||||||
|
}
|
||||||
switch (instruction->operandSize)
|
switch (instruction->operandSize)
|
||||||
{
|
{
|
||||||
case 16:
|
case 16:
|
||||||
|
|
Loading…
Reference in New Issue