chore: modify commented out debug statement

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-07-14 21:10:44 -05:00
parent 192bdffd64
commit ab99e24f64
1 changed files with 4 additions and 7 deletions

View File

@ -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();