From bebaed19982935b1602c7120e14946603008f0f1 Mon Sep 17 00:00:00 2001 From: Andre Wagner Date: Fri, 1 May 2026 10:40:21 -0500 Subject: [PATCH] . --- TODO.md | 29 +++++++++++++++++++++++++---- doc/OPCODES | 2 +- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/TODO.md b/TODO.md index fedadc1..f9c69d4 100644 --- a/TODO.md +++ b/TODO.md @@ -19,7 +19,7 @@ After some additional development: ## VM -- [ ] VM +- [x] VM - [x] Code - [x] Simple bytecode loader - [x] Output bytecode format @@ -29,10 +29,31 @@ After some additional development: - [x] Code execution (except functions) - [x] Functions - [x] Print stack - -- [ ] Assembler +- [x] Assembler +- [ ] VM execution + - [ ] Stack operations (nil, integer, float, string, function) + - [ ] Expressions + - [ ] Local/global variables + - [ ] Functions + - [ ] Constants + - [ ] Other operations + - [ ] Arrays + - [ ] Iteration + - [ ] Expressions + - [ ] Tables + - [ ] Iteration + - [ ] Metatables + - [ ] Expressions + - [ ] Control flow + - [ ] Compilation + - [ ] Error handling +- [ ] C++ API + - [ ] Run native code on VM + - [ ] Run tyche code from C++ + - [ ] C API After some additional development: - [ ] Bytecode loader - Combine multiple chunks - - Resolve function ids, constant ids, etc \ No newline at end of file + - Resolve function ids, constant ids, etc +- [ ] Upvalues \ No newline at end of file diff --git a/doc/OPCODES b/doc/OPCODES index ece0501..507e79a 100644 --- a/doc/OPCODES +++ b/doc/OPCODES @@ -37,7 +37,7 @@ Local variables: Function operations: a7 c7 e7 call [n_pars] Enter function on stack toplevel (passing n next stack values as parameters) -10 ret Leave a function (return value in stack) +10 ret Leave a function (return value in stack) 11 retn Leave a function (return nil) Table and array operations: