Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrakisk committed Nov 9, 2024
1 parent 42e845b commit 63a69d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpu/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion src/cpu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63a69d0

Please sign in to comment.