chore: modify commented out debug statement
This commit is contained in:
parent
192bdffd64
commit
ab99e24f64
11
src/cpu.rs
11
src/cpu.rs
|
@ -96,13 +96,6 @@ impl Cpu {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn step(&mut self) -> Cycle {
|
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() {
|
let cycles = match self.halted() {
|
||||||
Some(state) => {
|
Some(state) => {
|
||||||
use HaltState::*;
|
use HaltState::*;
|
||||||
|
@ -117,6 +110,10 @@ impl Cpu {
|
||||||
self.inc_pc();
|
self.inc_pc();
|
||||||
|
|
||||||
let instr = self.decode(opcode);
|
let instr = self.decode(opcode);
|
||||||
|
|
||||||
|
// let out = std::io::stdout();
|
||||||
|
// let _ = self._debug_log(out.lock(), &instr);
|
||||||
|
|
||||||
let cycles = self.execute(instr);
|
let cycles = self.execute(instr);
|
||||||
|
|
||||||
self.check_ime();
|
self.check_ime();
|
||||||
|
|
Loading…
Reference in New Issue