diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-08-30 00:06:39 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-09-06 15:47:50 +0200 |
| commit | ad77503d953302f22a621093ba359e24526892ec (patch) | |
| tree | 8ac6bf8e8839d0ebfe1d2d654cab0870f5a67136 /crates/runrom/src | |
| parent | e1b830309d86f6b1fff803ed94f34ce7002eb532 (diff) | |
| download | tools.nes-ad77503d953302f22a621093ba359e24526892ec.tar.gz tools.nes-ad77503d953302f22a621093ba359e24526892ec.zip | |
vnf: add support for standard joypads
This means adding constants so developers can actually trigger which key
presses are available at any given read, as well as a simple interface
that allows to add button presses and clear them.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'crates/runrom/src')
| -rw-r--r-- | crates/runrom/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/runrom/src/main.rs b/crates/runrom/src/main.rs index 4388766..8f52f4a 100644 --- a/crates/runrom/src/main.rs +++ b/crates/runrom/src/main.rs @@ -27,6 +27,7 @@ fn print_help() { println!(" -h, --help\t\t\tPrint this message and quit."); println!(" -n, --nasm-directory <PATH>\tPath to the .nasm/ directory."); println!(" -s, --start\t\t\tAddress from where to start (default: reset vector)."); + println!(" -u, --until-address\t\tRun until the given address is met."); println!(" -v, --version\t\t\tPrint version information."); std::process::exit(0); } @@ -163,7 +164,7 @@ fn parse_arguments() -> Args { } None => die("you need to specify a file for the '-n/--nasm' flag".to_string()), }, - "--until-address" => { + "-u" | "--until-address" => { until_address = args.next(); if until_address.is_none() { die("you need to specify a value for the --until-address flag!".to_string()); |
