pub struct WriteAttrib {
pub cycle: u64,
pub pc: u16,
pub value: u8,
}Expand description
One write-attribution record: who wrote a byte, when, and with what.
cycle is the CPU cycle counter at the instruction that performed the write,
which is what makes a record comparable against the Trace Logger and the
Event Viewer for the same frame. It is not the PPU dot — the PPU position is
recoverable from the cycle and is already carried by the Event Viewer.
Fields§
§cycle: u64CPU cycle count at the writing instruction’s opcode fetch.
pc: u16Program counter of the writing instruction.
For an OAM DMA burst this is the PC of the STA $4014 that triggered it,
not a synthetic per-byte PC — 256 bytes genuinely share one cause.
value: u8The byte value stored, as stored. Palette writes are masked to 6 bits before recording, so this matches what a subsequent read returns rather than what the CPU put on the bus.
Trait Implementations§
Source§impl Clone for WriteAttrib
impl Clone for WriteAttrib
Source§fn clone(&self) -> WriteAttrib
fn clone(&self) -> WriteAttrib
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more