From 63a69d01887b7ff55d31b5f5c5f5a2e5f756611e Mon Sep 17 00:00:00 2001 From: lyrakisk <24938740+lyrakisk@users.noreply.github.com> Date: Sat, 9 Nov 2024 01:56:40 +0100 Subject: [PATCH] Cleanup --- src/cpu/instructions.rs | 2 +- src/cpu/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu/instructions.rs b/src/cpu/instructions.rs index 15548df..9a11044 100644 --- a/src/cpu/instructions.rs +++ b/src/cpu/instructions.rs @@ -937,7 +937,7 @@ fn rts(instruction: &Instruction, cpu: &mut CPU) -> InstructionResult { }; } -fn nop(instruction: &Instruction, cpu: &mut CPU) -> InstructionResult { +fn nop(instruction: &Instruction, _cpu: &mut CPU) -> InstructionResult { return InstructionResult { executed_cycles: instruction.cycles, }; diff --git a/src/cpu/mod.rs b/src/cpu/mod.rs index 1a54ec0..98db895 100644 --- a/src/cpu/mod.rs +++ b/src/cpu/mod.rs @@ -181,7 +181,7 @@ impl CPU { // todo: separate the check for page crossing fn branch_off_program_counter(&mut self, distance: u8) -> bool { - let mut page_crossed = false; + let page_crossed: bool; let le_bytes = self.program_counter.to_le_bytes(); // low is incremented here, because we're at the second // cycle of the instruction which has incremented the PC