pub struct MicrocodeStack { /* private fields */ }Expand description
Stack used to implement microcode operations.
Implementations§
Source§impl MicrocodeStack
impl MicrocodeStack
Sourcepub fn pushu16(&mut self, val: u16)
pub fn pushu16(&mut self, val: u16)
Push a u16 onto the microcode stack. The low byte is pushed first followed by the high byte on top.
Sourcepub fn popu16(&mut self) -> u16
pub fn popu16(&mut self) -> u16
Pop a u16 from the microcode stack. The high byte is popped first followed by the low byte below it.
Sourcepub fn peeku16(&self) -> u16
pub fn peeku16(&self) -> u16
Peek the top u16 without popping. The top byte is treated as the high byte and the second byte is treated as the low byte.
Sourcepub fn dup(&mut self, count: usize)
pub fn dup(&mut self, count: usize)
Duplicates the specified number of bytes on the top of the stack.
Trait Implementations§
Source§impl Clone for MicrocodeStack
impl Clone for MicrocodeStack
Source§fn clone(&self) -> MicrocodeStack
fn clone(&self) -> MicrocodeStack
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MicrocodeStack
impl Debug for MicrocodeStack
Source§impl Default for MicrocodeStack
impl Default for MicrocodeStack
Source§fn default() -> MicrocodeStack
fn default() -> MicrocodeStack
Returns the “default value” for a type. Read more
Source§impl PartialEq for MicrocodeStack
impl PartialEq for MicrocodeStack
impl Eq for MicrocodeStack
impl StructuralPartialEq for MicrocodeStack
Auto Trait Implementations§
impl Freeze for MicrocodeStack
impl RefUnwindSafe for MicrocodeStack
impl Send for MicrocodeStack
impl Sync for MicrocodeStack
impl Unpin for MicrocodeStack
impl UnwindSafe for MicrocodeStack
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