diff --git a/src/runtime.rs b/src/runtime.rs index 4ced317..bbad335 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -153,7 +153,10 @@ impl RunEnvironment { // Entering device address space break; } - dprintln!("\x1b[2m-- executing one instruction!"); + + if self.debugger.is_some() { + dprintln!("\x1b[2m-- executing one instruction!"); + } let instr = self.state.mem[self.state.pc as usize]; let opcode = (instr >> 12) as usize;