From 52f82fe6ae1da03eec88068482b2a3d514aa51c3 Mon Sep 17 00:00:00 2001 From: slederer Date: Sun, 31 Aug 2025 23:31:00 +0200 Subject: [PATCH] runtime: bugfix stack corruption in MEMAVAIL --- lib/runtime.s | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/runtime.s b/lib/runtime.s index a230e09..ce60b8d 100644 --- a/lib/runtime.s +++ b/lib/runtime.s @@ -1787,6 +1787,7 @@ MAV_L: CMPU NE CBRANCH MAV_L ; if not equal, loop MAX_XT: + DROP ; drop chunk ptr LOAD 0 ; put result value on stack FPADJ 4 RET