use super::{OpCode, Operand};
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub struct Instruction {
pub offset: usize,
pub opcode: OpCode,
pub operand: Option<Operand>,
}
impl Instruction {
#[must_use]
pub fn new(offset: usize, opcode: OpCode, operand: Option<Operand>) -> Self {
Self {
offset,
opcode,
operand,
}
}
}