diff options
2 files changed, 8 insertions, 1 deletions
| -rw-r--r-- | assembler/src/main.rs | 4 | ||||
| -rw-r--r-- | vm/src/main.rs | 5 |
diff --git a/assembler/src/main.rs b/assembler/src/main.rs index 56a705d..20bf2b7 100644 --- a/assembler/src/main.rs +++ b/assembler/src/main.rs @@ -13,14 +13,18 @@ static PROGRAM_COUNTER: usize = 3; #[derive(Parser, Debug)] #[command(about, long_about = None)] struct Args { + /// Path to source file source: String, + /// Assembled binary output path #[arg(default_value = "program.bin")] destination: String, + /// Where the first actual byte to be #[arg(short, long, default_value_t = 1024)] start_index: usize, + /// Show intermediate representations #[arg(long, default_value_t = false)] debug: bool, } diff --git a/vm/src/main.rs b/vm/src/main.rs index d731d78..bfd35ec 100644 --- a/vm/src/main.rs +++ b/vm/src/main.rs @@ -9,11 +9,14 @@ use vmm::VirtualMachineMonitor; #[derive(Parser, Debug)] #[command(about, long_about = None)] struct Args { + /// Path to assembled binary binary_path: Option<String>, - #[arg(short, long, default_value_t = 10)] + /// Time between each instruction execution + #[arg(short, long, default_value_t = 2)] tick_gap: u64, + /// How often the command-line updates #[arg(short, long, default_value_t = 200)] refresh: u64, } |
