pub enum Operand8 {
Show 16 variants
B,
C,
D,
E,
H,
L,
A,
AddrHL,
AddrBC,
AddrDE,
AddrHLInc,
AddrHLDec,
Immediate,
AddrImmediate,
AddrRelC,
AddrRelImmediate,
}Expand description
8 bit operand. Either the source or destination of an 8 bit operation.
Variants§
B
Normal register B.
C
Normal register C.
D
Normal register D.
E
Normal register E.
H
Normal register High.
L
Normal register Low.
A
Accumulator register.
AddrHL
Dereference HL.
AddrBC
Dereference BC.
AddrDE
Dereference DE.
AddrHLInc
Dereference HL then increment HL.
AddrHLDec
Dereference HL then decrement HL.
Immediate
Load value from immediate (and advance program counter). Cannot be used to store. Will panic if used as the destination operand.
AddrImmediate
Dereference a 16 bit immediate value.
AddrRelC
Dereference 0xff00 + register C.
AddrRelImmediate
Dereference 0xff00 + 8 bit immediate.
Trait Implementations§
Source§impl MicrocodeReadable for Operand8
As a MicrocodeReadable, Operand8 will result in a u8 being pushed onto the microcode
stack from the appropriate source.
impl MicrocodeReadable for Operand8
As a MicrocodeReadable, Operand8 will result in a u8 being pushed onto the microcode
stack from the appropriate source.
fn to_read(self) -> InstrBuilder
Source§impl MicrocodeWritable for Operand8
As a MicrocodeWritable, Operand8 will result in a u8 popped off of the stack and
written to the appropriate destination.
impl MicrocodeWritable for Operand8
As a MicrocodeWritable, Operand8 will result in a u8 popped off of the stack and
written to the appropriate destination.