From ab99e24f641450ba896bf0d4148e104b7a328d8a Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Wed, 14 Jul 2021 21:10:44 -0500 Subject: [PATCH] chore: modify commented out debug statement --- src/cpu.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/cpu.rs b/src/cpu.rs index b9ca9ed..8e821d2 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -96,13 +96,6 @@ impl Cpu { } pub fn step(&mut self) -> Cycle { - // if !self.bus.boot_enabled() { - // let out = std::io::stdout(); - // let handle = out.lock(); - - // self.log_state(handle).unwrap(); - // } - let cycles = match self.halted() { Some(state) => { use HaltState::*; @@ -117,6 +110,10 @@ impl Cpu { self.inc_pc(); let instr = self.decode(opcode); + + // let out = std::io::stdout(); + // let _ = self._debug_log(out.lock(), &instr); + let cycles = self.execute(instr); self.check_ime();