15 #ifndef included_asm_x86_h 16 #define included_asm_x86_h 39 #define X86_INSN_FLAG_DEFAULT_64_BIT (1 << 0) 40 #define X86_INSN_FLAG_SET_SSE_GROUP(n) ((n) << 5) 41 #define X86_INSN_FLAG_GET_SSE_GROUP(f) (((f) >> 5) & 0x1f) 42 #define X86_INSN_FLAG_SET_MODRM_REG_GROUP(n) (((n) & 0x3f) << 10) 43 #define X86_INSN_FLAG_GET_MODRM_REG_GROUP(f) (((f) >> 10) & 0x3f) 53 #define foreach_x86_legacy_prefix \ 54 _ (OPERAND_SIZE, 0x66) \ 55 _ (ADDRESS_SIZE, 0x67) \ 56 _ (SEGMENT_CS, 0x2e) \ 57 _ (SEGMENT_DS, 0x3e) \ 58 _ (SEGMENT_ES, 0x26) \ 59 _ (SEGMENT_FS, 0x64) \ 60 _ (SEGMENT_GS, 0x65) \ 61 _ (SEGMENT_SS, 0x36) \ 66 #define foreach_x86_insn_parse_flag \ 75 _ (OPERAND_SIZE_64, 0) 79 #define _(f,o) X86_INSN_FLAG_BIT_##f, 86 #define _(f,o) X86_INSN_##f = 1 << X86_INSN_FLAG_BIT_##f, static uword x86_insn_operand_is_valid(x86_insn_t *i, uword o)
x86_insn_operand_t operands[3]
#define foreach_x86_insn_parse_flag
u8 log2_effective_address_bytes
u8 log2_effective_operand_bytes
#define foreach_x86_legacy_prefix
format_function_t format_x86_insn_parse
x86_insn_parse_flag_bit_t
u8 * x86_insn_parse(x86_insn_parse_t *p, u8 *code_start)