pub enum ByteRegisterTarget {
A,
B,
C,
D,
E,
H,
L,
HLIndirect,
}Expand description
A operand that can either target a 8-bit register (excluding F) or the memory address referenced by the HL register.
Variants§
Trait Implementations§
Source§impl Clone for ByteRegisterTarget
impl Clone for ByteRegisterTarget
Source§fn clone(&self) -> ByteRegisterTarget
fn clone(&self) -> ByteRegisterTarget
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 ByteRegisterTarget
impl Debug for ByteRegisterTarget
Source§impl Disassemble for ByteRegisterTarget
impl Disassemble for ByteRegisterTarget
fn disassemble(&self) -> String
Source§impl EmbeddableParam for ByteRegisterTarget
impl EmbeddableParam for ByteRegisterTarget
Source§fn extract(value: u8) -> Result<ByteRegisterTarget, ParseError>
fn extract(value: u8) -> Result<ByteRegisterTarget, 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 PartialEq for ByteRegisterTarget
impl PartialEq for ByteRegisterTarget
Source§impl TryFrom<ByteRegisterTarget> for ByteRegister
impl TryFrom<ByteRegisterTarget> for ByteRegister
impl Copy for ByteRegisterTarget
impl Eq for ByteRegisterTarget
impl StructuralPartialEq for ByteRegisterTarget
Auto Trait Implementations§
impl Freeze for ByteRegisterTarget
impl RefUnwindSafe for ByteRegisterTarget
impl Send for ByteRegisterTarget
impl Sync for ByteRegisterTarget
impl Unpin for ByteRegisterTarget
impl UnsafeUnpin for ByteRegisterTarget
impl UnwindSafe for ByteRegisterTarget
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