From 4bc18f4dd915c0f12e7eb4597b7ea742818c3f17 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 24 Aug 2020 00:54:36 -0500 Subject: [PATCH] Resolve build error --- src/instruction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instruction.rs b/src/instruction.rs index 0ac782a..8d77ad7 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -164,7 +164,7 @@ impl Instruction { ), (3, 0, _, 5, _) => Instruction::ADD( Argument::RegisterPair(RegisterPair::SP), - Argument::ImmediateByte(d), + Argument::ImmediateByte(n), ), _ => unreachable!(), }