From e7e1b94fc518bd9ef93bf54affd09a288b069215 Mon Sep 17 00:00:00 2001 From: darcy Date: Wed, 27 Nov 2024 21:44:46 +1100 Subject: [PATCH] fix: only print temporary debugger messages if debugger is active --- src/runtime.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;