Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Nov 30, 2023
1 parent 71864ef commit 9fe5967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ impl CPU {

fn alu_cp(&mut self, x: u8) {
let r = self.reg.a;
self.alu_sub(r);
self.alu_sub(x);
self.reg.a = r
}

Expand Down

0 comments on commit 9fe5967

Please sign in to comment.