Add add instruction to compiler

This commit is contained in:
2026-01-21 13:50:54 +11:00
parent 31577fcc62
commit bf68f1500c
2 changed files with 42 additions and 8 deletions

View File

@@ -98,3 +98,14 @@ Commands:
* eval (code): Runs Ground code in the current scope
* help: Shows a help message
## Compiler
CGround now includes an experimental Ground -> x86_64 Linux ASM compiler. You can try it by adding the `-c` flag when running Ground. This will print the generated ASM to the console.
At present only the `int` data type is supported.
Supported instructions so far:
* set
* add
* end