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)) 87 for(
size_t i=0; i < len; i++)
88 if (opc == opc_tbl[i])
return true;
143 if ((*escape == 0xc4) || (*escape == 0x8f)) {
148 if (*escape == 0xc5) {
154 if ((mod == 0) && (r_m == 5)) rv = 4;
155 else if (mod == 1) rv = 1;
156 else if (mod == 2) rv = 4;
168 if ((*escape == 0xc4) || (*escape == 0x8f)) {
173 if (*escape == 0xc5) {
179 return (mod != 3) && (r_m == 4) ? 1 : 0;
187 if ((*escape == 0xc4) || (*escape == 0x8f))
188 return sizeof(
apm_t);
205 0x2e, 0x3e, 0x26, 0x64, 0x65, 0x36,
214 for (
int i = 0; i <
sizeof(
prefix_tbl); i++) {
226 for (
int i = 0; i < 4; i++) {
static bool xop_op4(void *seq)
static size_t ins_len(void *seq)
void adv_amd_decode(amd_decode_t *stat, void *ins)
static bool opc_in_table(uc opc, const uc opc_tbl[], const size_t len)
static size_t sib_byte(void *seq)
static size_t escape_len(void *seq)
static bool vex5_op4(void *seq)
static size_t disp_size(void *seq)
static const uc xop_op4_tbl[]
static bool is_prefix(void *ins)
static bool vex_op4(void *seq)
static const uc prefix_tbl[]
static const uc vex_op4_tbl[]
static size_t op4_imm(void *seq)