#[repr(u8)]pub enum Flag {
S = 128,
Z = 64,
F5 = 32,
H = 16,
F3 = 8,
PV = 4,
N = 2,
C = 1,
}
Expand description
Represents individual Z80 status flags, with their masks as their values.
Variants§
Implementations§
source§impl Flag
impl Flag
pub const SIGN: Self = Flag::S
pub const ZERO: Self = Flag::Z
pub const BIT5: Self = Flag::F5
pub const HALF_CARRY: Self = Flag::H
pub const BIT3: Self = Flag::F3
pub const PARITY: Self = Flag::PV
pub const OVERFLOW: Self = Flag::PV
pub const SUBTRACT: Self = Flag::N
pub const CARRY: Self = Flag::C
Trait Implementations§
source§impl PartialEq for Flag
impl PartialEq for Flag
impl Copy for Flag
impl StructuralPartialEq for Flag
Auto Trait Implementations§
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnwindSafe for Flag
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