diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-24 23:12:51 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-24 23:12:51 +0200 |
| commit | ee9d61f078b04406c5b264d4e0e5bd1ea287e6e2 (patch) | |
| tree | 23dfc1e95c7e5d9ff871a044f4f4e3773f3ecbe1 /lib/xixanta/src/opcodes.rs | |
| parent | 948228f0e250d191a97359e97faa6ee4934e9e7a (diff) | |
| download | tools.nes-ee9d61f078b04406c5b264d4e0e5bd1ea287e6e2.tar.gz tools.nes-ee9d61f078b04406c5b264d4e0e5bd1ea287e6e2.zip | |
Add the .min and the .max control expressions
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'lib/xixanta/src/opcodes.rs')
| -rw-r--r-- | lib/xixanta/src/opcodes.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/xixanta/src/opcodes.rs b/lib/xixanta/src/opcodes.rs index 25b3add..bc4f1d4 100644 --- a/lib/xixanta/src/opcodes.rs +++ b/lib/xixanta/src/opcodes.rs @@ -1860,6 +1860,26 @@ pub static CONTROL_FUNCTIONS: LazyLock<HashMap<String, Control>> = LazyLock::new }, ); functions.insert( + String::from(".max"), + Control { + control_type: ControlType::Max, + has_identifier: None, + required_args: None, + touches_context: false, + only_string: false, + }, + ); + functions.insert( + String::from(".min"), + Control { + control_type: ControlType::Min, + has_identifier: None, + required_args: None, + touches_context: false, + only_string: false, + }, + ); + functions.insert( String::from(".incbin"), Control { control_type: ControlType::IncBin, |
