Intel® X86 Encoder Decoder: xed-state.h File Reference

Intel® X86 Encoder Decoder

Loading...
Searching...
No Matches
xed-state.h File Reference
`#include "xed-types.h"`
`#include "xed-portability.h"`
`#include "xed-util.h"`
`#include "xed-address-width-enum.h"`
`#include "xed-machine-mode-enum.h"`

## Data Structures
struct | xed_state_s
| Encapsulates machine modes for decoder/encoder requests. More...

## Typedefs
typedef struct xed_state_s | xed_state_t
| Encapsulates machine modes for decoder/encoder requests.

## Functions
Initialization
static XED_INLINE void | xed_state_init (xed_state_t *p, xed_machine_mode_enum_t arg_mmode, xed_address_width_enum_t arg_ignored, xed_address_width_enum_t arg_stack_addr_width)
| Constructor.
static XED_INLINE void | xed_state_init2 (xed_state_t *p, xed_machine_mode_enum_t arg_mmode, xed_address_width_enum_t arg_stack_addr_width)
| Constructor.
static XED_INLINE void | xed_state_zero (xed_state_t *p)
| clear the xed_state_t
Machine mode
static XED_INLINE xed_machine_mode_enum_t | xed_state_get_machine_mode (const xed_state_t *p)
| return the machine mode
static XED_INLINE xed_bool_t | xed_state_long64_mode (const xed_state_t *p)
| true iff the machine is in LONG_64 mode
static XED_INLINE xed_bool_t | xed_state_mode_width_16 (const xed_state_t *p)
static XED_INLINE xed_bool_t | xed_state_mode_width_32 (const xed_state_t *p)
static XED_INLINE xed_bool_t | xed_state_real_mode (const xed_state_t *p)
static XED_INLINE void | xed_state_set_machine_mode (xed_state_t *p, xed_machine_mode_enum_t arg_mode)
| Set the machine mode which corresponds to the default data operand size.
Address width
static XED_INLINE xed_address_width_enum_t | xed_state_get_address_width (const xed_state_t *p)
| return the address width
Stack address width
static XED_INLINE xed_address_width_enum_t | xed_state_get_stack_address_width (const xed_state_t *p)
| Return the STACK address width.
XED_DLL_EXPORT int | xed_state_print (const xed_state_t *p, char *buf, int buflen)
static XED_INLINE void | xed_state_set_stack_address_width (xed_state_t *p, xed_address_width_enum_t arg_addr_width)
| set the STACK address width