pub(super) fn from_ycode(code: u8) -> Self {
        match code {
            0 => Self::RotateLeft8,
            1 => Self::RotateRight8,
            2 => Self::RotateLeft9,
            3 => Self::RotateRight9,
            4 => Self::DecimalAdjust,
            5 => Self::Compliment,
            6 => Self::SetCarryFlag,
            7 => Self::ComplimentCarryFlag,
            _ => panic!("Unrecognized ALU unary operation type (y code) {}", code),
        }
    }
/// Get the ALU unary operation type for the given opcode. Panics if the code is greater than 7.
Get the ALU unary operation type for the given opcode. Panics if the code is greater than 7.
Get the ALU unary 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::RotateLeft8,
            1 => Self::RotateRight8,
            2 => Self::RotateLeft9,
            3 => Self::RotateRight9,
            4 => Self::DecimalAdjust,
            5 => Self::Compliment,
            6 => Self::SetCarryFlag,
            7 => Self::ComplimentCarryFlag,
            _ => panic!("Unrecognized ALU unary operation type (y code) {}", code),
        }
    }
pub ( super ) fn from_ycode ( code : u8 ) -> Self { match code { 0 => Self :: RotateLeft8 , 1 => Self :: RotateRight8 , 2 => Self :: RotateLeft9 , 3 => Self :: RotateRight9 , 4 => Self :: DecimalAdjust , 5 => Self :: Compliment , 6 => Self :: SetCarryFlag , 7 => Self :: ComplimentCarryFlag , _ => panic ! ( " " code ) , } }
Get the ALU unary operation type for the given opcode.
Get the ALU unary operation type for the given opcode .
code
u8
code
u8