pub struct InterruptRec {
pub is_nmi: bool,
pub vector: u16,
}Expand description
v1.2.0 (Workstream E, T-110-E1) — one interrupt-service record for the Lua
onNmi / onIrq callbacks: the service direction + the vector the CPU
fetched its new PC from.
Captured at the commit point — [Bus::notify_irq_service], called once per
real interrupt entry right before the CPU reads the service vector. This is
the committed service (the same point the IRQ trace records), NOT the
speculative poll_nmi / poll_irq sampler that ADR 0010 flagged as
unreliable — so a script that watches onNmi/onIrq sees exactly the
interrupts the CPU actually serviced this frame, in order. Output-only and
gated behind interrupt_logging; the host (Lua engine) enables it only
while onNmi/onIrq callbacks are registered.
Fields§
§is_nmi: booltrue for an NMI service entry ($FFFA), false for an IRQ/BRK
service entry ($FFFE).
vector: u16The service vector the CPU fetched its new PC from ($FFFA for an NMI,
$FFFE for IRQ/BRK).
Trait Implementations§
Source§impl Clone for InterruptRec
impl Clone for InterruptRec
Source§fn clone(&self) -> InterruptRec
fn clone(&self) -> InterruptRec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more