pub enum Operand16 {
BC,
DE,
HL,
AF,
Sp,
Immediate,
AddrImmediate,
}Expand description
16 bit operand.
Variants§
BC
Register pair BC.
DE
Register pair DE.
HL
Register pair HL.
AF
Register pair of the accumulator + flags register.
Sp
Stack pointer.
Immediate
Load value from immediate (and advance program counter). Cannot be used to store. Will panic if used as the destination operand.
AddrImmediate
Load a 16 bit immediate (and advance program counter), then dereference that address. Note:
since no actual opcode uses (u16) as the source for a 16 bit read, this will panic if used
to load.
Trait Implementations§
Source§impl MicrocodeReadable for Operand16
As a MicrocodeReadable, Operand16 will result in a u16 being pushed onto the
microcode stack from the appropriate source.
impl MicrocodeReadable for Operand16
As a MicrocodeReadable, Operand16 will result in a u16 being pushed onto the
microcode stack from the appropriate source.
fn to_read(self) -> InstrBuilder
Source§impl MicrocodeWritable for Operand16
As a MicrocodeWritable, Operand16 will result in a u16 popped off of the stack and
written to the appropriate destination.
impl MicrocodeWritable for Operand16
As a MicrocodeWritable, Operand16 will result in a u16 popped off of the stack and
written to the appropriate destination.
fn to_write(self) -> InstrBuilder
Source§impl Ord for Operand16
impl Ord for Operand16
Source§impl PartialOrd for Operand16
impl PartialOrd for Operand16
impl Copy for Operand16
impl Eq for Operand16
impl StructuralPartialEq for Operand16
Auto Trait Implementations§
impl Freeze for Operand16
impl RefUnwindSafe for Operand16
impl Send for Operand16
impl Sync for Operand16
impl Unpin for Operand16
impl UnwindSafe for Operand16
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