#[repr(u8)]pub enum Condition {
NZ = 0,
Z = 8,
NC = 16,
C = 24,
PO = 32,
PE = 40,
P = 48,
M = 56,
}
Expand description
An enum of condition code suffixes.
Variants§
Implementations§
source§impl Condition
impl Condition
sourcepub const fn from_jr_subset(code: u8) -> Self
pub const fn from_jr_subset(code: u8) -> Self
Parse JR cc OPCODE into one of the conditional variants.
sourcepub const fn is_satisfied(self, flags: CpuFlags) -> bool
pub const fn is_satisfied(self, flags: CpuFlags) -> bool
Return whether flags satisfy a condition.
Trait Implementations§
source§impl PartialEq for Condition
impl PartialEq for Condition
impl Copy for Condition
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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