Functions allowing retrieval of information about registers.
More...
Functions allowing retrieval of information about registers.
◆ ZydisRegisterClassGetWidth()
Returns the width of the specified register-class.
- Parameters
-
mode | The active machine mode. |
register_class | The register class. |
- Returns
- The width of the specified register.
◆ ZydisRegisterEncode()
Returns the register specified by the register_class
and id
tuple.
- Parameters
-
register_class | The register class. |
id | The register id. |
- Returns
- The register specified by the
register_class
and id
tuple or ZYDIS_REGISTER_NONE
, if an invalid parameter was passed.
◆ ZydisRegisterGetClass()
Returns the register-class of the specified register.
- Parameters
-
- Returns
- The register-class of the specified register.
◆ ZydisRegisterGetId()
Returns the id of the specified register.
- Parameters
-
- Returns
- The id of the specified register, or -1 if an invalid parameter was passed.
◆ ZydisRegisterGetLargestEnclosing()
Returns the largest enclosing register of the given register.
- Parameters
-
mode | The active machine mode. |
reg | The register. |
- Returns
- The largest enclosing register of the given register, or
ZYDIS_REGISTER_NONE
if the register is invalid for the active machine-mode.
◆ ZydisRegisterGetString()
Returns the specified register string.
- Parameters
-
- Returns
- The register string or
ZYAN_NULL
, if an invalid register was passed.
◆ ZydisRegisterGetStringWrapped()
Returns the specified register string as ZydisShortString
.
- Parameters
-
- Returns
- The register string or
ZYAN_NULL
, if an invalid register was passed.
The buffer
of the returned struct is guaranteed to be zero-terminated in this special case.
◆ ZydisRegisterGetWidth()
Returns the width of the specified register.
- Parameters
-
mode | The active machine mode. |
reg | The register. |
- Returns
- The width of the specified register, or
ZYDIS_REGISTER_NONE
if the register is invalid for the active machine-mode.