From 9fe5967b4d3ab20ff90c945f579ed0862fdcf593 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 30 Nov 2023 13:02:27 -0500 Subject: [PATCH] Fix typo --- src/cpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.rs b/src/cpu.rs index f581513..6b11880 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -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 }