mirror of https://github.com/x64dbg/zydis
Fixed formatting bug in ZydisInfo tool
This commit is contained in:
parent
821d9da338
commit
39369269e8
|
@ -253,12 +253,12 @@ void printFlags(ZydisDecodedInstruction* instruction)
|
||||||
uint8_t c = 0;
|
uint8_t c = 0;
|
||||||
for (ZydisCPUFlag i = 0; i < ZYDIS_ARRAY_SIZE(instruction->flags); ++i)
|
for (ZydisCPUFlag i = 0; i < ZYDIS_ARRAY_SIZE(instruction->flags); ++i)
|
||||||
{
|
{
|
||||||
if (c == 8)
|
if (instruction->flags[i].action != ZYDIS_CPUFLAG_ACTION_NONE)
|
||||||
|
{
|
||||||
|
if (c && (c % 8 == 0))
|
||||||
{
|
{
|
||||||
printf("\n ");
|
printf("\n ");
|
||||||
}
|
}
|
||||||
if (instruction->flags[i].action != ZYDIS_CPUFLAG_ACTION_NONE)
|
|
||||||
{
|
|
||||||
++c;
|
++c;
|
||||||
printf("[%-4s: %s] ", flagNames[i], flagActions[instruction->flags[i].action]);
|
printf("[%-4s: %s] ", flagNames[i], flagActions[instruction->flags[i].action]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue