From 3a3e394f097b35e238374c280d1b0ad663451cb9 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Wed, 25 Jan 2023 12:33:00 +0100 Subject: [PATCH] fix call --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 73a2641..77272b7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -139,9 +139,10 @@ impl Chip8 { return; } else if first == 2 { // call - debug_eprintln!("CALL {}", after_first); + debug_eprintln!("CALL {after_first} {after_first:#02x}"); self.stack.push(self.pc); self.pc = after_first; + return; } else if first == 3 { // if eq debug_eprintln!("SE IF V{second} == {} SKIP", last_two);