From c8138a0fc5353dc9017fc32fb5ef12a6fe780415 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 24 Apr 2026 16:26:08 +0200 Subject: Add the .version pseudo-variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/opcodes.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/xixanta/src/opcodes.rs') 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 @@ -1669,6 +1669,16 @@ pub static INSTRUCTIONS: LazyLock> = 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 { -- cgit v1.2.3