start adding assignment (currently only identifier assignment works)

This commit is contained in:
William Bell
2025-08-29 01:41:53 +01:00
parent fff4f6bcb5
commit f598c215e7
9 changed files with 134 additions and 2 deletions

View File

@@ -29,6 +29,17 @@ this operation takes 3 operands.
1. the fixed hash of the variable name.
1. the register of the given value (*)
## OP_ASSIGN
assigns to a variable in the stack. if the variable doesnt exist on the stack, it is automatically declared on the current scope.
this operation takes 3 operands.
1. the length of the variable name.
1. the offset in the constant buffer of the variable name.
1. the fixed hash of the variable name.
1. the register of the given value (*)
## OP_LOAD_NULL
sets a given register to null.