mirror of https://github.com/x64dbg/zydis
Minor refactorings
This commit is contained in:
parent
e926c26d6e
commit
bcfb84e59b
|
@ -202,7 +202,7 @@ void disassembleBuffer(uint8_t* data, size_t length, bool installHooks)
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
while (ZYDIS_SUCCESS(ZydisDecoderDecodeNextInstruction(&decoder, &info)))
|
while (ZYDIS_SUCCESS(ZydisDecoderDecodeNextInstruction(&decoder, &info)))
|
||||||
{
|
{
|
||||||
printf("%016" PRIx64 " ", info.instrAddress);
|
printf("%016" PRIX64 " ", info.instrAddress);
|
||||||
if (info.instrFlags & ZYDIS_INSTRFLAG_ERROR_MASK)
|
if (info.instrFlags & ZYDIS_INSTRFLAG_ERROR_MASK)
|
||||||
{
|
{
|
||||||
printf(" db %02x\n", info.data[0]);
|
printf(" db %02x\n", info.data[0]);
|
||||||
|
|
|
@ -87,7 +87,7 @@ typedef uint8_t ZydisFormatterAddressFormat;
|
||||||
/**
|
/**
|
||||||
* @brief Values that represent address-formats.
|
* @brief Values that represent address-formats.
|
||||||
*/
|
*/
|
||||||
enum ZydisFormatterAddressFormat_
|
enum ZydisFormatterAddressFormats
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @brief Currently defaults to @c ZYDIS_FORMATTER_ADDR_ABSOLUTE.
|
* @brief Currently defaults to @c ZYDIS_FORMATTER_ADDR_ABSOLUTE.
|
||||||
|
|
Loading…
Reference in New Issue