pub struct CpuDebugView {
pub a: u8,
pub x: u8,
pub y: u8,
pub s: u8,
pub pc: u16,
pub p: u8,
pub jammed: bool,
pub cycles: u64,
}Expand description
Snapshot of CPU register file.
Fields§
§a: u8Accumulator.
x: u8X index register.
y: u8Y index register.
s: u8Stack pointer.
pc: u16Program counter.
p: u8Raw status flags.
jammed: booltrue when the CPU is jammed (illegal halt opcode).
cycles: u64Cumulative CPU cycle count.
Trait Implementations§
Source§impl Clone for CpuDebugView
impl Clone for CpuDebugView
Source§fn clone(&self) -> CpuDebugView
fn clone(&self) -> CpuDebugView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CpuDebugView
impl RefUnwindSafe for CpuDebugView
impl Send for CpuDebugView
impl Sync for CpuDebugView
impl Unpin for CpuDebugView
impl UnsafeUnpin for CpuDebugView
impl UnwindSafe for CpuDebugView
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