| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#ifndef _BX_DISASM_H_ |
| 25 |
#define _BX_DISASM_H_ |
| 26 |
|
| 27 |
#include "config.h" |
| 28 |
|
| 29 |
#define BX_DECODE_MODRM(modrm_byte, mod, opcode, rm) { \ |
| 30 |
mod = (modrm_byte >> 6) & 0x03; \ |
| 31 |
opcode = (modrm_byte >> 3) & 0x07; \ |
| 32 |
rm = modrm_byte & 0x07; \ |
| 33 |
} |
| 34 |
|
| 35 |
#define BX_DECODE_SIB(sib_byte, scale, index, base) { \ |
| 36 |
scale = sib_byte >> 6; \ |
| 37 |
index = (sib_byte >> 3) & 0x07; \ |
| 38 |
base = sib_byte & 0x07; \ |
| 39 |
} |
| 40 |
|
| 41 |
|
| 42 |
#define IA_X87 (BX_CONST64(1) << 0) |
| 43 |
#define IA_486 (BX_CONST64(1) << 1) |
| 44 |
#define IA_PENTIUM (BX_CONST64(1) << 2) |
| 45 |
#define IA_P6 (BX_CONST64(1) << 3) |
| 46 |
#define IA_MMX (BX_CONST64(1) << 4) |
| 47 |
#define IA_3DNOW (BX_CONST64(1) << 5) |
| 48 |
#define IA_SYSCALL_SYSRET (BX_CONST64(1) << 6) |
| 49 |
#define IA_SYSENTER_SYSEXIT (BX_CONST64(1) << 7) |
| 50 |
#define IA_CLFLUSH (BX_CONST64(1) << 8) |
| 51 |
#define IA_SSE (BX_CONST64(1) << 9) |
| 52 |
#define IA_SSE2 (BX_CONST64(1) << 10) |
| 53 |
#define IA_SSE3 (BX_CONST64(1) << 11) |
| 54 |
#define IA_SSSE3 (BX_CONST64(1) << 12) |
| 55 |
#define IA_SSE4_1 (BX_CONST64(1) << 13) |
| 56 |
#define IA_SSE4_2 (BX_CONST64(1) << 14) |
| 57 |
#define IA_POPCNT (BX_CONST64(1) << 15) |
| 58 |
#define IA_MONITOR_MWAIT (BX_CONST64(1) << 16) |
| 59 |
#define IA_VMX (BX_CONST64(1) << 17) |
| 60 |
#define IA_SMX (BX_CONST64(1) << 18) |
| 61 |
#define IA_LM_LAHF_SAHF (BX_CONST64(1) << 19) |
| 62 |
#define IA_CMPXCHG16B (BX_CONST64(1) << 20) |
| 63 |
#define IA_RDTSCP (BX_CONST64(1) << 21) |
| 64 |
#define IA_XSAVE (BX_CONST64(1) << 22) |
| 65 |
#define IA_XSAVEOPT (BX_CONST64(1) << 23) |
| 66 |
#define IA_AES_PCLMULQDQ (BX_CONST64(1) << 24) |
| 67 |
#define IA_MOVBE (BX_CONST64(1) << 25) |
| 68 |
#define IA_FSGSBASE (BX_CONST64(1) << 26) |
| 69 |
#define IA_INVPCID (BX_CONST64(1) << 27) |
| 70 |
#define IA_AVX (BX_CONST64(1) << 28) |
| 71 |
#define IA_AVX2 (BX_CONST64(1) << 29) |
| 72 |
#define IA_AVX_F16C (BX_CONST64(1) << 30) |
| 73 |
#define IA_AVX_FMA (BX_CONST64(1) << 31) |
| 74 |
#define IA_SSE4A (BX_CONST64(1) << 32) |
| 75 |
#define IA_LZCNT (BX_CONST64(1) << 33) |
| 76 |
#define IA_BMI1 (BX_CONST64(1) << 34) |
| 77 |
#define IA_BMI2 (BX_CONST64(1) << 35) |
| 78 |
#define IA_FMA4 (BX_CONST64(1) << 36) |
| 79 |
#define IA_XOP (BX_CONST64(1) << 37) |
| 80 |
#define IA_TBM (BX_CONST64(1) << 38) |
| 81 |
#define IA_SVM (BX_CONST64(1) << 39) |
| 82 |
#define IA_RDRAND (BX_CONST64(1) << 40) |
| 83 |
#define IA_ADX (BX_CONST64(1) << 41) |
| 84 |
#define IA_SMAP (BX_CONST64(1) << 42) |
| 85 |
#define IA_RDSEED (BX_CONST64(1) << 43) |
| 86 |
#define IA_SHA (BX_CONST64(1) << 44) |
| 87 |
#define IA_AVX512 (BX_CONST64(1) << 45) |
| 88 |
#define IA_AVX512_CD (BX_CONST64(1) << 46) |
| 89 |
#define IA_AVX512_PF (BX_CONST64(1) << 47) |
| 90 |
#define IA_AVX512_ER (BX_CONST64(1) << 48) |
| 91 |
#define IA_AVX512_DQ (BX_CONST64(1) << 49) |
| 92 |
#define IA_AVX512_BW (BX_CONST64(1) << 50) |
| 93 |
#define IA_CLFLUSHOPT (BX_CONST64(1) << 51) |
| 94 |
#define IA_XSAVEC (BX_CONST64(1) << 52) |
| 95 |
#define IA_XSAVES (BX_CONST64(1) << 53) |
| 96 |
|
| 97 |
|
| 98 |
enum { |
| 99 |
rAX_REG, |
| 100 |
rCX_REG, |
| 101 |
rDX_REG, |
| 102 |
rBX_REG, |
| 103 |
rSP_REG, |
| 104 |
rBP_REG, |
| 105 |
rSI_REG, |
| 106 |
rDI_REG |
| 107 |
}; |
| 108 |
|
| 109 |
|
| 110 |
enum { |
| 111 |
ES_REG, |
| 112 |
CS_REG, |
| 113 |
SS_REG, |
| 114 |
DS_REG, |
| 115 |
FS_REG, |
| 116 |
GS_REG, |
| 117 |
INVALID_SEG1, |
| 118 |
INVALID_SEG2 |
| 119 |
}; |
| 120 |
|
| 121 |
class disassembler; |
| 122 |
struct x86_insn; |
| 123 |
|
| 124 |
typedef void (disassembler::*BxDisasmPtr_t)(const x86_insn *insn); |
| 125 |
typedef void (disassembler::*BxDisasmResolveModrmPtr_t)(const x86_insn *insn, unsigned attr); |
| 126 |
|
| 127 |
struct BxDisasmOpcodeInfo_t |
| 128 |
{ |
| 129 |
const char *IntelOpcode; |
| 130 |
const char *AttOpcode; |
| 131 |
BxDisasmPtr_t Operand1; |
| 132 |
BxDisasmPtr_t Operand2; |
| 133 |
BxDisasmPtr_t Operand3; |
| 134 |
BxDisasmPtr_t Operand4; |
| 135 |
Bit64u Feature; |
| 136 |
}; |
| 137 |
|
| 138 |
struct BxDisasmOpcodeTable_t |
| 139 |
{ |
| 140 |
Bit32u Attr; |
| 141 |
const void *OpcodeInfo; |
| 142 |
}; |
| 143 |
|
| 144 |
|
| 145 |
#define NO_SEG_OVERRIDE 0xFF |
| 146 |
|
| 147 |
|
| 148 |
#define X_SIZE 0x00 |
| 149 |
#define B_SIZE 0x01 |
| 150 |
#define W_SIZE 0x02 |
| 151 |
#define D_SIZE 0x03 |
| 152 |
#define Q_SIZE 0x04 |
| 153 |
#define Z_SIZE 0x05 |
| 154 |
#define T_SIZE 0x06 |
| 155 |
#define XMM_SIZE 0x07 |
| 156 |
#define YMM_SIZE 0x08 |
| 157 |
|
| 158 |
#define VSIB_Index 0x80 |
| 159 |
|
| 160 |
|
| 161 |
#define BRANCH_HINT 0x1000 |
| 162 |
|
| 163 |
struct x86_insn |
| 164 |
{ |
| 165 |
public: |
| 166 |
x86_insn(bx_bool is32, bx_bool is64); |
| 167 |
|
| 168 |
bx_bool is_seg_override() const { |
| 169 |
return (seg_override != NO_SEG_OVERRIDE); |
| 170 |
} |
| 171 |
|
| 172 |
public: |
| 173 |
bx_bool is_32, is_64; |
| 174 |
bx_bool as_32, as_64; |
| 175 |
bx_bool os_32, os_64; |
| 176 |
|
| 177 |
Bit8u extend8b; |
| 178 |
Bit8u rex_r, rex_x, rex_b; |
| 179 |
Bit8u seg_override; |
| 180 |
unsigned b1; |
| 181 |
unsigned ilen; |
| 182 |
|
| 183 |
#define BX_AVX_VL128 0 |
| 184 |
#define BX_AVX_VL256 1 |
| 185 |
Bit8u vex_vvv, vex_l, vex_w; |
| 186 |
int is_vex; |
| 187 |
int is_evex; |
| 188 |
int is_xop; |
| 189 |
Bit8u modrm, mod, nnn, rm; |
| 190 |
Bit8u sib, scale, index, base; |
| 191 |
union { |
| 192 |
Bit16u displ16; |
| 193 |
Bit32u displ32; |
| 194 |
} displacement; |
| 195 |
|
| 196 |
bx_bool evex_b; |
| 197 |
bx_bool evex_z; |
| 198 |
unsigned evex_ll_rc; |
| 199 |
}; |
| 200 |
|
| 201 |
BX_CPP_INLINE x86_insn::x86_insn(bx_bool is32, bx_bool is64) |
| 202 |
{ |
| 203 |
is_32 = is32; |
| 204 |
is_64 = is64; |
| 205 |
|
| 206 |
if (is_64) { |
| 207 |
os_64 = 0; |
| 208 |
as_64 = 1; |
| 209 |
os_32 = 1; |
| 210 |
as_32 = 1; |
| 211 |
} |
| 212 |
else { |
| 213 |
os_64 = 0; |
| 214 |
as_64 = 0; |
| 215 |
os_32 = is_32; |
| 216 |
as_32 = is_32; |
| 217 |
} |
| 218 |
|
| 219 |
extend8b = 0; |
| 220 |
rex_r = rex_b = rex_x = 0; |
| 221 |
seg_override = NO_SEG_OVERRIDE; |
| 222 |
ilen = 0; |
| 223 |
b1 = 0; |
| 224 |
|
| 225 |
is_vex = 0; |
| 226 |
is_evex = 0; |
| 227 |
is_xop = 0; |
| 228 |
vex_vvv = 0; |
| 229 |
vex_l = BX_AVX_VL128; |
| 230 |
vex_w = 0; |
| 231 |
modrm = mod = nnn = rm = 0; |
| 232 |
sib = scale = index = base = 0; |
| 233 |
displacement.displ32 = 0; |
| 234 |
|
| 235 |
evex_b = 0; |
| 236 |
evex_ll_rc = 0; |
| 237 |
evex_z = 0; |
| 238 |
} |
| 239 |
|
| 240 |
class disassembler { |
| 241 |
public: |
| 242 |
disassembler(): offset_mode_hex(0), print_mem_datasize(1) { set_syntax_intel(); } |
| 243 |
|
| 244 |
unsigned disasm(bx_bool is_32, bx_bool is_64, bx_address cs_base, bx_address ip, const Bit8u *instr, char *disbuf); |
| 245 |
|
| 246 |
unsigned disasm16(bx_address cs_base, bx_address ip, const Bit8u *instr, char *disbuf) |
| 247 |
{ return disasm(0, 0, cs_base, ip, instr, disbuf); } |
| 248 |
|
| 249 |
unsigned disasm32(bx_address cs_base, bx_address ip, const Bit8u *instr, char *disbuf) |
| 250 |
{ return disasm(1, 0, cs_base, ip, instr, disbuf); } |
| 251 |
|
| 252 |
unsigned disasm64(bx_address cs_base, bx_address ip, const Bit8u *instr, char *disbuf) |
| 253 |
{ return disasm(1, 1, cs_base, ip, instr, disbuf); } |
| 254 |
|
| 255 |
x86_insn decode(bx_bool is_32, bx_bool is_64, bx_address cs_base, bx_address ip, const Bit8u *instr, char *disbuf); |
| 256 |
|
| 257 |
x86_insn decode16(bx_address cs_base, bx_address ip, const Bit8u *instr, char *disbuf) |
| 258 |
{ return decode(0, 0, cs_base, ip, instr, disbuf); } |
| 259 |
|
| 260 |
x86_insn decode32(bx_address cs_base, bx_address ip, const Bit8u *instr, char *disbuf) |
| 261 |
{ return decode(1, 0, cs_base, ip, instr, disbuf); } |
| 262 |
|
| 263 |
x86_insn decode64(bx_address cs_base, bx_address ip, const Bit8u *instr, char *disbuf) |
| 264 |
{ return decode(1, 1, cs_base, ip, instr, disbuf); } |
| 265 |
|
| 266 |
void set_syntax_intel(); |
| 267 |
void set_syntax_att(); |
| 268 |
|
| 269 |
void set_offset_mode_hex(bx_bool mode) { offset_mode_hex = mode; } |
| 270 |
void set_mem_datasize_print(bx_bool mode) { print_mem_datasize = mode; } |
| 271 |
|
| 272 |
void toggle_syntax_mode(); |
| 273 |
|
| 274 |
private: |
| 275 |
bx_bool intel_mode, offset_mode_hex, print_mem_datasize; |
| 276 |
|
| 277 |
const char **general_16bit_regname; |
| 278 |
const char **general_8bit_regname; |
| 279 |
const char **general_32bit_regname; |
| 280 |
const char **general_8bit_regname_rex; |
| 281 |
const char **general_64bit_regname; |
| 282 |
|
| 283 |
const char **segment_name; |
| 284 |
const char **index16; |
| 285 |
const char **vector_reg_name; |
| 286 |
|
| 287 |
const char *sreg_mod00_base32[16]; |
| 288 |
const char *sreg_mod01or10_base32[16]; |
| 289 |
const char *sreg_mod00_rm16[8]; |
| 290 |
const char *sreg_mod01or10_rm16[8]; |
| 291 |
|
| 292 |
private: |
| 293 |
|
| 294 |
bx_address db_eip, db_cs_base; |
| 295 |
|
| 296 |
const Bit8u *instruction; |
| 297 |
|
| 298 |
char *disbufptr; |
| 299 |
|
| 300 |
BxDisasmResolveModrmPtr_t resolve_modrm; |
| 301 |
|
| 302 |
BX_CPP_INLINE Bit8u fetch_byte() { |
| 303 |
db_eip++; |
| 304 |
return(*instruction++); |
| 305 |
}; |
| 306 |
|
| 307 |
BX_CPP_INLINE Bit8u peek_byte() { |
| 308 |
return(*instruction); |
| 309 |
}; |
| 310 |
|
| 311 |
BX_CPP_INLINE Bit16u fetch_word() { |
| 312 |
Bit8u b0 = * (Bit8u *) instruction++; |
| 313 |
Bit8u b1 = * (Bit8u *) instruction++; |
| 314 |
Bit16u ret16 = (b1<<8) | b0; |
| 315 |
db_eip += 2; |
| 316 |
return(ret16); |
| 317 |
}; |
| 318 |
|
| 319 |
BX_CPP_INLINE Bit32u fetch_dword() { |
| 320 |
Bit8u b0 = * (Bit8u *) instruction++; |
| 321 |
Bit8u b1 = * (Bit8u *) instruction++; |
| 322 |
Bit8u b2 = * (Bit8u *) instruction++; |
| 323 |
Bit8u b3 = * (Bit8u *) instruction++; |
| 324 |
Bit32u ret32 = (b3<<24) | (b2<<16) | (b1<<8) | b0; |
| 325 |
db_eip += 4; |
| 326 |
return(ret32); |
| 327 |
}; |
| 328 |
|
| 329 |
BX_CPP_INLINE Bit64u fetch_qword() { |
| 330 |
Bit64u d0 = fetch_dword(); |
| 331 |
Bit64u d1 = fetch_dword(); |
| 332 |
Bit64u ret64 = (d1<<32) | d0; |
| 333 |
return(ret64); |
| 334 |
}; |
| 335 |
|
| 336 |
void dis_putc(char symbol); |
| 337 |
void dis_sprintf(const char *fmt, ...); |
| 338 |
void decode_modrm(x86_insn *insn); |
| 339 |
unsigned decode_vex(x86_insn *insn); |
| 340 |
unsigned decode_evex(x86_insn *insn); |
| 341 |
unsigned decode_xop(x86_insn *insn); |
| 342 |
|
| 343 |
void resolve16_mod0 (const x86_insn *insn, unsigned mode); |
| 344 |
void resolve16_mod1or2(const x86_insn *insn, unsigned mode); |
| 345 |
|
| 346 |
void resolve32_mod0 (const x86_insn *insn, unsigned mode); |
| 347 |
void resolve32_mod1or2(const x86_insn *insn, unsigned mode); |
| 348 |
|
| 349 |
void resolve32_mod0_rm4 (const x86_insn *insn, unsigned mode); |
| 350 |
void resolve32_mod1or2_rm4(const x86_insn *insn, unsigned mode); |
| 351 |
|
| 352 |
void resolve64_mod0 (const x86_insn *insn, unsigned mode); |
| 353 |
void resolve64_mod1or2(const x86_insn *insn, unsigned mode); |
| 354 |
|
| 355 |
void resolve64_mod0_rm4 (const x86_insn *insn, unsigned mode); |
| 356 |
void resolve64_mod1or2_rm4(const x86_insn *insn, unsigned mode); |
| 357 |
|
| 358 |
void initialize_modrm_segregs(); |
| 359 |
|
| 360 |
void print_datasize(unsigned mode); |
| 361 |
|
| 362 |
void print_memory_access16(int datasize, |
| 363 |
const char *seg, const char *index, Bit16u disp); |
| 364 |
void print_memory_access32(int datasize, |
| 365 |
const char *seg, const char *base, const char *index, int scale, Bit32s disp); |
| 366 |
void print_memory_access64(int datasize, |
| 367 |
const char *seg, const char *base, const char *index, int scale, Bit32s disp); |
| 368 |
|
| 369 |
void print_disassembly_intel(const x86_insn *insn, const BxDisasmOpcodeInfo_t *entry); |
| 370 |
void print_disassembly_att (const x86_insn *insn, const BxDisasmOpcodeInfo_t *entry); |
| 371 |
|
| 372 |
public: |
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
|
| 435 |
|
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
|
| 444 |
|
| 445 |
void Apw(const x86_insn *insn); |
| 446 |
void Apd(const x86_insn *insn); |
| 447 |
|
| 448 |
|
| 449 |
void AL_Reg(const x86_insn *insn); |
| 450 |
void CL_Reg(const x86_insn *insn); |
| 451 |
|
| 452 |
|
| 453 |
void AX_Reg(const x86_insn *insn); |
| 454 |
void DX_Reg(const x86_insn *insn); |
| 455 |
|
| 456 |
|
| 457 |
void EAX_Reg(const x86_insn *insn); |
| 458 |
|
| 459 |
|
| 460 |
void RAX_Reg(const x86_insn *insn); |
| 461 |
void RCX_Reg(const x86_insn *insn); |
| 462 |
|
| 463 |
|
| 464 |
void CS(const x86_insn *insn); |
| 465 |
void DS(const x86_insn *insn); |
| 466 |
void ES(const x86_insn *insn); |
| 467 |
void SS(const x86_insn *insn); |
| 468 |
void FS(const x86_insn *insn); |
| 469 |
void GS(const x86_insn *insn); |
| 470 |
|
| 471 |
|
| 472 |
void Sw(const x86_insn *insn); |
| 473 |
|
| 474 |
|
| 475 |
void Cd(const x86_insn *insn); |
| 476 |
void Cq(const x86_insn *insn); |
| 477 |
|
| 478 |
|
| 479 |
void Dd(const x86_insn *insn); |
| 480 |
void Dq(const x86_insn *insn); |
| 481 |
|
| 482 |
|
| 483 |
void Reg8(const x86_insn *insn); |
| 484 |
|
| 485 |
|
| 486 |
void RX(const x86_insn *insn); |
| 487 |
|
| 488 |
|
| 489 |
void ERX(const x86_insn *insn); |
| 490 |
|
| 491 |
|
| 492 |
void RRX(const x86_insn *insn); |
| 493 |
|
| 494 |
|
| 495 |
void Eb(const x86_insn *insn); |
| 496 |
void Ew(const x86_insn *insn); |
| 497 |
void Ed(const x86_insn *insn); |
| 498 |
void Eq(const x86_insn *insn); |
| 499 |
void Ey(const x86_insn *insn); |
| 500 |
void Ebd(const x86_insn *insn); |
| 501 |
void Ewd(const x86_insn *insn); |
| 502 |
void Edq(const x86_insn *insn); |
| 503 |
|
| 504 |
|
| 505 |
void Gb(const x86_insn *insn); |
| 506 |
void Gw(const x86_insn *insn); |
| 507 |
void Gd(const x86_insn *insn); |
| 508 |
void Gq(const x86_insn *insn); |
| 509 |
void Gy(const x86_insn *insn); |
| 510 |
|
| 511 |
|
| 512 |
void By(const x86_insn *insn); |
| 513 |
|
| 514 |
|
| 515 |
void I1(const x86_insn *insn); |
| 516 |
void Ib(const x86_insn *insn); |
| 517 |
void Iw(const x86_insn *insn); |
| 518 |
void Id(const x86_insn *insn); |
| 519 |
void Iq(const x86_insn *insn); |
| 520 |
|
| 521 |
|
| 522 |
void IbIb(const x86_insn *insn); |
| 523 |
void IwIb(const x86_insn *insn); |
| 524 |
|
| 525 |
|
| 526 |
void sIbw(const x86_insn *insn); |
| 527 |
void sIbd(const x86_insn *insn); |
| 528 |
void sIbq(const x86_insn *insn); |
| 529 |
void sIdq(const x86_insn *insn); |
| 530 |
|
| 531 |
|
| 532 |
void ST0(const x86_insn *insn); |
| 533 |
void STi(const x86_insn *insn); |
| 534 |
|
| 535 |
|
| 536 |
void Rw(const x86_insn *insn); |
| 537 |
void Rd(const x86_insn *insn); |
| 538 |
void Rq(const x86_insn *insn); |
| 539 |
void Ry(const x86_insn *insn); |
| 540 |
|
| 541 |
|
| 542 |
void Pq(const x86_insn *insn); |
| 543 |
|
| 544 |
|
| 545 |
void Qd(const x86_insn *insn); |
| 546 |
void Qq(const x86_insn *insn); |
| 547 |
void Vq(const x86_insn *insn); |
| 548 |
void Nq(const x86_insn *insn); |
| 549 |
|
| 550 |
|
| 551 |
void Ups(const x86_insn *insn); |
| 552 |
void Upd(const x86_insn *insn); |
| 553 |
void Udq(const x86_insn *insn); |
| 554 |
void Uq(const x86_insn *insn); |
| 555 |
|
| 556 |
void Vdq(const x86_insn *insn); |
| 557 |
void Vss(const x86_insn *insn); |
| 558 |
void Vsd(const x86_insn *insn); |
| 559 |
void Vps(const x86_insn *insn); |
| 560 |
void Vpd(const x86_insn *insn); |
| 561 |
|
| 562 |
void VIb(const x86_insn *insn); |
| 563 |
|
| 564 |
|
| 565 |
void Wb(const x86_insn *insn); |
| 566 |
void Ww(const x86_insn *insn); |
| 567 |
void Wd(const x86_insn *insn); |
| 568 |
void Wq(const x86_insn *insn); |
| 569 |
|
| 570 |
void Wdq(const x86_insn *insn); |
| 571 |
void Wss(const x86_insn *insn); |
| 572 |
void Wsd(const x86_insn *insn); |
| 573 |
void Wps(const x86_insn *insn); |
| 574 |
void Wpd(const x86_insn *insn); |
| 575 |
|
| 576 |
|
| 577 |
void Hdq(const x86_insn *insn); |
| 578 |
void Hps(const x86_insn *insn); |
| 579 |
void Hpd(const x86_insn *insn); |
| 580 |
void Hss(const x86_insn *insn); |
| 581 |
void Hsd(const x86_insn *insn); |
| 582 |
|
| 583 |
|
| 584 |
void OP_O(const x86_insn *insn, unsigned size); |
| 585 |
void Ob(const x86_insn *insn); |
| 586 |
void Ow(const x86_insn *insn); |
| 587 |
void Od(const x86_insn *insn); |
| 588 |
void Oq(const x86_insn *insn); |
| 589 |
|
| 590 |
|
| 591 |
void OP_M(const x86_insn *insn, unsigned size); |
| 592 |
void Ma(const x86_insn *insn); |
| 593 |
void Mp(const x86_insn *insn); |
| 594 |
void Ms(const x86_insn *insn); |
| 595 |
void Mx(const x86_insn *insn); |
| 596 |
void Mb(const x86_insn *insn); |
| 597 |
void Mw(const x86_insn *insn); |
| 598 |
void Md(const x86_insn *insn); |
| 599 |
void Mq(const x86_insn *insn); |
| 600 |
void Mt(const x86_insn *insn); |
| 601 |
void Mdq(const x86_insn *insn); |
| 602 |
void Mps(const x86_insn *insn); |
| 603 |
void Mpd(const x86_insn *insn); |
| 604 |
void Mss(const x86_insn *insn); |
| 605 |
void Msd(const x86_insn *insn); |
| 606 |
|
| 607 |
|
| 608 |
void VSib(const x86_insn *insn); |
| 609 |
|
| 610 |
|
| 611 |
void OP_X(const x86_insn *insn, unsigned size); |
| 612 |
void Xb(const x86_insn *insn); |
| 613 |
void Xw(const x86_insn *insn); |
| 614 |
void Xd(const x86_insn *insn); |
| 615 |
void Xq(const x86_insn *insn); |
| 616 |
|
| 617 |
|
| 618 |
void OP_Y(const x86_insn *insn, unsigned size); |
| 619 |
void Yb(const x86_insn *insn); |
| 620 |
void Yw(const x86_insn *insn); |
| 621 |
void Yd(const x86_insn *insn); |
| 622 |
void Yq(const x86_insn *insn); |
| 623 |
|
| 624 |
|
| 625 |
void OP_sY(const x86_insn *insn, unsigned size); |
| 626 |
void sYq(const x86_insn *insn); |
| 627 |
void sYdq(const x86_insn *insn); |
| 628 |
|
| 629 |
|
| 630 |
void Jb(const x86_insn *insn); |
| 631 |
void Jw(const x86_insn *insn); |
| 632 |
void Jd(const x86_insn *insn); |
| 633 |
}; |
| 634 |
|
| 635 |
#endif |