pub enum Reg8 {
Show 17 variants
A = 0,
F = 1,
B = 2,
C = 3,
D = 4,
E = 5,
H = 6,
L = 7,
I = 8,
R = 9,
IXH = 10,
IXL = 11,
IYH = 12,
IYL = 13,
SPH = 14,
SPL = 15,
_HL = 16,
}
Expand description
8 bit registers
Variants§
A = 0
8 bit register A
F = 1
8 bit register F, can be accessed vif the flags methods
B = 2
8 bit register B
C = 3
8 bit register C
D = 4
8 bit register D
E = 5
8 bit register E
H = 6
8 bit register H, high byte of HL
L = 7
8 bit register L, low byte of HL
I = 8
8 bit register I
R = 9
8 bit register R
IXH = 10
High byte of IX
IXL = 11
Low byte of IX
IYH = 12
High byte of IY
IYL = 13
Low byte of IY
SPH = 14
High byte of SP
SPL = 15
Low byte of SP
_HL = 16
Pseudo register, has to be replaced by (HL)
Trait Implementations§
source§impl PartialEq for Reg8
impl PartialEq for Reg8
impl Copy for Reg8
impl Eq for Reg8
impl StructuralEq for Reg8
impl StructuralPartialEq for Reg8
Auto Trait Implementations§
impl RefUnwindSafe for Reg8
impl Send for Reg8
impl Sync for Reg8
impl Unpin for Reg8
impl UnwindSafe for Reg8
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