35 #include <Zycore/Defines.h>
36 #include <Zycore/Types.h>
38 #if !defined(ZYDIS_DISABLE_DECODER)
43 #if !defined(ZYDIS_DISABLE_ENCODER)
47 #if !defined(ZYDIS_DISABLE_FORMATTER)
51 #if !defined(ZYDIS_DISABLE_SEGMENT)
55 #if !defined(ZYDIS_DISABLE_DECODER) && !defined(ZYDIS_DISABLE_FORMATTER)
89 #define ZYDIS_VERSION (ZyanU64)0x0004000100000000
100 #define ZYDIS_VERSION_MAJOR(version) (ZyanU16)(((version) & 0xFFFF000000000000) >> 48)
107 #define ZYDIS_VERSION_MINOR(version) (ZyanU16)(((version) & 0x0000FFFF00000000) >> 32)
114 #define ZYDIS_VERSION_PATCH(version) (ZyanU16)(((version) & 0x00000000FFFF0000) >> 16)
121 #define ZYDIS_VERSION_BUILD(version) (ZyanU16)((version) & 0x000000000000FFFF)
Defines the basic ZydisDecodedInstruction and ZydisDecodedOperand structs.
Functions for decoding instructions.
#define ZYDIS_EXPORT
Symbol is exported in shared library builds.
Definition: Defines.h:67
All-in-one convenience function providing the simplest possible way to use Zydis.
Functions for encoding instructions.
Mnemonic constant definitions and helper functions.
Utility functions and constants for registers.
Functions and types providing encoding information about individual instruction bytes.
Defines decoder/encoder-shared macros and types.
Status code definitions and check macros.
ZYDIS_EXPORT ZyanStatus ZydisIsFeatureEnabled(ZydisFeature feature)
Checks, if the specified feature is enabled in the current zydis library instance.
ZydisFeature_
Defines the ZydisFeature enum.
Definition: Zydis.h:133
enum ZydisFeature_ ZydisFeature
Defines the ZydisFeature enum.
ZYDIS_EXPORT ZyanU64 ZydisGetVersion(void)
Returns the zydis version.
@ ZYDIS_FEATURE_SEGMENT
Definition: Zydis.h:139
@ ZYDIS_FEATURE_KNC
Definition: Zydis.h:138
@ ZYDIS_FEATURE_MAX_VALUE
Maximum value of this enum.
Definition: Zydis.h:144
@ ZYDIS_FEATURE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: Zydis.h:148
@ ZYDIS_FEATURE_DECODER
Definition: Zydis.h:134
@ ZYDIS_FEATURE_FORMATTER
Definition: Zydis.h:136
@ ZYDIS_FEATURE_ENCODER
Definition: Zydis.h:135
@ ZYDIS_FEATURE_AVX512
Definition: Zydis.h:137