3 typedef unsigned char uc;
81 #define Table_spec(t) t, sizeof(t) 82 #define Opc_in_tbl(t) opc_in_table(opc, Table_spec(t)) 93 for(
size_t i=0; i < len; i++)
94 if (opc == opc_tbl[i])
return true;
149 if ((*escape == 0xc4) || (*escape == 0x8f)) {
154 if (*escape == 0xc5) {
160 if ((mod == 0) && (r_m == 5)) rv = 4;
161 else if (mod == 1) rv = 1;
162 else if (mod == 2) rv = 4;
174 if ((*escape == 0xc4) || (*escape == 0x8f)) {
179 if (*escape == 0xc5) {
185 return (mod != 3) && (r_m == 4) ? 1 : 0;
193 if ((*escape == 0xc4) || (*escape == 0x8f))
194 return sizeof(
apm_t);
211 0x2e, 0x3e, 0x26, 0x64, 0x65, 0x36,
220 for (
int i = 0; i <
sizeof(
prefix_tbl); i++) {
232 for (
int i = 0; i < 4; i++) {
static const uc xop_op4_tbl[]
static bool xop_op4(void *seq)
void adv_amd_decode(amd_decode_t *stat, void *ins)
static size_t escape_len(void *seq)
static size_t ins_len(void *seq)
static size_t sib_byte(void *seq)
static bool is_prefix(void *ins)
static const uc prefix_tbl[]
static size_t op4_imm(void *seq)
static bool default_false(void *seq)
static bool vex5_op4(void *seq)
static bool vex_op4(void *seq)
static bool opc_in_table(uc opc, const uc opc_tbl[], const size_t len)
static size_t disp_size(void *seq)
static const uc vex_op4_tbl[]