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!(), }