From 0ac5661d7f62e88a64bb51a235a80042df0f1718 Mon Sep 17 00:00:00 2001 From: Devin Bidwell Date: Sat, 6 Dec 2025 02:12:16 -0700 Subject: [PATCH] Fixed last 2 implemented syscalls --- rust_compiler/libs/parser/src/lib.rs | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/rust_compiler/libs/parser/src/lib.rs b/rust_compiler/libs/parser/src/lib.rs index 6a8a587..a973494 100644 --- a/rust_compiler/libs/parser/src/lib.rs +++ b/rust_compiler/libs/parser/src/lib.rs @@ -1715,9 +1715,14 @@ impl<'a> Parser<'a> { "loadBatched" | "lb" => { check_length(self, &invocation.arguments, 3)?; let mut args = invocation.arguments.into_iter(); - let device_hash = literal_or_variable!(args.next()); - let logic_type = get_arg!(Literal, literal_or_variable!(args.next())); - let batch_mode = get_arg!(Literal, literal_or_variable!(args.next())); + let tmp = args.next(); + let device_hash = literal_or_variable!(tmp); + + let tmp = args.next(); + let logic_type = get_arg!(Literal, literal_or_variable!(tmp)); + + let tmp = args.next(); + let batch_mode = get_arg!(Literal, literal_or_variable!(tmp)); Ok(SysCall::System(System::LoadBatch( device_hash, @@ -1728,10 +1733,17 @@ impl<'a> Parser<'a> { "loadBatchedNamed" | "lbn" => { check_length(self, &invocation.arguments, 4)?; let mut args = invocation.arguments.into_iter(); - let dev_hash = literal_or_variable!(args.next()); - let name_hash = literal_or_variable!(args.next()); - let logic_type = get_arg!(Literal, literal_or_variable!(args.next())); - let batch_mode = get_arg!(Literal, literal_or_variable!(args.next())); + let tmp = args.next(); + let dev_hash = literal_or_variable!(tmp); + + let tmp = args.next(); + let name_hash = literal_or_variable!(tmp); + + let tmp = args.next(); + let logic_type = get_arg!(Literal, literal_or_variable!(tmp)); + + let tmp = args.next(); + let batch_mode = get_arg!(Literal, literal_or_variable!(tmp)); Ok(SysCall::System(System::LoadBatchNamed( dev_hash, name_hash, logic_type, batch_mode,