32 #ifndef ZYDIS_INSTRUCTIONINFO_H
33 #define ZYDIS_INSTRUCTIONINFO_H
190 #define ZYDIS_ATTRIB_HAS_MODRM 0x0000000000000001
194 #define ZYDIS_ATTRIB_HAS_SIB 0x0000000000000002
198 #define ZYDIS_ATTRIB_HAS_REX 0x0000000000000004
202 #define ZYDIS_ATTRIB_HAS_XOP 0x0000000000000008
206 #define ZYDIS_ATTRIB_HAS_VEX 0x0000000000000010
210 #define ZYDIS_ATTRIB_HAS_EVEX 0x0000000000000020
214 #define ZYDIS_ATTRIB_HAS_MVEX 0x0000000000000040
218 #define ZYDIS_ATTRIB_IS_RELATIVE 0x0000000000000080
224 #define ZYDIS_ATTRIB_IS_PRIVILEGED 0x0000000000000100
229 #define ZYDIS_ATTRIB_IS_FAR_BRANCH 0x0000001000000000
234 #define ZYDIS_ATTRIB_ACCEPTS_LOCK 0x0000000000000200
238 #define ZYDIS_ATTRIB_ACCEPTS_REP 0x0000000000000400
242 #define ZYDIS_ATTRIB_ACCEPTS_REPE 0x0000000000000800
246 #define ZYDIS_ATTRIB_ACCEPTS_REPZ 0x0000000000000800
250 #define ZYDIS_ATTRIB_ACCEPTS_REPNE 0x0000000000001000
254 #define ZYDIS_ATTRIB_ACCEPTS_REPNZ 0x0000000000001000
258 #define ZYDIS_ATTRIB_ACCEPTS_BOUND 0x0000000000002000
262 #define ZYDIS_ATTRIB_ACCEPTS_XACQUIRE 0x0000000000004000
266 #define ZYDIS_ATTRIB_ACCEPTS_XRELEASE 0x0000000000008000
271 #define ZYDIS_ATTRIB_ACCEPTS_HLE_WITHOUT_LOCK 0x0000000000010000
275 #define ZYDIS_ATTRIB_ACCEPTS_BRANCH_HINTS 0x0000000000020000
279 #define ZYDIS_ATTRIB_ACCEPTS_SEGMENT 0x0000000000040000
283 #define ZYDIS_ATTRIB_HAS_LOCK 0x0000000000080000
287 #define ZYDIS_ATTRIB_HAS_REP 0x0000000000100000
291 #define ZYDIS_ATTRIB_HAS_REPE 0x0000000000200000
295 #define ZYDIS_ATTRIB_HAS_REPZ 0x0000000000200000
299 #define ZYDIS_ATTRIB_HAS_REPNE 0x0000000000400000
303 #define ZYDIS_ATTRIB_HAS_REPNZ 0x0000000000400000
307 #define ZYDIS_ATTRIB_HAS_BOUND 0x0000000000800000
311 #define ZYDIS_ATTRIB_HAS_XACQUIRE 0x0000000001000000
315 #define ZYDIS_ATTRIB_HAS_XRELEASE 0x0000000002000000
319 #define ZYDIS_ATTRIB_HAS_BRANCH_NOT_TAKEN 0x0000000004000000
323 #define ZYDIS_ATTRIB_HAS_BRANCH_TAKEN 0x0000000008000000
327 #define ZYDIS_ATTRIB_HAS_SEGMENT 0x00000003F0000000
331 #define ZYDIS_ATTRIB_HAS_SEGMENT_CS 0x0000000010000000
335 #define ZYDIS_ATTRIB_HAS_SEGMENT_SS 0x0000000020000000
339 #define ZYDIS_ATTRIB_HAS_SEGMENT_DS 0x0000000040000000
343 #define ZYDIS_ATTRIB_HAS_SEGMENT_ES 0x0000000080000000
347 #define ZYDIS_ATTRIB_HAS_SEGMENT_FS 0x0000000100000000
351 #define ZYDIS_ATTRIB_HAS_SEGMENT_GS 0x0000000200000000
355 #define ZYDIS_ATTRIB_HAS_OPERANDSIZE 0x0000000400000000
359 #define ZYDIS_ATTRIB_HAS_ADDRESSSIZE 0x0000000800000000
480 ZYDIS_CPUFLAG_ACTION_NONE,
481 ZYDIS_CPUFLAG_ACTION_TESTED,
482 ZYDIS_CPUFLAG_ACTION_MODIFIED,
483 ZYDIS_CPUFLAG_ACTION_SET_0,
484 ZYDIS_CPUFLAG_ACTION_SET_1,
485 ZYDIS_CPUFLAG_ACTION_UNDEFINED,
506 ZYDIS_EXCEPTION_CLASS_NONE,
508 ZYDIS_EXCEPTION_CLASS_SSE1,
509 ZYDIS_EXCEPTION_CLASS_SSE2,
510 ZYDIS_EXCEPTION_CLASS_SSE3,
511 ZYDIS_EXCEPTION_CLASS_SSE4,
512 ZYDIS_EXCEPTION_CLASS_SSE5,
513 ZYDIS_EXCEPTION_CLASS_SSE7,
514 ZYDIS_EXCEPTION_CLASS_AVX1,
515 ZYDIS_EXCEPTION_CLASS_AVX2,
516 ZYDIS_EXCEPTION_CLASS_AVX3,
517 ZYDIS_EXCEPTION_CLASS_AVX4,
518 ZYDIS_EXCEPTION_CLASS_AVX5,
519 ZYDIS_EXCEPTION_CLASS_AVX6,
520 ZYDIS_EXCEPTION_CLASS_AVX7,
521 ZYDIS_EXCEPTION_CLASS_AVX8,
522 ZYDIS_EXCEPTION_CLASS_AVX11,
523 ZYDIS_EXCEPTION_CLASS_AVX12,
524 ZYDIS_EXCEPTION_CLASS_E1,
525 ZYDIS_EXCEPTION_CLASS_E1NF,
526 ZYDIS_EXCEPTION_CLASS_E2,
527 ZYDIS_EXCEPTION_CLASS_E2NF,
528 ZYDIS_EXCEPTION_CLASS_E3,
529 ZYDIS_EXCEPTION_CLASS_E3NF,
530 ZYDIS_EXCEPTION_CLASS_E4,
531 ZYDIS_EXCEPTION_CLASS_E4NF,
532 ZYDIS_EXCEPTION_CLASS_E5,
533 ZYDIS_EXCEPTION_CLASS_E5NF,
534 ZYDIS_EXCEPTION_CLASS_E6,
535 ZYDIS_EXCEPTION_CLASS_E6NF,
536 ZYDIS_EXCEPTION_CLASS_E7NM,
537 ZYDIS_EXCEPTION_CLASS_E7NM128,
538 ZYDIS_EXCEPTION_CLASS_E9NF,
539 ZYDIS_EXCEPTION_CLASS_E10,
540 ZYDIS_EXCEPTION_CLASS_E10NF,
541 ZYDIS_EXCEPTION_CLASS_E11,
542 ZYDIS_EXCEPTION_CLASS_E11NF,
543 ZYDIS_EXCEPTION_CLASS_E12,
544 ZYDIS_EXCEPTION_CLASS_E12NP,
545 ZYDIS_EXCEPTION_CLASS_K20,
546 ZYDIS_EXCEPTION_CLASS_K21,
567 ZYDIS_VECTOR_LENGTH_INVALID = 0,
568 ZYDIS_VECTOR_LENGTH_128 = 128,
569 ZYDIS_VECTOR_LENGTH_256 = 256,
570 ZYDIS_VECTOR_LENGTH_512 = 512,
591 ZYDIS_MASK_MODE_INVALID,
621 ZYDIS_BROADCAST_MODE_INVALID,
622 ZYDIS_BROADCAST_MODE_1_TO_2,
623 ZYDIS_BROADCAST_MODE_1_TO_4,
624 ZYDIS_BROADCAST_MODE_1_TO_8,
625 ZYDIS_BROADCAST_MODE_1_TO_16,
626 ZYDIS_BROADCAST_MODE_1_TO_32,
627 ZYDIS_BROADCAST_MODE_1_TO_64,
628 ZYDIS_BROADCAST_MODE_2_TO_4,
629 ZYDIS_BROADCAST_MODE_2_TO_8,
630 ZYDIS_BROADCAST_MODE_2_TO_16,
631 ZYDIS_BROADCAST_MODE_4_TO_8,
632 ZYDIS_BROADCAST_MODE_4_TO_16,
633 ZYDIS_BROADCAST_MODE_8_TO_16,
654 ZYDIS_ROUNDING_MODE_INVALID,
691 ZYDIS_SWIZZLE_MODE_INVALID,
692 ZYDIS_SWIZZLE_MODE_DCBA,
693 ZYDIS_SWIZZLE_MODE_CDAB,
694 ZYDIS_SWIZZLE_MODE_BADC,
695 ZYDIS_SWIZZLE_MODE_DACB,
696 ZYDIS_SWIZZLE_MODE_AAAA,
697 ZYDIS_SWIZZLE_MODE_BBBB,
698 ZYDIS_SWIZZLE_MODE_CCCC,
699 ZYDIS_SWIZZLE_MODE_DDDD,
720 ZYDIS_CONVERSION_MODE_INVALID,
721 ZYDIS_CONVERSION_MODE_FLOAT16,
722 ZYDIS_CONVERSION_MODE_SINT8,
723 ZYDIS_CONVERSION_MODE_UINT8,
724 ZYDIS_CONVERSION_MODE_SINT16,
725 ZYDIS_CONVERSION_MODE_UINT16,
756 uint8_t
data[ZYDIS_MAX_INSTRUCTION_LENGTH];
934 uint8_t
data[ZYDIS_MAX_INSTRUCTION_LENGTH - 1];
Includes and defines some default datatypes.
uint8_t ZydisBool
@briefs Defines the ZydisBool datatype.
Definition: CommonTypes.h:92
uint8_t ZydisBroadcastMode
Defines the ZydisBroadcastMode datatype.
Definition: DecoderTypes.h:614
ZydisConversionModes
Values that represent conversion-modes.
Definition: DecoderTypes.h:719
@ ZYDIS_CONVERSION_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:729
uint8_t ZydisExceptionClass
Defines the ZydisExceptionClass datatype.
Definition: DecoderTypes.h:499
ZydisExceptionClasses
Values that represent exception-classes.
Definition: DecoderTypes.h:505
@ ZYDIS_EXCEPTION_CLASS_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:550
uint8_t ZydisRoundingMode
Defines the ZydisRoundingMode datatype.
Definition: DecoderTypes.h:647
ZydisVectorLengths
Values that represent vector-lengths.
Definition: DecoderTypes.h:566
@ ZYDIS_VECTOR_LENGTH_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:574
ZydisMaskModes
Values that represent AVX mask-modes.
Definition: DecoderTypes.h:590
@ ZYDIS_MASK_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:604
@ ZYDIS_MASK_MODE_MERGE
The embedded mask register is used as a merge-mask.
Definition: DecoderTypes.h:596
@ ZYDIS_MASK_MODE_ZERO
The embedded mask register is used as a zero-mask.
Definition: DecoderTypes.h:600
uint32_t ZydisCPUFlagMask
Defines the ZydisCPUFlagMask datatype.
Definition: DecoderTypes.h:373
uint64_t ZydisInstructionAttributes
Defines the ZydisInstructionAttributes datatype.
Definition: DecoderTypes.h:185
uint8_t ZydisConversionMode
Defines the ZydisConversionMode datatype.
Definition: DecoderTypes.h:713
ZydisCPUFlags
Values that represent CPU-flags.
Definition: DecoderTypes.h:379
@ ZYDIS_CPUFLAG_ZF
Zero flag.
Definition: DecoderTypes.h:395
@ ZYDIS_CPUFLAG_TF
Trap flag.
Definition: DecoderTypes.h:403
@ ZYDIS_CPUFLAG_C1
FPU condition-code flag 1.
Definition: DecoderTypes.h:455
@ ZYDIS_CPUFLAG_SF
Sign flag.
Definition: DecoderTypes.h:399
@ ZYDIS_CPUFLAG_OF
Overflow flag.
Definition: DecoderTypes.h:415
@ ZYDIS_CPUFLAG_IF
Interrupt enable flag.
Definition: DecoderTypes.h:407
@ ZYDIS_CPUFLAG_VIP
Virtual interrupt pending.
Definition: DecoderTypes.h:443
@ ZYDIS_CPUFLAG_VIF
Virtual interrupt flag.
Definition: DecoderTypes.h:439
@ ZYDIS_CPUFLAG_CF
Carry flag.
Definition: DecoderTypes.h:383
@ ZYDIS_CPUFLAG_PF
Parity flag.
Definition: DecoderTypes.h:387
@ ZYDIS_CPUFLAG_C3
FPU condition-code flag 3.
Definition: DecoderTypes.h:463
@ ZYDIS_CPUFLAG_C2
FPU condition-code flag 2.
Definition: DecoderTypes.h:459
@ ZYDIS_CPUFLAG_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:467
@ ZYDIS_CPUFLAG_C0
FPU condition-code flag 0.
Definition: DecoderTypes.h:451
@ ZYDIS_CPUFLAG_DF
Direction flag.
Definition: DecoderTypes.h:411
@ ZYDIS_CPUFLAG_AC
Alignment check.
Definition: DecoderTypes.h:435
@ ZYDIS_CPUFLAG_VM
Virtual 8086 mode flag.
Definition: DecoderTypes.h:431
@ ZYDIS_CPUFLAG_IOPL
I/O privilege level flag.
Definition: DecoderTypes.h:419
@ ZYDIS_CPUFLAG_RF
Resume flag.
Definition: DecoderTypes.h:427
@ ZYDIS_CPUFLAG_AF
Adjust flag.
Definition: DecoderTypes.h:391
@ ZYDIS_CPUFLAG_NT
Nested task flag.
Definition: DecoderTypes.h:423
@ ZYDIS_CPUFLAG_ID
Able to use CPUID instruction.
Definition: DecoderTypes.h:447
uint8_t ZydisSwizzleMode
Defines the ZydisSwizzleMode datatype.
Definition: DecoderTypes.h:684
uint8_t ZydisMaskMode
Defines the ZydisMaskMode datatype.
Definition: DecoderTypes.h:584
uint16_t ZydisVectorLength
Defines the ZydisVectorLength datatype.
Definition: DecoderTypes.h:560
struct ZydisDecodedOperand_ ZydisDecodedOperand
Defines the ZydisDecodedOperand struct.
uint8_t ZydisCPUFlagAction
Defines the ZydisCPUFlagAction datatype.
Definition: DecoderTypes.h:473
ZydisRoundingModes
Values that represent AVX rounding-modes.
Definition: DecoderTypes.h:653
@ ZYDIS_ROUNDING_MODE_RN
Round to nearest.
Definition: DecoderTypes.h:658
@ ZYDIS_ROUNDING_MODE_RZ
Round towards zero.
Definition: DecoderTypes.h:670
@ ZYDIS_ROUNDING_MODE_RD
Round down.
Definition: DecoderTypes.h:662
@ ZYDIS_ROUNDING_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:674
@ ZYDIS_ROUNDING_MODE_RU
Round up.
Definition: DecoderTypes.h:666
uint8_t ZydisCPUFlag
Defines the ZydisCPUFlag datatype.
Definition: DecoderTypes.h:368
ZydisCPUFlagActions
Values that represent CPU-flag actions.
Definition: DecoderTypes.h:479
@ ZYDIS_CPUFLAG_ACTION_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:489
struct ZydisDecodedInstruction_ ZydisDecodedInstruction
Defines the ZydisDecodedInstruction struct.
ZydisSwizzleModes
Values that represent swizzle-modes.
Definition: DecoderTypes.h:690
@ ZYDIS_SWIZZLE_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:703
ZydisBroadcastModes
Values that represent AVX broadcast-modes.
Definition: DecoderTypes.h:620
@ ZYDIS_BROADCAST_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:637
Mnemonic constant definitions and helper functions.
Utility functions and constants for registers.
uint8_t ZydisRegister
Defines the ZydisRegister datatype.
Definition: Register.h:54
Defines decoder/encoder-shared macros and types.
uint8_t ZydisMachineMode
Defines the ZydisMachineMode datatype.
Definition: SharedTypes.h:65
uint16_t ZydisElementSize
Defines the ZydisElementSize datatype.
Definition: SharedTypes.h:153
uint8_t ZydisOperandAction
Defines the ZydisOperandAction datatype.
Definition: SharedTypes.h:287
uint8_t ZydisInstructionEncoding
Defines the ZydisInstructionEncoding datatype.
Definition: SharedTypes.h:350
uint8_t ZydisOpcodeMap
Defines the ZydisOpcodeMap map.
Definition: SharedTypes.h:395
uint8_t ZydisOperandVisibility
Defines the ZydisOperandVisibility datatype.
Definition: SharedTypes.h:254
uint8_t ZydisElementType
Defines the ZydisElementType datatype.
Definition: SharedTypes.h:131
uint8_t ZydisOperandType
Defines the ZydisOperandType datatype.
Definition: SharedTypes.h:162
uint8_t ZydisOperandEncoding
Defines the ZydisOperandEncoding datatype.
Definition: SharedTypes.h:202
Defines the ZydisDecodedInstruction struct.
Definition: DecoderTypes.h:740
struct ZydisDecodedInstruction_::@9::@18 vex
Detailed info about the VEX-prefix.
ZydisConversionMode mode
The AVX data-conversion mode (MVEX only).
Definition: DecoderTypes.h:890
ZydisMnemonic mnemonic
The instruction-mnemonic.
Definition: DecoderTypes.h:748
uint8_t SSS
Swizzle/broadcast/up-convert/down-convert/static-rounding controls.
Definition: DecoderTypes.h:1192
struct ZydisDecodedInstruction_::@9::@23 disp
Detailed info about displacement-bytes.
struct ZydisDecodedInstruction_::@9::@24 imm[2]
Detailed info about immediate-bytes.
ZydisRegister reg
The mask register.
Definition: DecoderTypes.h:839
ZydisCPUFlagAction action
The CPU-flag action.
Definition: DecoderTypes.h:816
ZydisExceptionClass exceptionClass
The exception class.
Definition: DecoderTypes.h:921
struct ZydisDecodedInstruction_::@9::@15 prefixes
Detailed info about the legacy prefixes.
uint8_t R2
High-16 register specifier modifier (inverted).
Definition: DecoderTypes.h:1098
struct ZydisDecodedInstruction_::@7 avx
Extended info for AVX instructions.
uint8_t addressWidth
The effective address width.
Definition: DecoderTypes.h:780
uint8_t aaa
Embedded opmask register specifier.
Definition: DecoderTypes.h:1138
uint8_t b
Broadcast/RC/SAE Context.
Definition: DecoderTypes.h:1130
ZydisBroadcastMode mode
The AVX broadcast-mode.
Definition: DecoderTypes.h:860
struct ZydisDecodedInstruction_::@9::@21 modrm
Detailed info about the ModRM-byte.
uint8_t E
Non-temporal/eviction hint.
Definition: DecoderTypes.h:1188
uint8_t W
64-bit operand-size promotion.
Definition: DecoderTypes.h:964
uint8_t opcode
The instruction-opcode.
Definition: DecoderTypes.h:768
struct ZydisDecodedInstruction_::@7::@13 swizzle
Contains info about the AVX register-swizzle (MVEX only).
struct ZydisDecodedInstruction_::@6 accessedFlags[ZYDIS_CPUFLAG_MAX_VALUE+1]
Information about accessed CPU flags.
uint8_t mmmm
Opcode-map specifier.
Definition: DecoderTypes.h:1172
struct ZydisDecodedInstruction_::@7::@14 conversion
Contains info about the AVX data-conversion (MVEX only).
uint8_t L2
Vector-length specifier or rounding-control (most significant bit).
Definition: DecoderTypes.h:1122
ZydisSwizzleMode mode
The AVX register-swizzle mode (MVEX only).
Definition: DecoderTypes.h:880
uint8_t operandWidth
The effective operand width.
Definition: DecoderTypes.h:776
struct ZydisDecodedInstruction_::@8 meta
Meta info.
ZydisBool isDecoded
TRUE if the prefix got already decoded.
Definition: DecoderTypes.h:956
ZydisISAExt isaExt
The ISA-set extension.
Definition: DecoderTypes.h:917
struct ZydisDecodedInstruction_::@9 raw
Extended info about different instruction-parts like ModRM, SIB or encoding-prefixes.
uint8_t mm
Opcode-map specifier.
Definition: DecoderTypes.h:1102
uint8_t B
Extension of the ModRM.rm, SIB.base, or opcode.reg field.
Definition: DecoderTypes.h:976
struct ZydisDecodedInstruction_::@7::@12 rounding
Contains info about the AVX rounding.
ZydisVectorLength vectorLength
The AVX vector-length.
Definition: DecoderTypes.h:826
uint8_t operandCount
The number of instruction-operands.
Definition: DecoderTypes.h:784
ZydisInstructionEncoding encoding
The instruction-encoding (default, 3DNow, VEX, EVEX, XOP).
Definition: DecoderTypes.h:760
ZydisInstructionAttributes attributes
Instruction attributes.
Definition: DecoderTypes.h:792
struct ZydisDecodedInstruction_::@7::@11 broadcast
Contains info about the AVX broadcast.
ZydisRoundingMode mode
The AVX rounding-mode.
Definition: DecoderTypes.h:870
ZydisISASet isaSet
The ISA-set.
Definition: DecoderTypes.h:913
struct ZydisDecodedInstruction_::@7::@10 mask
Info about the embedded writemask-register.
uint8_t vvvv
NDS register specifier (inverted).
Definition: DecoderTypes.h:1014
ZydisBool isRelative
Signals, if the immediate value contains a relative offset.
Definition: DecoderTypes.h:1256
ZydisMaskMode mode
The masking mode.
Definition: DecoderTypes.h:835
uint8_t stackWidth
The stack width.
Definition: DecoderTypes.h:772
uint8_t kkk
Embedded opmask register specifier.
Definition: DecoderTypes.h:1200
ZydisBool hasSAE
Signals, if the sae functionality is enabled for the instruction.
Definition: DecoderTypes.h:895
uint8_t offset
The offset of the displacement data, relative to the beginning of the instruction,...
Definition: DecoderTypes.h:1241
uint8_t X
Extension of the SIB.index field.
Definition: DecoderTypes.h:972
ZydisDecodedOperand operands[ZYDIS_MAX_OPERAND_COUNT]
Detailed info for all instruction operands.
Definition: DecoderTypes.h:788
uint64_t instrAddress
The instruction address points at the current instruction (relative to the initial instruction pointe...
Definition: DecoderTypes.h:797
uint8_t length
The length of the decoded instruction.
Definition: DecoderTypes.h:752
uint8_t z
Zeroing/Merging.
Definition: DecoderTypes.h:1118
struct ZydisDecodedInstruction_::@9::@16 rex
Detailed info about the REX-prefix.
int64_t value
The displacement value.
Definition: DecoderTypes.h:1232
ZydisBool isStatic
Signals, if the broadcast is a static broadcast.
Definition: DecoderTypes.h:856
ZydisBool hasEvictionHint
Signals, if the instruction has a memory eviction-hint (MVEX only).
Definition: DecoderTypes.h:899
uint64_t instrPointer
The instruction pointer points at the address of the next instruction (relative to the initial instru...
Definition: DecoderTypes.h:804
uint8_t m_mmmm
Opcode-map specifier.
Definition: DecoderTypes.h:1006
struct ZydisDecodedInstruction_::@9::@19 evex
Detailed info about the EVEX-prefix.
uint8_t R
Extension of the ModRM.reg field.
Definition: DecoderTypes.h:968
ZydisBool isSigned
Signals, if the immediate value is signed.
Definition: DecoderTypes.h:1251
uint8_t V2
High-16 NDS/VIDX register specifier.
Definition: DecoderTypes.h:1134
ZydisOpcodeMap opcodeMap
The opcode-map.
Definition: DecoderTypes.h:764
uint8_t pp
Compressed legacy prefix.
Definition: DecoderTypes.h:1022
uint8_t size
The physical displacement size, in bits.
Definition: DecoderTypes.h:1236
struct ZydisDecodedInstruction_::@9::@20 mvex
Detailed info about the MVEX-prefix.
ZydisBool isControlMask
Signals, if the mask-register is used as a control mask.
Definition: DecoderTypes.h:843
struct ZydisDecodedInstruction_::@9::@22 sib
Detailed info about the SIB-byte.
uint8_t L
Vector-length specifier.
Definition: DecoderTypes.h:1018
struct ZydisDecodedInstruction_::@9::@17 xop
Detailed info about the XOP-prefix.
ZydisMachineMode machineMode
The machine mode used to decode this instruction.
Definition: DecoderTypes.h:744
uint8_t data[ZYDIS_MAX_INSTRUCTION_LENGTH]
The raw bytes of the decoded instruction.
Definition: DecoderTypes.h:756
ZydisInstructionCategory category
The instruction category.
Definition: DecoderTypes.h:909
Defines the ZydisDecodedOperand struct.
Definition: DecoderTypes.h:53
ZydisBool isAddressGenOnly
Signals, if the memory operand is only used for address generation.
Definition: DecoderTypes.h:109
ZydisOperandAction action
The operand-action.
Definition: DecoderTypes.h:69
uint8_t id
The operand-id.
Definition: DecoderTypes.h:57
struct ZydisDecodedOperand_::@0 reg
Extended info for register-operands.
ZydisOperandEncoding encoding
The operand-encoding.
Definition: DecoderTypes.h:73
ZydisRegister segment
The segment register.
Definition: DecoderTypes.h:113
struct ZydisDecodedOperand_::@2 ptr
Extended info for pointer-operands.
struct ZydisDecodedOperand_::@1::@4 disp
Extended info for memory-operands with displacement.
uint16_t elementCount
The number of elements.
Definition: DecoderTypes.h:89
ZydisRegister base
The base register.
Definition: DecoderTypes.h:117
ZydisOperandVisibility visibility
The visibility of the operand.
Definition: DecoderTypes.h:65
ZydisElementSize elementSize
The size of a single element.
Definition: DecoderTypes.h:85
uint8_t scale
The scale factor.
Definition: DecoderTypes.h:125
ZydisElementType elementType
The element-type.
Definition: DecoderTypes.h:81
ZydisBool isRelative
Signals, if the immediate value contains a relative offset.
Definition: DecoderTypes.h:162
ZydisBool hasDisplacement
Signals, if the displacement value is used.
Definition: DecoderTypes.h:134
uint16_t size
The logical size of the operand (in bits).
Definition: DecoderTypes.h:77
struct ZydisDecodedOperand_::@1 mem
Extended info for memory-operands.
int64_t value
The displacement value.
Definition: DecoderTypes.h:138
ZydisRegister index
The index register.
Definition: DecoderTypes.h:121
ZydisBool isSigned
Signals, if the immediate value is signed.
Definition: DecoderTypes.h:157
struct ZydisDecodedOperand_::@3 imm
Extended info for immediate-operands.
ZydisOperandType type
The type of the operand.
Definition: DecoderTypes.h:61
ZydisRegister value
The register value.
Definition: DecoderTypes.h:98