Struct mos6502_model::machine::Cpu [−][src]
Fields
pc: Address
sp: u8
acc: u8
x: u8
y: u8
status: StatusRegister
Implementations
impl Cpu
[src]
pub fn new() -> Self
[src]
pub fn retrieve_nmi_return_address_during_nmi<MRO: MemoryReadOnly>(
&self,
memory: &MRO
) -> Option<Address>
[src]
&self,
memory: &MRO
) -> Option<Address>
pub fn nmi<M: Memory>(&mut self, memory: &mut M)
[src]
pub fn push_stack_u8<M: Memory>(&mut self, memory: &mut M, value: u8)
[src]
pub fn pop_stack_u8<M: Memory>(&mut self, memory: &mut M) -> u8
[src]
pub fn start<M: Memory>(&mut self, memory: &mut M)
[src]
pub fn run_for_cycles<M: Memory>(
&mut self,
memory: &mut M,
num_cycles: usize
) -> Result<usize, UnknownOpcode>
[src]
&mut self,
memory: &mut M,
num_cycles: usize
) -> Result<usize, UnknownOpcode>
pub fn step<M: Memory>(&mut self, memory: &mut M) -> Result<u8, UnknownOpcode>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cpu
impl Send for Cpu
impl Sync for Cpu
impl Unpin for Cpu
impl UnwindSafe for Cpu
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>,