pub struct RegWrite {
pub cycle: u64,
pub pc: u16,
pub value: u8,
pub origin: WriteOrigin,
}Expand description
One register write: the byte, the CPU cycle, and the instruction that did it.
cycle is the CPU cycle counter at the writing instruction, which is what
makes a record comparable against the Trace Logger and the Event Viewer for
the same frame. Mirrors rustynes_ppu::provenance::WriteAttrib, which
carries the same three fields for VRAM/OAM/palette bytes.
Fields§
§cycle: u64CPU cycle count at the write.
pc: u16Program counter of the writing instruction. Meaningful only when
Self::origin is WriteOrigin::Instruction.
value: u8The byte written, as the CPU put it on the bus.
origin: WriteOriginWhat performed the write.
Trait Implementations§
impl Copy for RegWrite
impl Eq for RegWrite
impl StructuralPartialEq for RegWrite
Auto Trait Implementations§
impl Freeze for RegWrite
impl RefUnwindSafe for RegWrite
impl Send for RegWrite
impl Sync for RegWrite
impl Unpin for RegWrite
impl UnsafeUnpin for RegWrite
impl UnwindSafe for RegWrite
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