pub struct Condition {
pub n: bool,
pub z: bool,
pub p: bool,
}
Expand description
Condition code for LC-3. Because the original LC-3 machine defines each condition codes as separated bits of PSR, we don’t define it as enum, but struct with three boolean values.
Fields§
§n: bool
§z: bool
§p: bool
Implementations§
Trait Implementations§
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
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