Struct burst::x86::X86Instruction
[−]
[src]
#[repr(C)]pub struct X86Instruction { pub operation: InstructionOperation, pub operands: [X86Operand; 3], pub flags: u32, pub segment: SegmentRegister, pub length: usize, }
An instruction.
An instruction represents the full amount of information that we have about the instruction that has been disassembled from the binary opcode data.
Fields
operation: InstructionOperation
Which InstructionOperation
this instruction is.
operands: [X86Operand; 3]
The operands for this instruction.
flags: u32
A bit field that may contain the flags described by X86Flag
.
segment: SegmentRegister
The segment prefix. This will be either SegmentPrefix::DEFAULT
or a segment register (like SegmentPrefix::ES
).
length: usize
How many bytes in the binary opcode data are used by this instruction.
This can be used to continue disassembling at the next
instruction. An invalid instruction may have a value of
0
here.
Trait Implementations
impl Default for X86Instruction
[src]
fn default() -> X86Instruction
[src]
Returns the "default value" for a type. Read more
impl Debug for X86Instruction
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Instruction for X86Instruction
[src]
type Operation = InstructionOperation
The type of the operation for this instruction.
type Operand = X86Operand
The type of the operands for this instruction.
fn operation(&self) -> InstructionOperation
[src]
The operation carried out by this instruction.
fn mnemonic(&self) -> &str
[src]
The mnemonic for this instruction.
fn operands(&self) -> &[X86Operand]
[src]
The operands for this instruction.
fn length(&self) -> usize
[src]
How many bytes in the binary opcode data are used by this instruction. Read more