pub fn name(&self) -> &'static str {
        match *self {
            Instruction::Halt => "halt",
            Instruction::Io(IoOp::ReadHex) => "readH",
            Instruction::Io(IoOp::ReadChar) => "readC",
            Instruction::Io(IoOp::WriteHex) => "printH",
            Instruction::Io(IoOp::WriteChar) => "printC",
            Instruction::Shift(ShiftOp::ShiftLeft, _) => "shiftL",
            Instruction::Shift(ShiftOp::ShiftRight, _) => "shiftR",
            Instruction::Shift(ShiftOp::RotateLeft, _) => "rotL",
            Instruction::Shift(ShiftOp::RotateRight, _) => "rotR",
            Instruction::Load(_) => "load",
            Instruction::Store(_) => "store",
            Instruction::Add(_) => "add",
            Instruction::Sub(_) => "sub",
            Instruction::And(_) => "and",
            Instruction::Or(_) => "or",
            Instruction::Xor(_) => "xor",
            Instruction::Not => "not",
            Instruction::Nop => "nop",
            Instruction::Jmp(_) => "jmp",
            Instruction::Jmpe(_) => "jmpe",
            Instruction::Jmpl(_) => "jmpl",
            Instruction::Brl(_) => "brl",
        }
    }
/// Returns the name of the current instruction.
Returns the name of the current instruction.
Returns the name of the current instruction .
pub fn name(&self) -> &'static str {
        match *self {
            Instruction::Halt => "halt",
            Instruction::Io(IoOp::ReadHex) => "readH",
            Instruction::Io(IoOp::ReadChar) => "readC",
            Instruction::Io(IoOp::WriteHex) => "printH",
            Instruction::Io(IoOp::WriteChar) => "printC",
            Instruction::Shift(ShiftOp::ShiftLeft, _) => "shiftL",
            Instruction::Shift(ShiftOp::ShiftRight, _) => "shiftR",
            Instruction::Shift(ShiftOp::RotateLeft, _) => "rotL",
            Instruction::Shift(ShiftOp::RotateRight, _) => "rotR",
            Instruction::Load(_) => "load",
            Instruction::Store(_) => "store",
            Instruction::Add(_) => "add",
            Instruction::Sub(_) => "sub",
            Instruction::And(_) => "and",
            Instruction::Or(_) => "or",
            Instruction::Xor(_) => "xor",
            Instruction::Not => "not",
            Instruction::Nop => "nop",
            Instruction::Jmp(_) => "jmp",
            Instruction::Jmpe(_) => "jmpe",
            Instruction::Jmpl(_) => "jmpl",
            Instruction::Brl(_) => "brl",
        }
    }
pub fn name ( & self ) -> & ' static str { match * self { Instruction :: Halt => " " , Instruction :: Io ( IoOp :: ReadHex ) => " " , Instruction :: Io ( IoOp :: ReadChar ) => " " , Instruction :: Io ( IoOp :: WriteHex ) => " " , Instruction :: Io ( IoOp :: WriteChar ) => " " , Instruction :: Shift ( ShiftOp :: ShiftLeft , _ ) => " " , Instruction :: Shift ( ShiftOp :: ShiftRight , _ ) => " " , Instruction :: Shift ( ShiftOp :: RotateLeft , _ ) => " " , Instruction :: Shift ( ShiftOp :: RotateRight , _ ) => " " , Instruction :: Load ( _ ) => " " , Instruction :: Store ( _ ) => " " , Instruction :: Add ( _ ) => " " , Instruction :: Sub ( _ ) => " " , Instruction :: And ( _ ) => " " , Instruction :: Or ( _ ) => " " , Instruction :: Xor ( _ ) => " " , Instruction :: Not => " " , Instruction :: Nop => " " , Instruction :: Jmp ( _ ) => " " , Instruction :: Jmpe ( _ ) => " " , Instruction :: Jmpl ( _ ) => " " , Instruction :: Brl ( _ ) => " " , } }
Returns the name of the current instruction.
Returns the name of the current instruction .
&self
&self