Skip to content
forked from zyantific/zydis

Fast and lightweight x86/x86-64 disassembler library

License

Notifications You must be signed in to change notification settings

wonderzdh/zydis

 
 

Repository files navigation

C98 support.

1: Move variable is defined in the first line

2: union initialization: detail: https://en.cppreference.com/w/c/language/struct_initialization

The original: const ZydisOperandDefinition operandDefinitions[] = { { ZYDIS_SEMANTIC_OPTYPE_IMPLICIT_REG, ZYDIS_OPERAND_VISIBILITY_HIDDEN, ZYDIS_OPERAND_ACTION_READ, { 0, 0, 0 }, ZYDIS_IELEMENT_TYPE_INVALID, { .reg = { ZYDIS_IMPLREG_TYPE_STATIC, { .reg = ZYDIS_REGISTER_AX } } } } }

use ReBuildInc.py after modification: const ZydisOperandDefinition operandDefinitions[] = { { ZYDIS_SEMANTIC_OPTYPE_IMPLICIT_REG, ZYDIS_OPERAND_VISIBILITY_HIDDEN, ZYDIS_OPERAND_ACTION_READ, { 0, 0, 0 }, ZYDIS_IELEMENT_TYPE_INVALID, { ZYDIS_REGISTER_AX << 8 | ZYDIS_IMPLREG_TYPE_STATIC } } }

About

Fast and lightweight x86/x86-64 disassembler library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 99.9%
  • Other 0.1%