From f76f5a8c244ac6d04e4d89778a6d8c2c2040cdc9 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 25 Jun 2024 00:51:37 +0100 Subject: get functions and arguments and returning to work fully --- vm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vm.h') diff --git a/vm.h b/vm.h index 0d1782d..39fc0bb 100644 --- a/vm.h +++ b/vm.h @@ -13,7 +13,7 @@ typedef struct _thread Thread; typedef struct { size_t ip; Chunk *ch; - + size_t fp; } StackFrame; #define MAXDEPTH 64 @@ -22,6 +22,7 @@ typedef struct _thread { Chunk *ch; size_t ip; Val stack[STACKSIZE]; + size_t fp; size_t sp; StackFrame rstack[MAXDEPTH]; size_t rsp; -- cgit v1.2.3