Rizin
unix-like reverse engineering framework and cli tools
X86Mapping.h File Reference
#include "capstone/capstone.h"
#include "../../cs_priv.h"

Go to the source code of this file.

Functions

x86_reg x86_map_sib_base (int r)
 
x86_reg x86_map_sib_index (int r)
 
x86_reg x86_map_segment (int r)
 
const char * X86_reg_name (csh handle, unsigned int reg)
 
void X86_get_insn_id (cs_struct *h, cs_insn *insn, unsigned int id)
 
const char * X86_insn_name (csh handle, unsigned int id)
 
const char * X86_group_name (csh handle, unsigned int id)
 
x86_reg X86_insn_reg_intel (unsigned int id, enum cs_ac_type *access)
 
x86_reg X86_insn_reg_att (unsigned int id, enum cs_ac_type *access)
 
bool X86_insn_reg_intel2 (unsigned int id, x86_reg *reg1, enum cs_ac_type *access1, x86_reg *reg2, enum cs_ac_type *access2)
 
bool X86_insn_reg_att2 (unsigned int id, x86_reg *reg1, enum cs_ac_type *access1, x86_reg *reg2, enum cs_ac_type *access2)
 
bool X86_lockrep (MCInst *MI, SStream *O)
 
void op_addReg (MCInst *MI, int reg)
 
void op_addImm (MCInst *MI, int v)
 
void op_addAvxBroadcast (MCInst *MI, x86_avx_bcast v)
 
void op_addXopCC (MCInst *MI, int v)
 
void op_addSseCC (MCInst *MI, int v)
 
void op_addAvxCC (MCInst *MI, int v)
 
void op_addAvxZeroOpmask (MCInst *MI)
 
void op_addAvxSae (MCInst *MI)
 
void op_addAvxRoundingMode (MCInst *MI, int v)
 
uint8_tX86_get_op_access (cs_struct *h, unsigned int id, uint64_t *eflags)
 
void X86_reg_access (const cs_insn *insn, cs_regs regs_read, uint8_t *regs_read_count, cs_regs regs_write, uint8_t *regs_write_count)
 
uint8_t X86_immediate_size (unsigned int id, uint8_t *enc_size)
 

Variables

const uint64_t arch_masks [9]
 
const uint8_t regsize_map_32 []
 
const uint8_t regsize_map_64 []
 

Function Documentation

◆ op_addAvxBroadcast()

void op_addAvxBroadcast ( MCInst MI,
x86_avx_bcast  v 
)

◆ op_addAvxCC()

void op_addAvxCC ( MCInst MI,
int  v 
)

◆ op_addAvxRoundingMode()

void op_addAvxRoundingMode ( MCInst MI,
int  v 
)

◆ op_addAvxSae()

void op_addAvxSae ( MCInst MI)

◆ op_addAvxZeroOpmask()

void op_addAvxZeroOpmask ( MCInst MI)

◆ op_addImm()

void op_addImm ( MCInst MI,
int  v 
)

◆ op_addReg()

void op_addReg ( MCInst MI,
int  reg 
)

◆ op_addSseCC()

void op_addSseCC ( MCInst MI,
int  v 
)

◆ op_addXopCC()

void op_addXopCC ( MCInst MI,
int  v 
)

◆ X86_get_insn_id()

void X86_get_insn_id ( cs_struct h,
cs_insn *  insn,
unsigned int  id 
)

◆ X86_get_op_access()

uint8_t* X86_get_op_access ( cs_struct h,
unsigned int  id,
uint64_t eflags 
)

◆ X86_group_name()

const char* X86_group_name ( csh  handle,
unsigned int  id 
)

◆ X86_immediate_size()

uint8_t X86_immediate_size ( unsigned int  id,
uint8_t enc_size 
)

◆ X86_insn_name()

const char* X86_insn_name ( csh  handle,
unsigned int  id 
)

◆ X86_insn_reg_att()

x86_reg X86_insn_reg_att ( unsigned int  id,
enum cs_ac_type access 
)

◆ X86_insn_reg_att2()

bool X86_insn_reg_att2 ( unsigned int  id,
x86_reg reg1,
enum cs_ac_type access1,
x86_reg reg2,
enum cs_ac_type access2 
)

◆ X86_insn_reg_intel()

x86_reg X86_insn_reg_intel ( unsigned int  id,
enum cs_ac_type access 
)

◆ X86_insn_reg_intel2()

bool X86_insn_reg_intel2 ( unsigned int  id,
x86_reg reg1,
enum cs_ac_type access1,
x86_reg reg2,
enum cs_ac_type access2 
)

◆ X86_lockrep()

bool X86_lockrep ( MCInst MI,
SStream O 
)

◆ x86_map_segment()

x86_reg x86_map_segment ( int  r)

◆ x86_map_sib_base()

x86_reg x86_map_sib_base ( int  r)

◆ x86_map_sib_index()

x86_reg x86_map_sib_index ( int  r)

◆ X86_reg_access()

void X86_reg_access ( const cs_insn *  insn,
cs_regs  regs_read,
uint8_t regs_read_count,
cs_regs  regs_write,
uint8_t regs_write_count 
)

◆ X86_reg_name()

const char* X86_reg_name ( csh  handle,
unsigned int  reg 
)

Variable Documentation

◆ arch_masks

const uint64_t arch_masks[9]
extern

◆ regsize_map_32

const uint8_t regsize_map_32[]
extern

◆ regsize_map_64

const uint8_t regsize_map_64[]
extern