pub struct InstructionInfo { /* private fields */ }
Expand description
Contains information about an instruction, eg. read/written registers and memory locations, operand accesses.
Created by an InstructionInfoFactory
.
Implementations§
Source§impl InstructionInfo
impl InstructionInfo
Sourcepub fn used_registers(&self) -> &[UsedRegister]
pub fn used_registers(&self) -> &[UsedRegister]
Gets all accessed registers. This method doesn’t return all accessed registers if is_save_restore_instruction()
is true
.
Some instructions have a r16
/r32
operand but only use the low 8 bits of the register. In that case
this method returns the 8-bit register even if it’s SPL
, BPL
, SIL
, DIL
and the
instruction was decoded in 16 or 32-bit mode. This is more accurate than returning the r16
/r32
register. Example instructions that do this: PINSRB
, ARPL
Sourcepub fn used_memory(&self) -> &[UsedMemory]
pub fn used_memory(&self) -> &[UsedMemory]
Gets all accessed memory locations
Sourcepub const fn op0_access(&self) -> OpAccess
pub const fn op0_access(&self) -> OpAccess
Operand #0 access
Sourcepub const fn op1_access(&self) -> OpAccess
pub const fn op1_access(&self) -> OpAccess
Operand #1 access
Sourcepub const fn op2_access(&self) -> OpAccess
pub const fn op2_access(&self) -> OpAccess
Operand #2 access
Sourcepub const fn op3_access(&self) -> OpAccess
pub const fn op3_access(&self) -> OpAccess
Operand #3 access
Sourcepub const fn op4_access(&self) -> OpAccess
pub const fn op4_access(&self) -> OpAccess
Operand #4 access
Trait Implementations§
Source§impl Clone for InstructionInfo
impl Clone for InstructionInfo
Source§fn clone(&self) -> InstructionInfo
fn clone(&self) -> InstructionInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InstructionInfo
impl RefUnwindSafe for InstructionInfo
impl Send for InstructionInfo
impl Sync for InstructionInfo
impl Unpin for InstructionInfo
impl UnwindSafe for InstructionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more