mirror of https://github.com/x64dbg/zydis
Minor refactorings
This commit is contained in:
parent
04ae18bef2
commit
38975c8d3d
|
@ -450,6 +450,7 @@ void printInstruction(ZydisDecodedInstruction* instruction)
|
||||||
{ ZYDIS_ATTRIB_HAS_MVEX, "HAS_MVEX" },
|
{ ZYDIS_ATTRIB_HAS_MVEX, "HAS_MVEX" },
|
||||||
{ ZYDIS_ATTRIB_IS_RELATIVE, "IS_RELATIVE" },
|
{ ZYDIS_ATTRIB_IS_RELATIVE, "IS_RELATIVE" },
|
||||||
{ ZYDIS_ATTRIB_IS_PRIVILEGED, "IS_PRIVILEGED" },
|
{ ZYDIS_ATTRIB_IS_PRIVILEGED, "IS_PRIVILEGED" },
|
||||||
|
{ ZYDIS_ATTRIB_IS_FAR_BRANCH, "IS_FAR_BRANCH" },
|
||||||
{ ZYDIS_ATTRIB_ACCEPTS_LOCK, "ACCEPTS_LOCK" },
|
{ ZYDIS_ATTRIB_ACCEPTS_LOCK, "ACCEPTS_LOCK" },
|
||||||
{ ZYDIS_ATTRIB_ACCEPTS_REP, "ACCEPTS_REP" },
|
{ ZYDIS_ATTRIB_ACCEPTS_REP, "ACCEPTS_REP" },
|
||||||
{ ZYDIS_ATTRIB_ACCEPTS_REPE, "ACCEPTS_REPE" },
|
{ ZYDIS_ATTRIB_ACCEPTS_REPE, "ACCEPTS_REPE" },
|
||||||
|
@ -499,8 +500,10 @@ void printInstruction(ZydisDecodedInstruction* instruction)
|
||||||
printf(" ISA-SET: %s\n", ZydisISASetGetString(instruction->meta.isaSet));
|
printf(" ISA-SET: %s\n", ZydisISASetGetString(instruction->meta.isaSet));
|
||||||
printf(" ISA-EXT: %s\n", ZydisISAExtGetString(instruction->meta.isaExt));
|
printf(" ISA-EXT: %s\n", ZydisISAExtGetString(instruction->meta.isaExt));
|
||||||
printf(" EXCEPTIONS: %s\n", exceptionClassStrings[instruction->meta.exceptionClass]);
|
printf(" EXCEPTIONS: %s\n", exceptionClassStrings[instruction->meta.exceptionClass]);
|
||||||
fputs (" ATTRIBUTES: ", stdout);
|
|
||||||
|
|
||||||
|
if (instruction->attributes)
|
||||||
|
{
|
||||||
|
fputs (" ATTRIBUTES: ", stdout);
|
||||||
for (size_t i = 0; i < ZYDIS_ARRAY_SIZE(attributeMap); ++i)
|
for (size_t i = 0; i < ZYDIS_ARRAY_SIZE(attributeMap); ++i)
|
||||||
{
|
{
|
||||||
if (instruction->attributes & attributeMap[i].attrMask)
|
if (instruction->attributes & attributeMap[i].attrMask)
|
||||||
|
@ -508,8 +511,8 @@ void printInstruction(ZydisDecodedInstruction* instruction)
|
||||||
printf("%s ", attributeMap[i].str);
|
printf("%s ", attributeMap[i].str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fputs("\n", stdout);
|
fputs("\n", stdout);
|
||||||
|
}
|
||||||
|
|
||||||
if (instruction->operandCount > 0)
|
if (instruction->operandCount > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue