pub struct TraceEntry {
pub pc: u16,
pub opcode: u8,
pub operand_bytes: Vec<u8>,
pub disassembly: String,
pub a: u8,
pub x: u8,
pub y: u8,
pub p: u8,
pub sp: u8,
pub cycles: u64,
}Expand description
Trace entry representing a single instruction execution.
Fields§
§pc: u16Program counter
opcode: u8Opcode byte
operand_bytes: Vec<u8>Operand bytes (0-2 bytes)
disassembly: StringDisassembled instruction string
a: u8Accumulator register
x: u8X register
y: u8Y register
p: u8Status register
sp: u8Stack pointer
cycles: u64Total CPU cycles
Implementations§
Trait Implementations§
Source§impl Clone for TraceEntry
impl Clone for TraceEntry
Source§fn clone(&self) -> TraceEntry
fn clone(&self) -> TraceEntry
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 TraceEntry
impl RefUnwindSafe for TraceEntry
impl Send for TraceEntry
impl Sync for TraceEntry
impl Unpin for TraceEntry
impl UnwindSafe for TraceEntry
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