From: Lukas Krickl Date: Mon, 29 Dec 2025 03:35:16 +0000 (+0100) Subject: added todo note X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=90c0fd1af73ce92c5f351ebcec2ab118ce32e74c;p=ulas%2F.git added todo note --- diff --git a/TODO.md b/TODO.md index 0d0f648..ec8f43e 100644 --- a/TODO.md +++ b/TODO.md @@ -18,3 +18,29 @@ - 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.