32 #ifndef ZYDIS_REGISTER_H
33 #define ZYDIS_REGISTER_H
35 #include <Zycore/Defines.h>
36 #include <Zycore/Types.h>
@ ZYDIS_REGISTER_MAX_VALUE
Maximum value of this enum.
Definition: EnumRegister.h:287
enum ZydisRegister_ ZydisRegister
Defines the ZydisRegister enum.
ZyanU16 ZydisRegisterWidth
Defines the ZydisRegisterWidth data-type.
Definition: Register.h:157
ZydisRegisterClass_
Defines the ZydisRegisterClass enum.
Definition: Register.h:69
@ ZYDIS_REGCLASS_MMX
Floating point multimedia registers.
Definition: Register.h:94
@ ZYDIS_REGCLASS_IP
Instruction-pointer registers.
Definition: Register.h:114
@ ZYDIS_REGCLASS_CONTROL
Control registers.
Definition: Register.h:126
@ ZYDIS_REGCLASS_GPR8
8-bit general-purpose registers.
Definition: Register.h:74
@ ZYDIS_REGCLASS_SEGMENT
Segment registers.
Definition: Register.h:118
@ ZYDIS_REGCLASS_TEST
Test registers.
Definition: Register.h:122
@ ZYDIS_REGCLASS_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: Register.h:147
@ ZYDIS_REGCLASS_X87
Floating point legacy registers.
Definition: Register.h:90
@ ZYDIS_REGCLASS_MAX_VALUE
Maximum value of this enum.
Definition: Register.h:143
@ ZYDIS_REGCLASS_YMM
256-bit vector registers.
Definition: Register.h:102
@ ZYDIS_REGCLASS_GPR64
64-bit general-purpose registers.
Definition: Register.h:86
@ ZYDIS_REGCLASS_BOUND
Bound registers.
Definition: Register.h:138
@ ZYDIS_REGCLASS_GPR32
32-bit general-purpose registers.
Definition: Register.h:82
@ ZYDIS_REGCLASS_INVALID
Definition: Register.h:70
@ ZYDIS_REGCLASS_DEBUG
Debug registers.
Definition: Register.h:130
@ ZYDIS_REGCLASS_FLAGS
Flags registers.
Definition: Register.h:110
@ ZYDIS_REGCLASS_ZMM
512-bit vector registers.
Definition: Register.h:106
@ ZYDIS_REGCLASS_MASK
Mask registers.
Definition: Register.h:134
@ ZYDIS_REGCLASS_GPR16
16-bit general-purpose registers.
Definition: Register.h:78
@ ZYDIS_REGCLASS_XMM
128-bit vector registers.
Definition: Register.h:98
struct ZydisRegisterContext_ ZydisRegisterContext
Defines the ZydisRegisterContext struct.
enum ZydisRegisterClass_ ZydisRegisterClass
Defines the ZydisRegisterClass enum.
Defines decoder/encoder-shared macros and types.
enum ZydisMachineMode_ ZydisMachineMode
Defines the ZydisMachineMode enum.
Defines the immutable and storage-efficient ZydisShortString struct, which is used to store strings i...
ZYDIS_EXPORT const char * ZydisRegisterGetString(ZydisRegister reg)
Returns the specified register string.
ZYDIS_EXPORT ZydisRegister ZydisRegisterEncode(ZydisRegisterClass register_class, ZyanU8 id)
Returns the register specified by the register_class and id tuple.
ZYDIS_EXPORT ZydisRegister ZydisRegisterGetLargestEnclosing(ZydisMachineMode mode, ZydisRegister reg)
Returns the largest enclosing register of the given register.
ZYDIS_EXPORT ZyanI8 ZydisRegisterGetId(ZydisRegister reg)
Returns the id of the specified register.
ZYDIS_EXPORT const ZydisShortString * ZydisRegisterGetStringWrapped(ZydisRegister reg)
Returns the specified register string as ZydisShortString.
ZYDIS_EXPORT ZydisRegisterWidth ZydisRegisterClassGetWidth(ZydisMachineMode mode, ZydisRegisterClass register_class)
Returns the width of the specified register-class.
ZYDIS_EXPORT ZydisRegisterClass ZydisRegisterGetClass(ZydisRegister reg)
Returns the register-class of the specified register.
ZYDIS_EXPORT ZydisRegisterWidth ZydisRegisterGetWidth(ZydisMachineMode mode, ZydisRegister reg)
Returns the width of the specified register.
Defines the ZydisRegisterContext struct.
Definition: Register.h:167
ZyanU64 values[ZYDIS_REGISTER_MAX_VALUE+1]
The values stored in the register context.
Definition: Register.h:171
Defines the ZydisShortString struct.
Definition: ShortString.h:59