27 #ifndef ZYDIS_INTERNAL_DECODERDATA_H 28 #define ZYDIS_INTERNAL_DECODERDATA_H 30 #include <Zycore/Defines.h> 43 # pragma warning(push) 44 # pragma warning(disable:4214) 56 typedef ZyanU8 ZydisDecoderTreeNodeType;
61 enum ZydisDecoderTreeNodeTypes
63 ZYDIS_NODETYPE_INVALID = 0x00,
67 ZYDIS_NODETYPE_DEFINITION_MASK = 0x80,
71 ZYDIS_NODETYPE_FILTER_XOP = 0x01,
75 ZYDIS_NODETYPE_FILTER_VEX = 0x02,
79 ZYDIS_NODETYPE_FILTER_EMVEX = 0x03,
83 ZYDIS_NODETYPE_FILTER_OPCODE = 0x04,
87 ZYDIS_NODETYPE_FILTER_MODE = 0x05,
91 ZYDIS_NODETYPE_FILTER_MODE_COMPACT = 0x06,
95 ZYDIS_NODETYPE_FILTER_MODRM_MOD = 0x07,
99 ZYDIS_NODETYPE_FILTER_MODRM_MOD_COMPACT = 0x08,
103 ZYDIS_NODETYPE_FILTER_MODRM_REG = 0x09,
107 ZYDIS_NODETYPE_FILTER_MODRM_RM = 0x0A,
111 ZYDIS_NODETYPE_FILTER_PREFIX_GROUP1 = 0x0B,
115 ZYDIS_NODETYPE_FILTER_MANDATORY_PREFIX = 0x0C,
119 ZYDIS_NODETYPE_FILTER_OPERAND_SIZE = 0x0D,
123 ZYDIS_NODETYPE_FILTER_ADDRESS_SIZE = 0x0E,
127 ZYDIS_NODETYPE_FILTER_VECTOR_LENGTH = 0x0F,
131 ZYDIS_NODETYPE_FILTER_REX_W = 0x10,
135 ZYDIS_NODETYPE_FILTER_REX_B = 0x11,
139 ZYDIS_NODETYPE_FILTER_EVEX_B = 0x12,
143 ZYDIS_NODETYPE_FILTER_MVEX_E = 0x13,
147 ZYDIS_NODETYPE_FILTER_MODE_AMD = 0x14,
151 ZYDIS_NODETYPE_FILTER_MODE_KNC = 0x15,
155 ZYDIS_NODETYPE_FILTER_MODE_MPX = 0x16,
159 ZYDIS_NODETYPE_FILTER_MODE_CET = 0x17,
163 ZYDIS_NODETYPE_FILTER_MODE_LZCNT = 0x18,
167 ZYDIS_NODETYPE_FILTER_MODE_TZCNT = 0x19,
171 ZYDIS_NODETYPE_FILTER_MODE_WBNOINVD = 0x1A,
175 ZYDIS_NODETYPE_FILTER_MODE_CLDEMOTE = 0x1B
183 typedef ZyanU16 ZydisDecoderTreeNodeValue;
192 ZydisDecoderTreeNodeType type;
193 ZydisDecoderTreeNodeValue value;
201 # pragma warning(pop) 211 typedef ZyanU8 ZydisInstructionEncodingFlags;
216 #define ZYDIS_INSTR_ENC_FLAG_HAS_MODRM 0x01 221 #define ZYDIS_INSTR_ENC_FLAG_HAS_DISP 0x02 226 #define ZYDIS_INSTR_ENC_FLAG_HAS_IMM0 0x04 231 #define ZYDIS_INSTR_ENC_FLAG_HAS_IMM1 0x08 239 #define ZYDIS_INSTR_ENC_FLAG_FORCE_REG_FORM 0x10 249 ZydisInstructionEncodingFlags
flags;
ZyanBool is_relative
Signals, if the value is a relative offset.
Definition: DecoderData.h:276
struct ZydisInstructionEncodingInfo_::@1 disp
Displacement info.
ZydisInstructionEncodingFlags flags
Contains flags with information about the physical instruction-encoding.
Definition: DecoderData.h:249
Defines the ZydisDecoderTreeNode struct.
Definition: DecoderData.h:190
Defines the basic ZydisDecodedInstruction and ZydisDecodedOperand structs.
struct ZydisInstructionEncodingInfo_::@2 imm[2]
Immediate info.
ZyanU8 size[3]
The size of the displacement value.
Definition: DecoderData.h:258
ZyanBool is_signed
Signals, if the value is signed.
Definition: DecoderData.h:272
Defines the ZydisInstructionEncodingInfo struct.
Definition: DecoderData.h:244