32 #ifndef ZYDIS_REGISTER_H 33 #define ZYDIS_REGISTER_H 35 #include <Zycore/Defines.h> 36 #include <Zycore/Types.h> 53 #include <Zydis/Generated/EnumRegister.h> 71 ZYDIS_REGKIND_INVALID,
77 ZYDIS_REGKIND_SEGMENT,
79 ZYDIS_REGKIND_CONTROL,
110 ZYDIS_REGCLASS_INVALID,
154 ZYDIS_REGCLASS_FLAGS,
219 ZyanU64
values[ZYDIS_REGISTER_MAX_VALUE + 1];
Test registers.
Definition: Register.h:170
enum ZydisMachineMode_ ZydisMachineMode
Defines the ZydisMachineMode enum.
ZYDIS_EXPORT ZydisRegisterWidth ZydisRegisterClassGetWidth(ZydisMachineMode mode, ZydisRegisterClass register_class)
Returns the width of the specified register-class.
ZYDIS_EXPORT const char * ZydisRegisterGetString(ZydisRegister reg)
Returns the specified register string.
8-bit general-purpose registers.
Definition: Register.h:114
Defines decoder/encoder-shared macros and types.
Maximum value of this enum.
Definition: Register.h:191
256-bit vector registers.
Definition: Register.h:142
Import/export defines for MSVC builds.
#define ZYDIS_EXPORT
Symbol is exported in shared library builds.
Definition: Defines.h:67
Mask registers.
Definition: Register.h:182
512-bit vector registers.
Definition: Register.h:146
ZYDIS_EXPORT ZyanI8 ZydisRegisterGetId(ZydisRegister reg)
Returns the id of the specified register.
ZydisRegisterClass_
Defines the ZydisRegisterClass enum.
Definition: Register.h:108
64-bit general-purpose registers.
Definition: Register.h:126
ZyanU16 ZydisRegisterWidth
Defines the ZydisRegisterWidth data-type.
Definition: Register.h:205
struct ZydisRegisterContext_ ZydisRegisterContext
Defines the ZydisRegisterContext struct.
Floating point legacy registers.
Definition: Register.h:130
enum ZydisRegisterKind_ ZydisRegisterKind
Defines the ZydisRegisterKind enum.
ZYDIS_EXPORT ZydisRegisterClass ZydisRegisterGetClass(ZydisRegister reg)
Returns the register-class of the specified register.
Defines the ZydisShortString struct.
Definition: ShortString.h:59
Table registers.
Definition: Register.h:166
ZYDIS_EXPORT ZydisRegisterWidth ZydisRegisterGetWidth(ZydisMachineMode mode, ZydisRegister reg)
Returns the width of the specified register.
enum ZydisRegisterClass_ ZydisRegisterClass
Defines the ZydisRegisterClass enum.
Defines the immutable and storage-efficient ZydisShortString struct, which is used to store strings i...
Floating point multimedia registers.
Definition: Register.h:134
Control registers.
Definition: Register.h:174
Instruction-pointer registers.
Definition: Register.h:158
ZyanU64 values[ZYDIS_REGISTER_MAX_VALUE+1]
The values stored in the register context.
Definition: Register.h:219
32-bit general-purpose registers.
Definition: Register.h:122
The minimum number of bits required to represent all values of this enum.
Definition: Register.h:91
ZYDIS_EXPORT ZydisRegister ZydisRegisterEncode(ZydisRegisterClass register_class, ZyanU8 id)
Returns the register specified by the register_class and id tuple.
ZydisRegisterKind_
Defines the ZydisRegisterKind enum.
Definition: Register.h:69
The minimum number of bits required to represent all values of this enum.
Definition: Register.h:195
Matrix registers.
Definition: Register.h:150
ZYDIS_EXPORT const ZydisShortString * ZydisRegisterGetStringWrapped(ZydisRegister reg)
Returns the specified register string as ZydisShortString.
Defines the ZydisRegisterContext struct.
Definition: Register.h:214
16-bit general-purpose registers.
Definition: Register.h:118
Debug registers.
Definition: Register.h:178
Maximum value of this enum.
Definition: Register.h:87
ZYDIS_EXPORT ZydisRegister ZydisRegisterGetLargestEnclosing(ZydisMachineMode mode, ZydisRegister reg)
Returns the largest enclosing register of the given register.
Bound registers.
Definition: Register.h:186
128-bit vector registers.
Definition: Register.h:138
Segment registers.
Definition: Register.h:162