Intel® X86 Encoder Decoder
xed-encode.h File Reference

Typedefs

typedef struct xed_decoded_inst_s xed_encoder_request_s
 
typedef xed_decoded_inst_t xed_encoder_request_t
 

Functions

XED_DLL_EXPORT xed_iclass_enum_t xed_encoder_request_get_iclass (const xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_set_iclass (xed_encoder_request_t *p, xed_iclass_enum_t iclass)
 
Primary Encode Functions
XED_DLL_EXPORT void xed_encoder_request_set_effective_address_size (xed_encoder_request_t *p, xed_uint_t width_bits)
 
XED_DLL_EXPORT void xed_encoder_request_set_effective_operand_width (xed_encoder_request_t *p, xed_uint_t width_bits)
 
XED_DLL_EXPORT void xed_encoder_request_set_reg (xed_encoder_request_t *p, xed_operand_enum_t operand, xed_reg_enum_t reg)
 
Operand Order
XED_DLL_EXPORT xed_operand_enum_t xed_encoder_request_get_operand_order (xed_encoder_request_t *p, xed_uint_t operand_index)
 
static XED_INLINE xed_uint_t xed_encoder_request_operand_order_entries (xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_set_operand_order (xed_encoder_request_t *p, xed_uint_t operand_index, xed_operand_enum_t name)
 
branches and far pointers
XED_DLL_EXPORT void xed_encoder_request_set_absbr (xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_set_branch_displacement (xed_encoder_request_t *p, xed_int64_t brdisp, xed_uint_t nbytes)
 
XED_DLL_EXPORT void xed_encoder_request_set_ptr (xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_set_relbr (xed_encoder_request_t *p)
 
Immediates
XED_DLL_EXPORT void xed_encoder_request_set_simm (xed_encoder_request_t *p, xed_int32_t simm, xed_uint_t nbytes)
 
XED_DLL_EXPORT void xed_encoder_request_set_uimm0 (xed_encoder_request_t *p, xed_uint64_t uimm, xed_uint_t nbytes)
 
XED_DLL_EXPORT void xed_encoder_request_set_uimm0_bits (xed_encoder_request_t *p, xed_uint64_t uimm, xed_uint_t nbits)
 
XED_DLL_EXPORT void xed_encoder_request_set_uimm1 (xed_encoder_request_t *p, xed_uint8_t uimm)
 
Memory
static XED_INLINE xed_operand_values_txed_encoder_request_operands (xed_encoder_request_t *p)
 
static const XED_INLINE xed_operand_values_txed_encoder_request_operands_const (const xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_set_agen (xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_set_base0 (xed_encoder_request_t *p, xed_reg_enum_t base_reg)
 
XED_DLL_EXPORT void xed_encoder_request_set_base1 (xed_encoder_request_t *p, xed_reg_enum_t base_reg)
 
XED_DLL_EXPORT void xed_encoder_request_set_index (xed_encoder_request_t *p, xed_reg_enum_t index_reg)
 
XED_DLL_EXPORT void xed_encoder_request_set_mem0 (xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_set_mem1 (xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_set_memory_displacement (xed_encoder_request_t *p, xed_int64_t memdisp, xed_uint_t nbytes)
 
XED_DLL_EXPORT void xed_encoder_request_set_memory_operand_length (xed_encoder_request_t *p, xed_uint_t nbytes)
 
XED_DLL_EXPORT void xed_encoder_request_set_scale (xed_encoder_request_t *p, xed_uint_t scale)
 
XED_DLL_EXPORT void xed_encoder_request_set_seg0 (xed_encoder_request_t *p, xed_reg_enum_t seg_reg)
 
XED_DLL_EXPORT void xed_encoder_request_set_seg1 (xed_encoder_request_t *p, xed_reg_enum_t seg_reg)
 
Initialization
XED_DLL_EXPORT void xed_encoder_request_init_from_decode (struct xed_decoded_inst_s *d)
 
XED_DLL_EXPORT void xed_encoder_request_zero (xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_zero_operand_order (xed_encoder_request_t *p)
 
XED_DLL_EXPORT void xed_encoder_request_zero_set_mode (xed_encoder_request_t *p, const xed_state_t *dstate)
 
String Printing
XED_DLL_EXPORT void xed_encode_request_print (const xed_encoder_request_t *p, char *buf, xed_uint_t buflen)
 
Encoding
XED_DLL_EXPORT xed_error_enum_t xed_encode (xed_encoder_request_t *r, xed_uint8_t *array, const unsigned int ilen, unsigned int *olen)
 This is the main interface to the encoder. More...
 
XED_DLL_EXPORT xed_error_enum_t xed_encode_nop (xed_uint8_t *array, const unsigned int ilen)
 This function will attempt to encode a NOP of exactly ilen bytes. More...