Zydis v4.1.1
|
Utility functions and constants for registers. More...
#include <Zycore/Defines.h>
#include <Zycore/Types.h>
#include <Zydis/Defines.h>
#include <Zydis/SharedTypes.h>
#include <Zydis/ShortString.h>
#include <Zydis/Generated/EnumRegister.h>
Go to the source code of this file.
Data Structures | |
struct | ZydisRegisterContext_ |
Defines the ZydisRegisterContext struct. More... | |
Typedefs | |
typedef enum ZydisRegisterKind_ | ZydisRegisterKind |
Defines the ZydisRegisterKind enum. | |
typedef enum ZydisRegisterClass_ | ZydisRegisterClass |
Defines the ZydisRegisterClass enum. | |
typedef ZyanU16 | ZydisRegisterWidth |
Defines the ZydisRegisterWidth data-type. | |
typedef struct ZydisRegisterContext_ | ZydisRegisterContext |
Defines the ZydisRegisterContext struct. | |
Functions | |
ZYDIS_EXPORT ZydisRegister | ZydisRegisterEncode (ZydisRegisterClass register_class, ZyanU8 id) |
Returns the register specified by the register_class and id tuple. | |
ZYDIS_EXPORT ZyanI8 | ZydisRegisterGetId (ZydisRegister reg) |
Returns the id of the specified register. | |
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. | |
ZYDIS_EXPORT ZydisRegister | ZydisRegisterGetLargestEnclosing (ZydisMachineMode mode, ZydisRegister reg) |
Returns the largest enclosing register of the given register. | |
ZYDIS_EXPORT const char * | ZydisRegisterGetString (ZydisRegister reg) |
Returns the specified register string. | |
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. | |
Utility functions and constants for registers.
typedef enum ZydisRegisterClass_ ZydisRegisterClass |
Defines the ZydisRegisterClass
enum.
Please note that this enum does not contain a matching entry for all values of the ZydisRegister
enum, but only for those registers where it makes sense to logically group them for decoding/encoding purposes.
These are mainly the registers that can be identified by an id within their corresponding register-class. The IP
and FLAGS
values are exceptions to this rule.
typedef struct ZydisRegisterContext_ ZydisRegisterContext |
Defines the ZydisRegisterContext
struct.
typedef enum ZydisRegisterKind_ ZydisRegisterKind |
Defines the ZydisRegisterKind
enum.
Please note that this enum does not contain a matching entry for all values of the ZydisRegister
enum, but only for those registers where it makes sense to logically group them for decoding/encoding purposes.
These are mainly the registers that can be identified by an id within their corresponding register-class.
typedef ZyanU16 ZydisRegisterWidth |
Defines the ZydisRegisterWidth
data-type.
enum ZydisRegisterClass_ |
Defines the ZydisRegisterClass
enum.
Please note that this enum does not contain a matching entry for all values of the ZydisRegister
enum, but only for those registers where it makes sense to logically group them for decoding/encoding purposes.
These are mainly the registers that can be identified by an id within their corresponding register-class. The IP
and FLAGS
values are exceptions to this rule.
enum ZydisRegisterKind_ |
Defines the ZydisRegisterKind
enum.
Please note that this enum does not contain a matching entry for all values of the ZydisRegister
enum, but only for those registers where it makes sense to logically group them for decoding/encoding purposes.
These are mainly the registers that can be identified by an id within their corresponding register-class.