pub enum DebugWrite {
Pc(u16),
Acc(u8),
X(u8),
Y(u8),
Sp(u8),
Status(Status),
Nmi(bool),
CartIrq(bool),
FrameIrq(bool),
DmcIrq(bool),
Memory {
addr: u16,
val: u8,
},
}Expand description
A piece of console state the Debugger writes.
Every one goes to the emulation thread as an event, so the Debugger never holds a handle on the console it is drawing. The console applies them between instructions, where a register is whole and no half-executed instruction is holding a value in flight.
Variants§
Pc(u16)
The program counter, which is where the next step or resume starts from.
Acc(u8)
The accumulator.
X(u8)
The X index register.
Y(u8)
The Y index register.
Sp(u8)
The stack pointer.
Status(Status)
The status flags, all eight at once.
Nmi(bool)
Raise or drop a pending NMI, the one the CPU takes after the current instruction.
CartIrq(bool)
Raise or acknowledge the cartridge board’s IRQ.
FrameIrq(bool)
Raise or acknowledge the APU frame counter’s IRQ.
DmcIrq(bool)
Raise or acknowledge the APU DMC’s IRQ.
Memory
A byte at a CPU address, which lands only where
Bus::poke finds RAM.
Trait Implementations§
Source§impl Clone for DebugWrite
impl Clone for DebugWrite
impl Copy for DebugWrite
Source§impl Debug for DebugWrite
impl Debug for DebugWrite
impl Eq for DebugWrite
Source§impl PartialEq for DebugWrite
impl PartialEq for DebugWrite
impl StructuralPartialEq for DebugWrite
Auto Trait Implementations§
impl Forget for DebugWrite
impl Freeze for DebugWrite
impl Move for DebugWrite
impl RefUnwindSafe for DebugWrite
impl Send for DebugWrite
impl Sync for DebugWrite
impl Unpin for DebugWrite
impl UnsafeUnpin for DebugWrite
impl UnwindSafe for DebugWrite
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more