Enum iced_x86::ConditionCode
source · pub enum ConditionCode {
Show 17 variants
None = 0,
o = 1,
no = 2,
b = 3,
ae = 4,
e = 5,
ne = 6,
be = 7,
a = 8,
s = 9,
ns = 10,
p = 11,
np = 12,
l = 13,
ge = 14,
le = 15,
g = 16,
}
Expand description
Instruction condition code (used by Jcc
, SETcc
, CMOVcc
, CMPccXADD
, LOOPcc
)
Variants§
None = 0
The instruction doesn’t have a condition code
o = 1
Overflow (OF=1
)
no = 2
Not overflow (OF=0
)
b = 3
Below (unsigned) (CF=1
)
ae = 4
Above or equal (unsigned) (CF=0
)
e = 5
Equal / zero (ZF=1
)
ne = 6
Not equal / zero (ZF=0
)
be = 7
Below or equal (unsigned) (CF=1 or ZF=1
)
a = 8
Above (unsigned) (CF=0 and ZF=0
)
s = 9
Signed (SF=1
)
ns = 10
Not signed (SF=0
)
p = 11
Parity (PF=1
)
np = 12
Not parity (PF=0
)
l = 13
Less (signed) (SF!=OF
)
ge = 14
Greater than or equal (signed) (SF=OF
)
le = 15
Less than or equal (signed) (ZF=1 or SF!=OF
)
g = 16
Greater (signed) (ZF=0 and SF=OF
)
Implementations§
source§impl ConditionCode
impl ConditionCode
sourcepub fn values(
) -> impl Iterator<Item = ConditionCode> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
pub fn values( ) -> impl Iterator<Item = ConditionCode> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
Iterates over all ConditionCode
enum values
Trait Implementations§
source§impl Clone for ConditionCode
impl Clone for ConditionCode
source§fn clone(&self) -> ConditionCode
fn clone(&self) -> ConditionCode
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 moresource§impl Debug for ConditionCode
impl Debug for ConditionCode
source§impl Default for ConditionCode
impl Default for ConditionCode
source§impl<'de> Deserialize<'de> for ConditionCode
impl<'de> Deserialize<'de> for ConditionCode
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ConditionCode
impl Hash for ConditionCode
source§impl Ord for ConditionCode
impl Ord for ConditionCode
source§fn cmp(&self, other: &ConditionCode) -> Ordering
fn cmp(&self, other: &ConditionCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ConditionCode
impl PartialEq for ConditionCode
source§fn eq(&self, other: &ConditionCode) -> bool
fn eq(&self, other: &ConditionCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConditionCode
impl PartialOrd for ConditionCode
source§fn partial_cmp(&self, other: &ConditionCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ConditionCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ConditionCode
impl Serialize for ConditionCode
source§impl TryFrom<usize> for ConditionCode
impl TryFrom<usize> for ConditionCode
impl Copy for ConditionCode
impl Eq for ConditionCode
impl StructuralEq for ConditionCode
impl StructuralPartialEq for ConditionCode
Auto Trait Implementations§
impl RefUnwindSafe for ConditionCode
impl Send for ConditionCode
impl Sync for ConditionCode
impl Unpin for ConditionCode
impl UnwindSafe for ConditionCode
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