From 0637b771e337a016a368054c1295f6a330b2e0c7 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Thu, 5 Aug 2021 20:04:39 -0500 Subject: [PATCH] chore(instr): implement copy and clone on instruction enum --- src/instruction.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/instruction.rs b/src/instruction.rs index 11affcf..1acdec7 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -12,6 +12,7 @@ use crate::bus::BusIo; use crate::cpu::{Cpu, Flags, HaltState, ImeState, Register as CpuRegister, RegisterPair}; #[allow(clippy::upper_case_acronyms)] +#[derive(Clone, Copy)] pub(crate) enum Instruction { NOP, STOP,