#[repr(u8)]pub enum ConditionCode {
Show 16 variants
O = 0,
NO = 1,
B = 2,
NB = 3,
Z = 4,
NZ = 5,
BE = 6,
A = 7,
S = 8,
NS = 9,
P = 10,
NP = 11,
L = 12,
GE = 13,
LE = 14,
G = 15,
}Expand description
Condition code enumeration
Defines the condition codes for conditional instructions (Jcc, SETcc, CMOVcc).
Variants§
O = 0
Overflow (OF=1)
NO = 1
No overflow (OF=0)
B = 2
Below/Carry (CF=1)
NB = 3
Not below/No carry (CF=0)
Z = 4
Equal/Zero (ZF=1)
NZ = 5
Not equal/Not zero (ZF=0)
BE = 6
Below or equal (CF=1 or ZF=1)
A = 7
Above (CF=0 and ZF=0)
S = 8
Sign (SF=1)
NS = 9
No sign (SF=0)
P = 10
Parity (PF=1)
NP = 11
No parity (PF=0)
L = 12
Less (SF!=OF)
GE = 13
Greater or equal (SF=OF)
LE = 14
Less or equal (ZF=1 or SF!=OF)
G = 15
Greater (ZF=0 and SF=OF)
Implementations§
Trait Implementations§
Source§impl Clone for ConditionCode
impl Clone for ConditionCode
Source§fn clone(&self) -> ConditionCode
fn clone(&self) -> ConditionCode
Returns a duplicate 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 Hash for ConditionCode
impl Hash for ConditionCode
Source§impl PartialEq for ConditionCode
impl PartialEq for ConditionCode
impl Copy for ConditionCode
impl Eq for ConditionCode
impl StructuralPartialEq for ConditionCode
Auto Trait Implementations§
impl Freeze for ConditionCode
impl RefUnwindSafe for ConditionCode
impl Send for ConditionCode
impl Sync for ConditionCode
impl Unpin for ConditionCode
impl UnsafeUnpin 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