aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/opcodes.rs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-04-24 16:26:08 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-04-24 16:26:08 +0200
commitc8138a0fc5353dc9017fc32fb5ef12a6fe780415 (patch)
treef8c88e98bfad1afa0456cc81ea23af678d9876a5 /lib/xixanta/src/opcodes.rs
parentcf767fc97329b83aa4091e745c204552514f3983 (diff)
downloadtools.nes-c8138a0fc5353dc9017fc32fb5ef12a6fe780415.tar.gz
tools.nes-c8138a0fc5353dc9017fc32fb5ef12a6fe780415.zip
Add the .version pseudo-variable
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'lib/xixanta/src/opcodes.rs')
-rw-r--r--lib/xixanta/src/opcodes.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/xixanta/src/opcodes.rs b/lib/xixanta/src/opcodes.rs
index 48e4fca..150813e 100644
--- a/lib/xixanta/src/opcodes.rs
+++ b/lib/xixanta/src/opcodes.rs
@@ -1670,6 +1670,16 @@ pub static CONTROL_FUNCTIONS: LazyLock<HashMap<String, Control>> = LazyLock::new
let mut functions = HashMap::new();
functions.insert(
+ String::from(".version"),
+ Control {
+ control_type: ControlType::Version,
+ has_identifier: None,
+ required_args: Some((0, 0)),
+ touches_context: false,
+ only_string: false,
+ },
+ );
+ functions.insert(
String::from(".hibyte"),
Control {
control_type: ControlType::Hibyte,