pub enum AluOp {
Add,
AddCarry,
Sub,
SubCarry,
And,
Xor,
Or,
Compare,
}Expand description
ALU Operation type.
Variants§
Trait Implementations§
Source§impl From<AluOp> for InstrBuilder
Builds the microcode for a single ALU operation. This assumes that the ALU operation’s
single u8 arg is already on the stack and handles fetching the accumulator and flags
(if needed) and applying the results.
impl From<AluOp> for InstrBuilder
Builds the microcode for a single ALU operation. This assumes that the ALU operation’s single u8 arg is already on the stack and handles fetching the accumulator and flags (if needed) and applying the results.
Source§impl Ord for AluOp
impl Ord for AluOp
Source§impl PartialOrd for AluOp
impl PartialOrd for AluOp
impl Copy for AluOp
impl Eq for AluOp
impl StructuralPartialEq for AluOp
Auto Trait Implementations§
impl Freeze for AluOp
impl RefUnwindSafe for AluOp
impl Send for AluOp
impl Sync for AluOp
impl Unpin for AluOp
impl UnwindSafe for AluOp
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