summaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-25 00:51:37 +0100
committerubq323 <ubq323@ubq323.website>2024-06-25 00:51:37 +0100
commitf76f5a8c244ac6d04e4d89778a6d8c2c2040cdc9 (patch)
tree484b9fea3fa5a136972384239f0890a3886bb5ba /vm.h
parente9b99a90510309ac4f5d91d4a5138e7a84904057 (diff)
get functions and arguments and returning to work fully
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h3
1 files changed, 2 insertions, 1 deletions
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;