From ee9d61f078b04406c5b264d4e0e5bd1ea287e6e2 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 24 Apr 2026 23:12:51 +0200 Subject: Add the .min and the .max control expressions 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 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lib/xixanta/src/opcodes.rs') 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 @@ -1859,6 +1859,26 @@ pub static CONTROL_FUNCTIONS: LazyLock> = LazyLock::new only_string: false, }, ); + 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 { -- cgit v1.2.3