32 #ifndef ZYDIS_INSTRUCTIONINFO_H
33 #define ZYDIS_INSTRUCTIONINFO_H
35 #include <Zycore/Types.h>
66 #define ZYDIS_OATTRIB_IS_MULTISOURCE4 0x01
296 #define ZYDIS_CPUFLAG_CF (1ul << 0)
300 #define ZYDIS_CPUFLAG_PF (1ul << 2)
304 #define ZYDIS_CPUFLAG_AF (1ul << 4)
308 #define ZYDIS_CPUFLAG_ZF (1ul << 6)
312 #define ZYDIS_CPUFLAG_SF (1ul << 7)
316 #define ZYDIS_CPUFLAG_TF (1ul << 8)
320 #define ZYDIS_CPUFLAG_IF (1ul << 9)
324 #define ZYDIS_CPUFLAG_DF (1ul << 10)
328 #define ZYDIS_CPUFLAG_OF (1ul << 11)
332 #define ZYDIS_CPUFLAG_IOPL (1ul << 12)
336 #define ZYDIS_CPUFLAG_NT (1ul << 14)
340 #define ZYDIS_CPUFLAG_RF (1ul << 16)
344 #define ZYDIS_CPUFLAG_VM (1ul << 17)
348 #define ZYDIS_CPUFLAG_AC (1ul << 18)
352 #define ZYDIS_CPUFLAG_VIF (1ul << 19)
356 #define ZYDIS_CPUFLAG_VIP (1ul << 20)
360 #define ZYDIS_CPUFLAG_ID (1ul << 21)
378 #define ZYDIS_FPUFLAG_C0 (1ul << 0)
382 #define ZYDIS_FPUFLAG_C1 (1ul << 1)
386 #define ZYDIS_FPUFLAG_C2 (1ul << 2)
390 #define ZYDIS_FPUFLAG_C3 (1ul << 3)
struct ZydisDecodedInstructionRawRex_ ZydisDecodedInstructionRawRex
Detailed info about the REX prefix.
enum ZydisConversionMode_ ZydisConversionMode
Defines the ZydisConversionMode enum.
enum ZydisMaskMode_ ZydisMaskMode
Defines the ZydisMaskMode enum.
struct ZydisDecodedInstructionRawMvex_ ZydisDecodedInstructionRawMvex
Detailed info about the MVEX prefix.
enum ZydisRoundingMode_ ZydisRoundingMode
Defines the ZydisRoundingMode enum.
struct ZydisDecodedOperandPtr_ ZydisDecodedOperandPtr
Extended info for pointer-operands.
struct ZydisDecodedOperandImm_ ZydisDecodedOperandImm
Extended info for immediate-operands.
ZydisExceptionClass_
Defines the ZydisExceptionClass enum.
Definition: DecoderTypes.h:467
@ ZYDIS_EXCEPTION_CLASS_E5
Definition: DecoderTypes.h:494
@ ZYDIS_EXCEPTION_CLASS_AVX4
Definition: DecoderTypes.h:479
@ ZYDIS_EXCEPTION_CLASS_E1NF
Definition: DecoderTypes.h:487
@ ZYDIS_EXCEPTION_CLASS_AVX7
Definition: DecoderTypes.h:482
@ ZYDIS_EXCEPTION_CLASS_E7NM128
Definition: DecoderTypes.h:499
@ ZYDIS_EXCEPTION_CLASS_AVX11
Definition: DecoderTypes.h:484
@ ZYDIS_EXCEPTION_CLASS_E12NP
Definition: DecoderTypes.h:506
@ ZYDIS_EXCEPTION_CLASS_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:519
@ ZYDIS_EXCEPTION_CLASS_AMXE6
Definition: DecoderTypes.h:514
@ ZYDIS_EXCEPTION_CLASS_AVX3
Definition: DecoderTypes.h:478
@ ZYDIS_EXCEPTION_CLASS_AMXE1
Definition: DecoderTypes.h:509
@ ZYDIS_EXCEPTION_CLASS_AMXE3
Definition: DecoderTypes.h:511
@ ZYDIS_EXCEPTION_CLASS_AVX5
Definition: DecoderTypes.h:480
@ ZYDIS_EXCEPTION_CLASS_SSE2
Definition: DecoderTypes.h:471
@ ZYDIS_EXCEPTION_CLASS_SSE3
Definition: DecoderTypes.h:472
@ ZYDIS_EXCEPTION_CLASS_E10
Definition: DecoderTypes.h:501
@ ZYDIS_EXCEPTION_CLASS_E3
Definition: DecoderTypes.h:490
@ ZYDIS_EXCEPTION_CLASS_E1
Definition: DecoderTypes.h:486
@ ZYDIS_EXCEPTION_CLASS_SSE5
Definition: DecoderTypes.h:474
@ ZYDIS_EXCEPTION_CLASS_SSE7
Definition: DecoderTypes.h:475
@ ZYDIS_EXCEPTION_CLASS_AVX6
Definition: DecoderTypes.h:481
@ ZYDIS_EXCEPTION_CLASS_K20
Definition: DecoderTypes.h:507
@ ZYDIS_EXCEPTION_CLASS_E9NF
Definition: DecoderTypes.h:500
@ ZYDIS_EXCEPTION_CLASS_SSE4
Definition: DecoderTypes.h:473
@ ZYDIS_EXCEPTION_CLASS_E3NF
Definition: DecoderTypes.h:491
@ ZYDIS_EXCEPTION_CLASS_E11
Definition: DecoderTypes.h:503
@ ZYDIS_EXCEPTION_CLASS_E4
Definition: DecoderTypes.h:492
@ ZYDIS_EXCEPTION_CLASS_E12
Definition: DecoderTypes.h:505
@ ZYDIS_EXCEPTION_CLASS_K21
Definition: DecoderTypes.h:508
@ ZYDIS_EXCEPTION_CLASS_E6NF
Definition: DecoderTypes.h:497
@ ZYDIS_EXCEPTION_CLASS_AVX2
Definition: DecoderTypes.h:477
@ ZYDIS_EXCEPTION_CLASS_E2NF
Definition: DecoderTypes.h:489
@ ZYDIS_EXCEPTION_CLASS_SSE1
Definition: DecoderTypes.h:470
@ ZYDIS_EXCEPTION_CLASS_E5NF
Definition: DecoderTypes.h:495
@ ZYDIS_EXCEPTION_CLASS_NONE
Definition: DecoderTypes.h:468
@ ZYDIS_EXCEPTION_CLASS_E6
Definition: DecoderTypes.h:496
@ ZYDIS_EXCEPTION_CLASS_E10NF
Definition: DecoderTypes.h:502
@ ZYDIS_EXCEPTION_CLASS_AMXE5
Definition: DecoderTypes.h:513
@ ZYDIS_EXCEPTION_CLASS_AVX8
Definition: DecoderTypes.h:483
@ ZYDIS_EXCEPTION_CLASS_AMXE4
Definition: DecoderTypes.h:512
@ ZYDIS_EXCEPTION_CLASS_E4NF
Definition: DecoderTypes.h:493
@ ZYDIS_EXCEPTION_CLASS_E11NF
Definition: DecoderTypes.h:504
@ ZYDIS_EXCEPTION_CLASS_AMXE2
Definition: DecoderTypes.h:510
@ ZYDIS_EXCEPTION_CLASS_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:523
@ ZYDIS_EXCEPTION_CLASS_E2
Definition: DecoderTypes.h:488
@ ZYDIS_EXCEPTION_CLASS_AVX1
Definition: DecoderTypes.h:476
@ ZYDIS_EXCEPTION_CLASS_E7NM
Definition: DecoderTypes.h:498
@ ZYDIS_EXCEPTION_CLASS_AVX12
Definition: DecoderTypes.h:485
ZydisBranchType_
Defines the ZydisBranchType enum.
Definition: DecoderTypes.h:431
@ ZYDIS_BRANCH_TYPE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:452
@ ZYDIS_BRANCH_TYPE_FAR
The instruction is a far (inter-segment) branch instruction.
Definition: DecoderTypes.h:447
@ ZYDIS_BRANCH_TYPE_NONE
The instruction is not a branch instruction.
Definition: DecoderTypes.h:435
@ ZYDIS_BRANCH_TYPE_NEAR
The instruction is a near (16-bit or 32-bit) branch instruction.
Definition: DecoderTypes.h:443
@ ZYDIS_BRANCH_TYPE_SHORT
The instruction is a short (8-bit) branch instruction.
Definition: DecoderTypes.h:439
@ ZYDIS_BRANCH_TYPE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:456
struct ZydisDecodedOperandReg_ ZydisDecodedOperandReg
Extended info for register-operands.
struct ZydisDecoderContext_ ZydisDecoderContext
The decoder context is used to preserve some internal state between subsequent decode operations for ...
ZyanU32 ZydisAccessedFlagsMask
Defines the ZydisAccessedFlagsMask data-type.
Definition: DecoderTypes.h:282
ZydisBroadcastMode_
Defines the ZydisBroadcastMode enum.
Definition: DecoderTypes.h:575
@ ZYDIS_BROADCAST_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:597
@ ZYDIS_BROADCAST_MODE_1_TO_8
Definition: DecoderTypes.h:579
@ ZYDIS_BROADCAST_MODE_INVALID
Definition: DecoderTypes.h:576
@ ZYDIS_BROADCAST_MODE_1_TO_2
Definition: DecoderTypes.h:577
@ ZYDIS_BROADCAST_MODE_1_TO_64
Definition: DecoderTypes.h:582
@ ZYDIS_BROADCAST_MODE_2_TO_8
Definition: DecoderTypes.h:584
@ ZYDIS_BROADCAST_MODE_4_TO_16
Definition: DecoderTypes.h:587
@ ZYDIS_BROADCAST_MODE_4_TO_8
Definition: DecoderTypes.h:586
@ ZYDIS_BROADCAST_MODE_1_TO_16
Definition: DecoderTypes.h:580
@ ZYDIS_BROADCAST_MODE_1_TO_4
Definition: DecoderTypes.h:578
@ ZYDIS_BROADCAST_MODE_2_TO_4
Definition: DecoderTypes.h:583
@ ZYDIS_BROADCAST_MODE_2_TO_16
Definition: DecoderTypes.h:585
@ ZYDIS_BROADCAST_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:593
@ ZYDIS_BROADCAST_MODE_1_TO_32
Definition: DecoderTypes.h:581
@ ZYDIS_BROADCAST_MODE_8_TO_16
Definition: DecoderTypes.h:588
enum ZydisExceptionClass_ ZydisExceptionClass
Defines the ZydisExceptionClass enum.
ZydisPrefixType_
Defines the ZydisPrefixType enum.
Definition: DecoderTypes.h:700
@ ZYDIS_PREFIX_TYPE_IGNORED
The prefix is ignored by the instruction.
Definition: DecoderTypes.h:707
@ ZYDIS_PREFIX_TYPE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:727
@ ZYDIS_PREFIX_TYPE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:723
@ ZYDIS_PREFIX_TYPE_MANDATORY
The prefix is used as a mandatory prefix.
Definition: DecoderTypes.h:718
@ ZYDIS_PREFIX_TYPE_EFFECTIVE
The prefix is effectively used by the instruction.
Definition: DecoderTypes.h:711
ZydisMemoryOperandType_
Defines the ZydisMemoryOperandType enum.
Definition: DecoderTypes.h:76
@ ZYDIS_MEMOP_TYPE_AGEN
The memory operand is only used for address-generation.
Definition: DecoderTypes.h:86
@ ZYDIS_MEMOP_TYPE_MEM
Normal memory operand.
Definition: DecoderTypes.h:81
@ ZYDIS_MEMOP_TYPE_MIB
A memory operand using SIB addressing form, where the index register is not used in address calculati...
Definition: DecoderTypes.h:91
@ ZYDIS_MEMOP_TYPE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:104
@ ZYDIS_MEMOP_TYPE_VSIB
A vector SIB memory addressing operand (VSIB).
Definition: DecoderTypes.h:95
@ ZYDIS_MEMOP_TYPE_INVALID
Definition: DecoderTypes.h:77
@ ZYDIS_MEMOP_TYPE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:100
struct ZydisDecodedInstructionRawEvex_ ZydisDecodedInstructionRawEvex
Detailed info about the EVEX prefix.
ZydisRoundingMode_
Defines the ZydisRoundingMode enum.
Definition: DecoderTypes.h:608
@ ZYDIS_ROUNDING_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:634
@ ZYDIS_ROUNDING_MODE_INVALID
Definition: DecoderTypes.h:609
@ ZYDIS_ROUNDING_MODE_RN
Round to nearest.
Definition: DecoderTypes.h:613
@ ZYDIS_ROUNDING_MODE_RZ
Round towards zero.
Definition: DecoderTypes.h:625
@ ZYDIS_ROUNDING_MODE_RD
Round down.
Definition: DecoderTypes.h:617
@ ZYDIS_ROUNDING_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:630
@ ZYDIS_ROUNDING_MODE_RU
Round up.
Definition: DecoderTypes.h:621
struct ZydisDecodedInstructionRawXop_ ZydisDecodedInstructionRawXop
Detailed info about the XOP prefix.
enum ZydisSwizzleMode_ ZydisSwizzleMode
Defines the ZydisSwizzleMode enum.
enum ZydisMemoryOperandType_ ZydisMemoryOperandType
Defines the ZydisMemoryOperandType enum.
struct ZydisDecodedInstructionRaw_ ZydisDecodedInstructionRaw
Detailed info about different instruction-parts like ModRM, SIB or encoding-prefixes.
ZydisConversionMode_
Defines the ZydisConversionMode enum.
Definition: DecoderTypes.h:674
@ ZYDIS_CONVERSION_MODE_SINT8
Definition: DecoderTypes.h:677
@ ZYDIS_CONVERSION_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:689
@ ZYDIS_CONVERSION_MODE_INVALID
Definition: DecoderTypes.h:675
@ ZYDIS_CONVERSION_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:685
@ ZYDIS_CONVERSION_MODE_SINT16
Definition: DecoderTypes.h:679
@ ZYDIS_CONVERSION_MODE_UINT16
Definition: DecoderTypes.h:680
@ ZYDIS_CONVERSION_MODE_FLOAT16
Definition: DecoderTypes.h:676
@ ZYDIS_CONVERSION_MODE_UINT8
Definition: DecoderTypes.h:678
ZyanU8 ZydisOperandAttributes
Defines the ZydisOperandAttributes data-type.
Definition: DecoderTypes.h:56
struct ZydisDecodedOperand_ ZydisDecodedOperand
Defines the ZydisDecodedOperand struct.
struct ZydisDecodedInstructionMeta_ ZydisDecodedInstructionMeta
Instruction meta info.
struct ZydisDecodedOperandMem_ ZydisDecodedOperandMem
Extended info for memory-operands.
enum ZydisBroadcastMode_ ZydisBroadcastMode
Defines the ZydisBroadcastMode enum.
enum ZydisPrefixType_ ZydisPrefixType
Defines the ZydisPrefixType enum.
struct ZydisDecodedInstruction_ ZydisDecodedInstruction
Information about a decoded instruction.
ZydisMaskMode_
Defines the ZydisMaskMode enum.
Definition: DecoderTypes.h:534
@ ZYDIS_MASK_MODE_DISABLED
Masking is disabled for the current instruction (K0 register is used).
Definition: DecoderTypes.h:539
@ ZYDIS_MASK_MODE_INVALID
Definition: DecoderTypes.h:535
@ ZYDIS_MASK_MODE_CONTROL
The embedded mask register is used as a control-mask (element selector).
Definition: DecoderTypes.h:551
@ ZYDIS_MASK_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:560
@ ZYDIS_MASK_MODE_MERGING
The embedded mask register is used as a merge-mask.
Definition: DecoderTypes.h:543
@ ZYDIS_MASK_MODE_CONTROL_ZEROING
The embedded mask register is used as a zeroing control-mask (element selector).
Definition: DecoderTypes.h:555
@ ZYDIS_MASK_MODE_ZEROING
The embedded mask register is used as a zero-mask.
Definition: DecoderTypes.h:547
@ ZYDIS_MASK_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:564
struct ZydisAccessedFlags_ ZydisAccessedFlags
enum ZydisBranchType_ ZydisBranchType
Defines the ZydisBranchType enum.
ZydisSwizzleMode_
Defines the ZydisSwizzleMode enum.
Definition: DecoderTypes.h:645
@ ZYDIS_SWIZZLE_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:659
@ ZYDIS_SWIZZLE_MODE_DACB
Definition: DecoderTypes.h:650
@ ZYDIS_SWIZZLE_MODE_BADC
Definition: DecoderTypes.h:649
@ ZYDIS_SWIZZLE_MODE_AAAA
Definition: DecoderTypes.h:651
@ ZYDIS_SWIZZLE_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:663
@ ZYDIS_SWIZZLE_MODE_DCBA
Definition: DecoderTypes.h:647
@ ZYDIS_SWIZZLE_MODE_BBBB
Definition: DecoderTypes.h:652
@ ZYDIS_SWIZZLE_MODE_CCCC
Definition: DecoderTypes.h:653
@ ZYDIS_SWIZZLE_MODE_DDDD
Definition: DecoderTypes.h:654
@ ZYDIS_SWIZZLE_MODE_CDAB
Definition: DecoderTypes.h:648
@ ZYDIS_SWIZZLE_MODE_INVALID
Definition: DecoderTypes.h:646
struct ZydisDecodedInstructionRawVex_ ZydisDecodedInstructionRawVex
Detailed info about the VEX prefix.
struct ZydisDecodedInstructionAvx_ ZydisDecodedInstructionAvx
Extended info for AVX instructions.
enum ZydisISAExt_ ZydisISAExt
Defines the ZydisISAExt enum.
enum ZydisISASet_ ZydisISASet
Defines the ZydisISASet enum.
enum ZydisInstructionCategory_ ZydisInstructionCategory
Defines the ZydisInstructionCategory enum.
enum ZydisMnemonic_ ZydisMnemonic
Defines the ZydisMnemonic enum.
enum ZydisRegister_ ZydisRegister
Defines the ZydisRegister enum.
Mnemonic constant definitions and helper functions.
Utility functions and constants for registers.
Defines decoder/encoder-shared macros and types.
enum ZydisOperandEncoding_ ZydisOperandEncoding
Defines the ZydisOperandEncoding enum.
#define ZYDIS_MAX_INSTRUCTION_LENGTH
Definition: SharedTypes.h:49
enum ZydisInstructionEncoding_ ZydisInstructionEncoding
Defines the ZydisInstructionEncoding enum.
enum ZydisOperandType_ ZydisOperandType
Defines the ZydisOperandType enum.
enum ZydisOperandVisibility_ ZydisOperandVisibility
Defines the ZydisOperandVisibility enum.
ZyanU8 ZydisOperandActions
Defines the ZydisOperandActions data-type.
Definition: SharedTypes.h:406
enum ZydisOpcodeMap_ ZydisOpcodeMap
Defines the ZydisOpcodeMap enum.
enum ZydisElementType_ ZydisElementType
Defines the ZydisElementType enum.
ZyanU16 ZydisElementSize
Defines the ZydisElementSize datatype.
Definition: SharedTypes.h:194
enum ZydisMachineMode_ ZydisMachineMode
Defines the ZydisMachineMode enum.
ZyanU64 ZydisInstructionAttributes
Defines the ZydisInstructionAttributes data-type.
Definition: SharedTypes.h:501
Definition: DecoderTypes.h:400
ZydisAccessedFlagsMask tested
Definition: DecoderTypes.h:404
ZydisAccessedFlagsMask undefined
Definition: DecoderTypes.h:420
ZydisAccessedFlagsMask set_0
Definition: DecoderTypes.h:412
ZydisAccessedFlagsMask set_1
Definition: DecoderTypes.h:416
ZydisAccessedFlagsMask modified
Definition: DecoderTypes.h:408
Contains info about the AVX broadcast.
Definition: DecoderTypes.h:1022
ZydisBroadcastMode mode
The AVX broadcast-mode.
Definition: DecoderTypes.h:1033
ZyanBool is_static
Signals, if the broadcast is a static broadcast.
Definition: DecoderTypes.h:1029
Contains info about the AVX data-conversion (KNC only).
Definition: DecoderTypes.h:1059
ZydisConversionMode mode
The AVX data-conversion mode.
Definition: DecoderTypes.h:1063
Info about the embedded writemask-register (AVX-512 and KNC only).
Definition: DecoderTypes.h:1008
ZydisRegister reg
The mask register.
Definition: DecoderTypes.h:1016
ZydisMaskMode mode
The masking mode.
Definition: DecoderTypes.h:1012
Contains info about the AVX rounding.
Definition: DecoderTypes.h:1039
ZydisRoundingMode mode
The AVX rounding-mode.
Definition: DecoderTypes.h:1043
Contains info about the AVX register-swizzle (KNC only).
Definition: DecoderTypes.h:1049
ZydisSwizzleMode mode
The AVX register-swizzle mode.
Definition: DecoderTypes.h:1053
Extended info for AVX instructions.
Definition: DecoderTypes.h:999
struct ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxSwizzle_ swizzle
struct ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxRounding_ rounding
ZyanBool has_eviction_hint
Signals, if the instruction has a memory-eviction-hint (KNC only).
Definition: DecoderTypes.h:1073
struct ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxConversion_ conversion
ZyanU16 vector_length
The AVX vector-length.
Definition: DecoderTypes.h:1003
ZyanBool has_sae
Signals, if the SAE (suppress-all-exceptions) functionality is enabled for the instruction.
Definition: DecoderTypes.h:1069
struct ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxBroadcast_ broadcast
struct ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxMask_ mask
Detailed info about the EVEX prefix.
Definition: DecoderTypes.h:869
ZyanU8 R2
High-16 register specifier modifier (inverted).
Definition: DecoderTypes.h:885
ZyanU8 L2
Vector-length specifier or rounding-control (most significant bit).
Definition: DecoderTypes.h:910
ZyanU8 X
Extension of the SIB.index/vidx field (inverted).
Definition: DecoderTypes.h:877
ZyanU8 L
Vector-length specifier or rounding-control (least significant bit).
Definition: DecoderTypes.h:914
ZyanU8 aaa
Embedded opmask register specifier.
Definition: DecoderTypes.h:926
ZyanU8 offset
The offset of the first evex byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:931
ZyanU8 R
Extension of the ModRM.reg field (inverted).
Definition: DecoderTypes.h:873
ZyanU8 pp
Compressed legacy prefix.
Definition: DecoderTypes.h:902
ZyanU8 W
64-bit operand-size promotion or opcode-extension.
Definition: DecoderTypes.h:893
ZyanU8 b
Broadcast/RC/SAE context.
Definition: DecoderTypes.h:918
ZyanU8 z
Zeroing/Merging.
Definition: DecoderTypes.h:906
ZyanU8 vvvv
NDS/NDD (non-destructive-source/destination) register specifier (inverted).
Definition: DecoderTypes.h:898
ZyanU8 V2
High-16 NDS/VIDX register specifier.
Definition: DecoderTypes.h:922
ZyanU8 B
Extension of the ModRM.rm or SIB.base field (inverted).
Definition: DecoderTypes.h:881
ZyanU8 mmm
Opcode-map specifier.
Definition: DecoderTypes.h:889
Detailed info about the MVEX prefix.
Definition: DecoderTypes.h:938
ZyanU8 SSS
Swizzle/broadcast/up-convert/down-convert/static-rounding controls.
Definition: DecoderTypes.h:979
ZyanU8 R2
High-16 register specifier modifier (inverted).
Definition: DecoderTypes.h:954
ZyanU8 kkk
Embedded opmask register specifier.
Definition: DecoderTypes.h:987
ZyanU8 X
Extension of the SIB.index/vidx field (inverted).
Definition: DecoderTypes.h:946
ZyanU8 offset
The offset of the first mvex byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:992
ZyanU8 R
Extension of the ModRM.reg field (inverted).
Definition: DecoderTypes.h:942
ZyanU8 pp
Compressed legacy prefix.
Definition: DecoderTypes.h:971
ZyanU8 W
64-bit operand-size promotion or opcode-extension.
Definition: DecoderTypes.h:962
ZyanU8 mmmm
Opcode-map specifier.
Definition: DecoderTypes.h:958
ZyanU8 vvvv
NDS/NDD (non-destructive-source/destination) register specifier (inverted).
Definition: DecoderTypes.h:967
ZyanU8 V2
High-16 NDS/VIDX register specifier.
Definition: DecoderTypes.h:983
ZyanU8 E
Non-temporal/eviction hint.
Definition: DecoderTypes.h:975
ZyanU8 B
Extension of the ModRM.rm or SIB.base field (inverted).
Definition: DecoderTypes.h:950
Detailed info about the REX prefix.
Definition: DecoderTypes.h:740
ZyanU8 X
Extension of the SIB.index field.
Definition: DecoderTypes.h:752
ZyanU8 offset
The offset of the effective REX byte, relative to the beginning of the instruction,...
Definition: DecoderTypes.h:768
ZyanU8 R
Extension of the ModRM.reg field.
Definition: DecoderTypes.h:748
ZyanU8 W
64-bit operand-size promotion.
Definition: DecoderTypes.h:744
ZyanU8 B
Extension of the ModRM.rm, SIB.base, or opcode.reg field.
Definition: DecoderTypes.h:756
Detailed info about the VEX prefix.
Definition: DecoderTypes.h:820
ZyanU8 m_mmmm
Opcode-map specifier.
Definition: DecoderTypes.h:836
ZyanU8 X
Extension of the SIB.index field (inverted).
Definition: DecoderTypes.h:828
ZyanU8 size
The size of the VEX prefix, in bytes.
Definition: DecoderTypes.h:862
ZyanU8 L
Vector-length specifier.
Definition: DecoderTypes.h:849
ZyanU8 offset
The offset of the first VEX byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:858
ZyanU8 R
Extension of the ModRM.reg field (inverted).
Definition: DecoderTypes.h:824
ZyanU8 pp
Compressed legacy prefix.
Definition: DecoderTypes.h:853
ZyanU8 W
64-bit operand-size promotion or opcode-extension.
Definition: DecoderTypes.h:840
ZyanU8 vvvv
NDS/NDD (non-destructive-source/destination) register specifier (inverted).
Definition: DecoderTypes.h:845
ZyanU8 B
Extension of the ModRM.rm, SIB.base, or opcode.reg field (inverted).
Definition: DecoderTypes.h:832
Detailed info about the XOP prefix.
Definition: DecoderTypes.h:775
ZyanU8 m_mmmm
Opcode-map specifier.
Definition: DecoderTypes.h:791
ZyanU8 X
Extension of the SIB.index field (inverted).
Definition: DecoderTypes.h:783
ZyanU8 L
Vector-length specifier.
Definition: DecoderTypes.h:804
ZyanU8 offset
The offset of the first xop byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:813
ZyanU8 R
Extension of the ModRM.reg field (inverted).
Definition: DecoderTypes.h:779
ZyanU8 pp
Compressed legacy prefix.
Definition: DecoderTypes.h:808
ZyanU8 W
64-bit operand-size promotion or opcode-extension.
Definition: DecoderTypes.h:795
ZyanU8 vvvv
NDS/NDD (non-destructive-source/destination) register specifier (inverted).
Definition: DecoderTypes.h:800
ZyanU8 B
Extension of the ModRM.rm, SIB.base, or opcode.reg field (inverted).
Definition: DecoderTypes.h:787
Detailed info about the ModRM byte.
Definition: DecoderTypes.h:1152
ZyanU8 rm
Register specifier or opcode-extension.
Definition: DecoderTypes.h:1164
ZyanU8 mod
The addressing mode.
Definition: DecoderTypes.h:1156
ZyanU8 offset
The offset of the ModRM byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1169
ZyanU8 reg
Register specifier or opcode-extension.
Definition: DecoderTypes.h:1160
Detailed info about displacement-bytes.
Definition: DecoderTypes.h:1198
ZyanU8 size
The physical displacement size, in bits.
Definition: DecoderTypes.h:1206
ZyanI64 value
The displacement value.
Definition: DecoderTypes.h:1202
ZyanU8 offset
The offset of the displacement data, relative to the beginning of the instruction,...
Definition: DecoderTypes.h:1212
Detailed info about immediate-bytes.
Definition: DecoderTypes.h:1218
ZyanU8 size
The physical immediate size, in bits.
Definition: DecoderTypes.h:1239
ZyanBool is_relative
Signals, if the immediate value contains a relative offset.
Definition: DecoderTypes.h:1227
ZyanBool is_signed
Signals, if the immediate value is signed.
Definition: DecoderTypes.h:1222
ZyanU8 offset
The offset of the immediate data, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1244
union ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawImm_::ZydisDecodedInstructionRawImmValue_ value
Detailed info about the legacy prefixes (including REX).
Definition: DecoderTypes.h:1118
ZydisPrefixType type
The prefix type.
Definition: DecoderTypes.h:1122
ZyanU8 value
The prefix byte.
Definition: DecoderTypes.h:1126
Detailed info about the SIB byte.
Definition: DecoderTypes.h:1175
ZyanU8 base
The base-register specifier.
Definition: DecoderTypes.h:1187
ZyanU8 scale
The scale factor.
Definition: DecoderTypes.h:1179
ZyanU8 offset
The offset of the SIB byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1192
ZyanU8 index
The index-register specifier.
Definition: DecoderTypes.h:1183
Detailed info about different instruction-parts like ModRM, SIB or encoding-prefixes.
Definition: DecoderTypes.h:1109
ZydisDecodedInstructionRawRex rex
Definition: DecoderTypes.h:1141
ZyanU8 prefix_count
The number of legacy prefixes.
Definition: DecoderTypes.h:1113
struct ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawPrefixes_ prefixes[ZYDIS_MAX_INSTRUCTION_LENGTH]
struct ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawImm_ imm[2]
ZydisDecodedInstructionRawMvex mvex
Definition: DecoderTypes.h:1145
ZydisDecodedInstructionRawXop xop
Definition: DecoderTypes.h:1142
struct ZydisDecodedInstructionRaw_::ZydisDecodedInstructionModRm_ modrm
ZydisInstructionEncoding encoding2
Definition: DecoderTypes.h:1135
ZydisDecodedInstructionRawEvex evex
Definition: DecoderTypes.h:1144
struct ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawDisp_ disp
struct ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawSib_ sib
ZydisDecodedInstructionRawVex vex
Definition: DecoderTypes.h:1143
Information about a decoded instruction.
Definition: DecoderTypes.h:1252
ZydisMnemonic mnemonic
The instruction-mnemonic.
Definition: DecoderTypes.h:1260
ZyanU8 operand_width
The effective operand width.
Definition: DecoderTypes.h:1284
ZydisDecodedInstructionMeta meta
Meta info.
Definition: DecoderTypes.h:1328
ZyanU8 opcode
The instruction-opcode.
Definition: DecoderTypes.h:1276
ZydisMachineMode machine_mode
The machine mode used to decode this instruction.
Definition: DecoderTypes.h:1256
ZydisOpcodeMap opcode_map
The opcode-map.
Definition: DecoderTypes.h:1272
ZydisInstructionEncoding encoding
The instruction-encoding (LEGACY, 3DNOW, VEX, EVEX, XOP).
Definition: DecoderTypes.h:1268
ZydisInstructionAttributes attributes
See Instruction attributes.
Definition: DecoderTypes.h:1307
ZyanU8 stack_width
The stack width.
Definition: DecoderTypes.h:1280
const ZydisAccessedFlags * cpu_flags
Information about CPU flags accessed by the instruction.
Definition: DecoderTypes.h:1314
ZyanU8 address_width
The effective address width.
Definition: DecoderTypes.h:1288
ZyanU8 operand_count
The number of instruction-operands.
Definition: DecoderTypes.h:1296
ZyanU8 length
The length of the decoded instruction.
Definition: DecoderTypes.h:1264
ZydisDecodedInstructionAvx avx
Extended info for AVX instructions.
Definition: DecoderTypes.h:1324
const ZydisAccessedFlags * fpu_flags
Information about FPU flags accessed by the instruction.
Definition: DecoderTypes.h:1320
ZydisDecodedInstructionRaw raw
Detailed info about different instruction-parts like ModRM, SIB or encoding-prefixes.
Definition: DecoderTypes.h:1333
ZyanU8 operand_count_visible
The number of explicit (visible) instruction-operands.
Definition: DecoderTypes.h:1303
Extended info for immediate-operands.
Definition: DecoderTypes.h:181
ZyanU8 size
The physical immediate size, in bits.
Definition: DecoderTypes.h:207
ZyanBool is_relative
Signals, if the immediate value contains a relative offset.
Definition: DecoderTypes.h:190
ZyanBool is_signed
Signals, if the immediate value is signed.
Definition: DecoderTypes.h:185
ZyanU8 offset
The offset of the immediate data, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:203
union ZydisDecodedOperandImm_::ZydisDecodedOperandImmValue_ value
Extended info for memory-operands with displacement.
Definition: DecoderTypes.h:151
ZyanU8 size
The physical displacement size, in bits.
Definition: DecoderTypes.h:164
ZyanI64 value
The displacement value.
Definition: DecoderTypes.h:155
ZyanU8 offset
The offset of the displacement data, relative to the beginning of the instruction,...
Definition: DecoderTypes.h:160
Extended info for memory-operands.
Definition: DecoderTypes.h:126
ZydisMemoryOperandType type
The type of the memory operand.
Definition: DecoderTypes.h:130
ZydisRegister segment
The segment register.
Definition: DecoderTypes.h:134
ZydisRegister base
The base register.
Definition: DecoderTypes.h:138
ZyanU8 scale
The scale factor.
Definition: DecoderTypes.h:146
ZydisRegister index
The index register.
Definition: DecoderTypes.h:142
struct ZydisDecodedOperandMem_::ZydisDecodedOperandMemDisp_ disp
Extended info for pointer-operands.
Definition: DecoderTypes.h:172
ZyanU32 offset
Definition: DecoderTypes.h:174
ZyanU16 segment
Definition: DecoderTypes.h:173
Extended info for register-operands.
Definition: DecoderTypes.h:115
ZydisRegister value
The register value.
Definition: DecoderTypes.h:119
Defines the ZydisDecodedOperand struct.
Definition: DecoderTypes.h:214
ZyanU16 size
The logical size of the operand (in bits).
Definition: DecoderTypes.h:234
ZyanU16 element_count
The number of elements.
Definition: DecoderTypes.h:246
ZydisOperandActions actions
The operand-actions.
Definition: DecoderTypes.h:226
ZydisOperandAttributes attributes
Definition: DecoderTypes.h:250
ZydisOperandEncoding encoding
The operand-encoding.
Definition: DecoderTypes.h:230
ZydisDecodedOperandReg reg
Definition: DecoderTypes.h:262
ZydisDecodedOperandImm imm
Definition: DecoderTypes.h:265
ZydisElementType element_type
The element-type.
Definition: DecoderTypes.h:238
ZydisOperandVisibility visibility
The visibility of the operand.
Definition: DecoderTypes.h:222
ZydisDecodedOperandPtr ptr
Definition: DecoderTypes.h:264
ZydisDecodedOperandMem mem
Definition: DecoderTypes.h:263
ZydisOperandType type
The type of the operand.
Definition: DecoderTypes.h:254
ZyanU8 id
The operand-id.
Definition: DecoderTypes.h:218
ZydisElementSize element_size
The size of a single element.
Definition: DecoderTypes.h:242
The decoder context is used to preserve some internal state between subsequent decode operations for ...
Definition: DecoderTypes.h:1353
ZyanU8 functionality
The MVEX functionality.
Definition: DecoderTypes.h:1445
struct ZydisDecoderContext_::@7 mvex
Internal MVEX-specific information.
ZyanU8 R2
Definition: DecoderTypes.h:1381
ZyanU8 tuple_type
The EVEX tuple-type.
Definition: DecoderTypes.h:1431
ZyanU8 id_base
The final register id for the base register.
Definition: DecoderTypes.h:1414
ZyanU8 X
Definition: DecoderTypes.h:1377
ZyanU8 cd8_scale
The scale factor for EVEX/MVEX compressed 8-bit displacement values.
Definition: DecoderTypes.h:1450
struct ZydisDecoderContext_::@5 reg_info
Information about encoded operand registers.
ZyanU8 mask
Definition: DecoderTypes.h:1384
ZyanU8 element_size
The EVEX element-size.
Definition: DecoderTypes.h:1435
ZyanU8 L
Definition: DecoderTypes.h:1379
ZyanU8 eosz_index
Contains the effective operand-size index.
Definition: DecoderTypes.h:1363
ZyanU8 R
Definition: DecoderTypes.h:1376
ZyanU8 LL
Definition: DecoderTypes.h:1380
ZyanU8 id_rm
The final register id for the rm encoded register.
Definition: DecoderTypes.h:1404
struct ZydisDecoderContext_::@6 evex
Internal EVEX-specific information.
ZyanU8 W
Definition: DecoderTypes.h:1375
ZyanU8 vvvv
Definition: DecoderTypes.h:1383
ZyanU8 V2
Definition: DecoderTypes.h:1382
ZyanU8 id_reg
The final register id for the reg encoded register.
Definition: DecoderTypes.h:1398
const void * definition
A pointer to the internal instruction definition.
Definition: DecoderTypes.h:1357
struct ZydisDecoderContext_::@4 vector_unified
Contains some cached REX/XOP/VEX/EVEX/MVEX values to provide uniform access.
ZyanU8 id_index
The final register id for the index register.
Definition: DecoderTypes.h:1421
ZyanBool is_mod_reg
Signals if the modrm.mod == 3 or reg form is forced for the instruction.
Definition: DecoderTypes.h:1394
ZyanU8 B
Definition: DecoderTypes.h:1378
ZyanU8 id_ndsndd
The final register id for the ndsndd (.vvvv) encoded register.
Definition: DecoderTypes.h:1408
ZyanU8 easz_index
Contains the effective address-size index.
Definition: DecoderTypes.h:1369
The immediate value.
Definition: DecoderTypes.h:1232
ZyanU64 u
Definition: DecoderTypes.h:1233
ZyanI64 s
Definition: DecoderTypes.h:1234
The immediate value.
Definition: DecoderTypes.h:195
ZyanU64 u
Definition: DecoderTypes.h:196
ZyanI64 s
Definition: DecoderTypes.h:197