added todo note
authorLukas Krickl <lukas@krickl.dev>
Mon, 29 Dec 2025 03:35:16 +0000 (04:35 +0100)
committerLukas Krickl <lukas@krickl.dev>
Mon, 29 Dec 2025 03:35:16 +0000 (04:35 +0100)
TODO.md

diff --git a/TODO.md b/TODO.md
index 0d0f648044610cc4df711a20764a7550f5c9c90a..ec8f43e90c75fc8bbf425135380fec351f3c8204 100644 (file)
--- a/TODO.md
+++ b/TODO.md
 - Add a BANKNUM function e.g. BANKNUM(label)
 - Add .eval expression
        eval should run a assembly-like vm that can output tokens (e.g. eval script arg1, arg2 etc)
+- Add high-level mode
+    .hl
+    .endhl
+    Inside a hl block a simple language should be available that has access to all
+    defined labels.
+    The language should be basic-like
+    e.g.
+```
+sub(a, b)
+       dim c = a + b
+       if c > 2 then goto @true
+       sub = 0 ; this is the return value
+       return
+@true:
+       sub = c
+       return
+
+main:
+       gosub sub 1, 2, addr_test
+
+       poke addr_test, a
+       a = peek addr_test
+       main = 0
+       return
+```
+    The cpu backend should define how these high-level expressions get translated.