pub struct GbStack16;Expand description
Helper struct for manipulating the GameBoy stack from microcode.
Trait Implementations§
Source§impl MicrocodeReadable for GbStack16
When used as a MicrocodeReadable, GbStack16 acts as a pop operation. A 16 bit
value will be read out from the location of the stack pointer, and the stack pointer
will be incremented by 2 (the stack starts at the end of memory and moves down).
impl MicrocodeReadable for GbStack16
When used as a MicrocodeReadable, GbStack16 acts as a pop operation. A 16 bit
value will be read out from the location of the stack pointer, and the stack pointer
will be incremented by 2 (the stack starts at the end of memory and moves down).
fn to_read(self) -> InstrBuilder
Source§impl MicrocodeWritable for GbStack16
When used as a MicrocodeWritable, GbStack16 acts as a push operation. A 16 bit
value will be popped from the microcode stack, the stack pointer will be decremented
by 2, and the value will be written to the new location of the stack pointer.
impl MicrocodeWritable for GbStack16
When used as a MicrocodeWritable, GbStack16 acts as a push operation. A 16 bit
value will be popped from the microcode stack, the stack pointer will be decremented
by 2, and the value will be written to the new location of the stack pointer.
fn to_write(self) -> InstrBuilder
Auto Trait Implementations§
impl Freeze for GbStack16
impl RefUnwindSafe for GbStack16
impl Send for GbStack16
impl Sync for GbStack16
impl Unpin for GbStack16
impl UnwindSafe for GbStack16
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