diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-29 14:03:04 +1300 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-30 15:42:10 +1300 |
commit | 748974ef2c0e969e95cccc9cb061436d5a1d1b35 (patch) | |
tree | c9d2022669df04cdfd3d775497048222422c59c2 /src/emulators.rs | |
parent | c42e2154d88c23a28f83fe96f4153e821ef00c0e (diff) | |
download | bedrock-pc-748974ef2c0e969e95cccc9cb061436d5a1d1b35.zip |
Load and display symbols in debug information
The assembler saves out symbols files, which are loaded automatically
by the emulator when present. The name and location of the most recent
label is displayed with the debug information when symbols are loaded.
Diffstat (limited to 'src/emulators.rs')
-rw-r--r-- | src/emulators.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emulators.rs b/src/emulators.rs index fcebe1d..56f7181 100644 --- a/src/emulators.rs +++ b/src/emulators.rs @@ -8,6 +8,8 @@ use crate::*; use phosphor::Colour; +use std::path::PathBuf; + pub enum EmulatorSignal { Promote, @@ -25,4 +27,6 @@ pub struct EmulatorConfig { pub initial_transmission: Option<Vec<u8>>, pub decode_stdin: bool, pub encode_stdout: bool, + + pub symbols_path: Option<PathBuf>, } |