Struct capstone_sys::cs_x86 [−][src]
Instruction structure
Fields
prefix: [u8; 4]Instruction prefix, which can be up to 4 bytes. A prefix byte gets value 0 when irrelevant. prefix[0] indicates REP/REPNE/LOCK prefix (See X86_PREFIX_REP/REPNE/LOCK above) prefix[1] indicates segment override (irrelevant for x86_64): See X86_PREFIX_CS/SS/DS/ES/FS/GS above. prefix[2] indicates operand-size override (X86_PREFIX_OPSIZE) prefix[3] indicates address-size override (X86_PREFIX_ADDRSIZE)
opcode: [u8; 4]Instruction opcode, which can be from 1 to 4 bytes in size. This contains VEX opcode as well. An trailing opcode byte gets value 0 when irrelevant.
rex: u8REX prefix: only a non-zero value is relevant for x86_64
addr_size: u8Address size, which can be overridden with above prefix[5].
modrm: u8ModR/M byte
sib: u8SIB value, or 0 when irrelevant.
disp: i64Displacement value, valid if encoding.disp_offset != 0
sib_index: TypeSIB index register, or X86_REG_INVALID when irrelevant.
sib_scale: i8SIB scale, only applicable if sib_index is valid.
sib_base: TypeSIB base register, or X86_REG_INVALID when irrelevant.
xop_cc: x86_xop_ccXOP Code Condition
sse_cc: x86_sse_ccSSE Code Condition
avx_cc: x86_avx_ccAVX Code Condition
avx_sae: boolAVX Suppress all Exception
avx_rm: x86_avx_rmAVX static rounding mode
__bindgen_anon_1: cs_x86__bindgen_ty_1op_count: u8Number of operands of this instruction, or 0 when instruction has no operand.
operands: [cs_x86_op; 8]< operands for this instruction.
encoding: cs_x86_encoding< encoding information
Trait Implementations
impl Clone for cs_x86[src]
fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for cs_x86[src]
impl Debug for cs_x86[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,