pub enum AccRegister {
BC,
DE,
HL,
AF,
}Expand description
16bit Register group that includes the accumalator register.
This is mainly used for operatiions that target the stack as it gives extra flexibility for targeting the stack. Note that writing to the F register in this manner only sets the high nibble of the F register.
Variants§
Trait Implementations§
Source§impl Clone for AccRegister
impl Clone for AccRegister
Source§fn clone(&self) -> AccRegister
fn clone(&self) -> AccRegister
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 AccRegister
impl Debug for AccRegister
Source§impl Disassemble for AccRegister
impl Disassemble for AccRegister
fn disassemble(&self) -> String
Source§impl EmbeddableParam for AccRegister
impl EmbeddableParam for AccRegister
Source§fn extract(value: u8) -> Result<AccRegister, ParseError>
fn extract(value: u8) -> Result<AccRegister, 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<AccRegister> for WordRegister
impl From<AccRegister> for WordRegister
Source§fn from(reg: AccRegister) -> WordRegister
fn from(reg: AccRegister) -> WordRegister
Converts to this type from the input type.
Source§impl PartialEq for AccRegister
impl PartialEq for AccRegister
impl Copy for AccRegister
impl Eq for AccRegister
impl StructuralPartialEq for AccRegister
Auto Trait Implementations§
impl Freeze for AccRegister
impl RefUnwindSafe for AccRegister
impl Send for AccRegister
impl Sync for AccRegister
impl Unpin for AccRegister
impl UnsafeUnpin for AccRegister
impl UnwindSafe for AccRegister
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