Enum iced_x86::FlowControl
source · pub enum FlowControl {
Next = 0,
UnconditionalBranch = 1,
IndirectBranch = 2,
ConditionalBranch = 3,
Return = 4,
Call = 5,
IndirectCall = 6,
Interrupt = 7,
XbeginXabortXend = 8,
Exception = 9,
}
Expand description
Control flow
Variants§
Next = 0
The next instruction that will be executed is the next instruction in the instruction stream
UnconditionalBranch = 1
It’s an unconditional branch instruction: JMP NEAR
, JMP FAR
IndirectBranch = 2
It’s an unconditional indirect branch: JMP NEAR reg
, JMP NEAR [mem]
, JMP FAR [mem]
ConditionalBranch = 3
It’s a conditional branch instruction: Jcc SHORT
, Jcc NEAR
, LOOP
, LOOPcc
, JRCXZ
, JKccD SHORT
, JKccD NEAR
Return = 4
It’s a return instruction: RET NEAR
, RET FAR
, IRET
, SYSRET
, SYSEXIT
, RSM
, SKINIT
, RDM
, UIRET
Call = 5
It’s a call instruction: CALL NEAR
, CALL FAR
, SYSCALL
, SYSENTER
, VMLAUNCH
, VMRESUME
, VMCALL
, VMMCALL
, VMGEXIT
, VMRUN
, TDCALL
, SEAMCALL
, SEAMRET
IndirectCall = 6
It’s an indirect call instruction: CALL NEAR reg
, CALL NEAR [mem]
, CALL FAR [mem]
Interrupt = 7
It’s an interrupt instruction: INT n
, INT3
, INT1
, INTO
, SMINT
, DMINT
XbeginXabortXend = 8
It’s XBEGIN
Exception = 9
It’s an invalid instruction, eg. Code::INVALID
, UD0
, UD1
, UD2
Implementations§
source§impl FlowControl
impl FlowControl
sourcepub fn values(
) -> impl Iterator<Item = FlowControl> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
pub fn values( ) -> impl Iterator<Item = FlowControl> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
Iterates over all FlowControl
enum values
Trait Implementations§
source§impl Clone for FlowControl
impl Clone for FlowControl
source§fn clone(&self) -> FlowControl
fn clone(&self) -> FlowControl
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FlowControl
impl Debug for FlowControl
source§impl Default for FlowControl
impl Default for FlowControl
source§impl<'de> Deserialize<'de> for FlowControl
impl<'de> Deserialize<'de> for FlowControl
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl Hash for FlowControl
impl Hash for FlowControl
source§impl Ord for FlowControl
impl Ord for FlowControl
source§fn cmp(&self, other: &FlowControl) -> Ordering
fn cmp(&self, other: &FlowControl) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for FlowControl
impl PartialEq for FlowControl
source§fn eq(&self, other: &FlowControl) -> bool
fn eq(&self, other: &FlowControl) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FlowControl
impl PartialOrd for FlowControl
source§fn partial_cmp(&self, other: &FlowControl) -> Option<Ordering>
fn partial_cmp(&self, other: &FlowControl) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more