diff options
-rw-r--r-- | src/debug.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/debug.rs b/src/debug.rs index 1593d9d..d7e7f67 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -5,6 +5,7 @@ use std::time::Instant; const NORMAL: &str = "\x1b[0m"; +const DIM: &str = "\x1b[2m"; const YELLOW: &str = "\x1b[33m"; const BLUE: &str = "\x1b[34m"; @@ -44,8 +45,8 @@ impl DebugState { debug_stack(&core.rst, 0x10); // Print information about the current symbol. if let Some(symbol) = self.symbols.for_address(core.mem.pc) { - eprint!("SYM: {BLUE}@{}{NORMAL}", symbol.name); - if let Some(location) = &symbol.location { eprint!(" {location}"); } + eprint!("SYM: {BLUE}@{}{NORMAL} 0x{:04x}", symbol.name, symbol.address); + if let Some(location) = &symbol.location { eprint!(" {DIM}{location}{NORMAL}"); } eprintln!(); } self.last_cycle = core.cycle; |