From ddcdf74dba675ad229dde4a38f10cbfa609e72f3 Mon Sep 17 00:00:00 2001 From: Dave Schmenk Date: Sun, 7 Jan 2018 22:52:10 -0800 Subject: [PATCH] PLASM Correctly compiling test and testlib --- src/toolsrc/codegen.pla | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/toolsrc/codegen.pla b/src/toolsrc/codegen.pla index 5da2328..69db278 100644 --- a/src/toolsrc/codegen.pla +++ b/src/toolsrc/codegen.pla @@ -525,12 +525,14 @@ def save_idlocal#0 savelocals = locals savesize = framesize savelast = lastlocal + memcpy(heapmark, idlocal_tbl, lastlocal - idlocal_tbl) init_idlocal end def restore_idlocal#0 locals = savelocals framesize = savesize lastlocal = savelast + memcpy(idlocal_tbl, heapmark, lastlocal - idlocal_tbl) end // // Module dependency list