pub struct AccessRec {
pub write: bool,
pub addr: u16,
pub value: u8,
}Expand description
v1.1.0 beta.3 (Workstream E, T-110-E2) — one CPU bus-access record for the
Lua onRead / onWrite callbacks: direction + full address + the byte.
Distinct from EventRec (which is the scanline/dot-oriented event-viewer
record): this captures every CPU read and write across the whole address
space, with the value, so a script can react to a specific access. Output-
only and gated behind access_logging; the host (Lua engine) enables it
only while onRead/onWrite callbacks are registered.
Fields§
§write: booltrue for a CPU write, false for a CPU read.
addr: u16The accessed CPU address ($0000-$FFFF).
value: u8The byte written, or the byte the read returned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccessRec
impl RefUnwindSafe for AccessRec
impl Send for AccessRec
impl Sync for AccessRec
impl Unpin for AccessRec
impl UnsafeUnpin for AccessRec
impl UnwindSafe for AccessRec
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