Struct rs6502::Cpu [] [src]

pub struct Cpu {
    pub memory: MemoryBus,
    pub registers: Registers,
    pub flags: StatusFlags,
    pub stack: Stack,
}

A representation of a 6502 microprocessor

Fields

Methods

impl Cpu
[src]

Returns a default instance of a Cpu

Loads code into the Cpu main memory at an optional offset. If no offset is provided, the Cpu will, by default, load the code into main memory at 0xC000

Runs N instructions of code through the Cpu

Runs a single instruction of code through the Cpu

Execute the Non-Maskable Interrupt handler. This ignores the interrupt flag and forces execution to the NMI

Execute the Interrupt ReQuest handler if we currently are accepting maskable interrupts. Ignore it otherwise.