pub(super) fn from_ycode(code: u8) -> Self {
        match code {
            0 => Self::Add,
            1 => Self::AddCarry,
            2 => Self::Sub,
            3 => Self::SubCarry,
            4 => Self::And,
            5 => Self::Xor,
            6 => Self::Or,
            7 => Self::Compare,
            _ => panic!("Unrecognized ALU operation type (y code) {}", code),
        }
    }
/// Get the ALU operation type for the given opcode. Panics if the code is greater than 7.
Get the ALU operation type for the given opcode. Panics if the code is greater than 7.
Get the ALU operation type for the given opcode . Panics if the code is greater than 7 .
pub(super) fn from_ycode(code: u8) -> Self {
        match code {
            0 => Self::Add,
            1 => Self::AddCarry,
            2 => Self::Sub,
            3 => Self::SubCarry,
            4 => Self::And,
            5 => Self::Xor,
            6 => Self::Or,
            7 => Self::Compare,
            _ => panic!("Unrecognized ALU operation type (y code) {}", code),
        }
    }
pub ( super ) fn from_ycode ( code : u8 ) -> Self { match code { 0 => Self :: Add , 1 => Self :: AddCarry , 2 => Self :: Sub , 3 => Self :: SubCarry , 4 => Self :: And , 5 => Self :: Xor , 6 => Self :: Or , 7 => Self :: Compare , _ => panic ! ( " " code ) , } }
Get the ALU operation type for the given opcode.
Get the ALU operation type for the given opcode .
code
u8
code
u8