Variables (#8)

This commit was merged in pull request #8.
This commit is contained in:
2026-05-02 20:12:15 -05:00
parent f9733f3b20
commit 9bc6ad1c92
10 changed files with 100 additions and 27 deletions

View File

@@ -30,8 +30,9 @@ Stack operations:
05 dup
Local variables:
a3 c3 e3 setl [int] Set stack top as indexed local variable
a4 c4 e4 getl [int] Get indexed local variable and place on stack
a3 c3 e3 pushv [int] Push n nil values into the stack (used to init local vars)
ab cb eb set [index] Set value in stack position (set local variable)
a4 c4 e4 dupv [index] Duplicate stack value (load local variable)
a5 c5 e5 setg [int] Set global variable
a6 c6 e6 getg [int] Get global variable