Struct mos6502_model::status::Register [−][src]
Implementations
impl Register
[src]
pub fn new() -> Self
[src]
pub fn masked_with_brk_and_expansion(&self) -> u8
[src]
pub fn set(&mut self, value: u8)
[src]
pub fn set_carry(&mut self)
[src]
pub fn clear_carry(&mut self)
[src]
pub fn set_carry_to(&mut self, value: bool)
[src]
pub fn is_carry(&self) -> bool
[src]
pub fn carry_value(&self) -> u8
[src]
pub fn set_decimal(&mut self)
[src]
pub fn clear_decimal(&mut self)
[src]
pub fn is_decimal(&self) -> bool
[src]
pub fn set_zero_from_value(&mut self, value: u8)
[src]
pub fn is_zero(&self) -> bool
[src]
pub fn clear_overflow(&mut self)
[src]
pub fn is_overflow(&self) -> bool
[src]
pub fn set_overflow_to(&mut self, value: bool)
[src]
pub fn clear_negative(&mut self)
[src]
pub fn is_negative(&self) -> bool
[src]
pub fn set_negative_from_value(&mut self, value: u8)
[src]
pub fn set_interrupt_disable(&mut self)
[src]
pub fn clear_interrupt_disable(&mut self)
[src]
pub fn is_interrupt_disable(&self) -> bool
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnwindSafe for Register
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,