pub struct TraceRec {
pub pc: u16,
pub a: u8,
pub x: u8,
pub y: u8,
pub s: u8,
pub p: u8,
pub cycle: u64,
}Expand description
v1.1.0 beta.2 (Workstream C, T-110-C2) — one cycle-trace record.
The CPU register file + cycle count captured just before an instruction
executes. Recorded by Nes::run_frame while tracing is enabled (the
debug-hooks feature). The frontend disassembles the instruction at pc.
Fields§
§pc: u16Program counter at instruction fetch.
a: u8Accumulator.
x: u8X index.
y: u8Y index.
s: u8Stack pointer.
p: u8Processor status bits.
cycle: u64CPU cycle count at fetch.
Trait Implementations§
impl Copy for TraceRec
impl Eq for TraceRec
impl StructuralPartialEq for TraceRec
Auto Trait Implementations§
impl Freeze for TraceRec
impl RefUnwindSafe for TraceRec
impl Send for TraceRec
impl Sync for TraceRec
impl Unpin for TraceRec
impl UnsafeUnpin for TraceRec
impl UnwindSafe for TraceRec
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