Struct mos6502_model::machine::Cpu[][src]

pub struct Cpu {
    pub pc: Address,
    pub sp: u8,
    pub acc: u8,
    pub x: u8,
    pub y: u8,
    pub status: StatusRegister,
}

Fields

pc: Addresssp: u8acc: u8x: u8y: u8status: 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]

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]

pub fn step<M: Memory>(&mut self, memory: &mut M) -> Result<u8, UnknownOpcode>[src]

Trait Implementations

impl Clone for Cpu[src]

impl Debug for Cpu[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.