pub enum StackRegister {
BC,
DE,
HL,
SP,
}Expand description
Registers group that includes the stack register
This is mainly used for operations that do not operate on the stack, such as 16-bit transfers. This is because the stack target is implicit in operations that do operate on the stack
Variants§
Trait Implementations§
Source§impl Clone for StackRegister
impl Clone for StackRegister
Source§fn clone(&self) -> StackRegister
fn clone(&self) -> StackRegister
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 StackRegister
impl Debug for StackRegister
Source§impl Disassemble for StackRegister
impl Disassemble for StackRegister
fn disassemble(&self) -> String
Source§impl EmbeddableParam for StackRegister
impl EmbeddableParam for StackRegister
Source§fn extract(value: u8) -> Result<StackRegister, ParseError>
fn extract(value: u8) -> Result<StackRegister, ParseError>
Extracts the value from a given opcode. The value should be aligned to a byte for this method
Source§fn extract_from_opcode(
opcode: u8,
pos: OpcodePosition,
) -> Result<Self, ParseError>
fn extract_from_opcode( opcode: u8, pos: OpcodePosition, ) -> Result<Self, ParseError>
Extracts a value from the given opcode.
Source§fn embed_to_opcode(&self, opcode: u8, pos: OpcodePosition) -> u8
fn embed_to_opcode(&self, opcode: u8, pos: OpcodePosition) -> u8
Embeds a value in the given opcode
Source§impl From<StackRegister> for WordRegister
impl From<StackRegister> for WordRegister
Source§fn from(reg: StackRegister) -> WordRegister
fn from(reg: StackRegister) -> WordRegister
Converts to this type from the input type.
Source§impl PartialEq for StackRegister
impl PartialEq for StackRegister
impl Copy for StackRegister
impl Eq for StackRegister
impl StructuralPartialEq for StackRegister
Auto Trait Implementations§
impl Freeze for StackRegister
impl RefUnwindSafe for StackRegister
impl Send for StackRegister
impl Sync for StackRegister
impl Unpin for StackRegister
impl UnsafeUnpin for StackRegister
impl UnwindSafe for StackRegister
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