pub enum Byte {
Single(Register),
Indirect,
RAM(Wrapping<u16>),
}Expand description
Byte enumerates any one-byte region that can be specified for a read or write:
Variants§
Single(Register)
- A byte register on the CPU chip (B, C, D, E, H, L, A)
Indirect
- A byte in memory at the address contained in the
HLregister pair
RAM(Wrapping<u16>)
- A byte in memory at a specified address (usually for ops like
LXI)
Trait Implementations§
impl Copy for Byte
impl StructuralPartialEq for Byte
Auto Trait Implementations§
impl Freeze for Byte
impl RefUnwindSafe for Byte
impl Send for Byte
impl Sync for Byte
impl Unpin for Byte
impl UnwindSafe for Byte
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