pub enum Flag {
Zero,
AddSubtract,
HalfCarry,
Carry,
}Expand description
Represents a CPU flag set after some instructions.
Note that many instructions leave flags alone, and others may repurpose them for side channel information.
Variants§
Zero
The last arithmetic operation resulted in 0
AddSubtract
The last arithmetic operation was a subtract type operation 0 = Add, 1 = Sub
HalfCarry
The last arithmetic operation contained a carry between nibbles
Carry
The last arithmetic operation overflowed or underflowed
Implementations§
Auto Trait Implementations§
impl Freeze for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnsafeUnpin 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