this code is a mess and I am losing my mind

This commit does not work and I am so down I don't even bother
committing to conventional commits until I fix this mess.
This commit is contained in:
2026-07-19 21:38:00 +02:00
parent 9f950e45e7
commit a1e43576cc
12 changed files with 133 additions and 12 deletions
+23
View File
@@ -0,0 +1,23 @@
func println $u32 = native println
public func main = #main
main:
push $u32 0
store %0
loop_header:
load %0
push $u32 10
ge
jnz #loop_end
loop_body:
load %0
call $u32 println
load %0
push $u32 1
add
store %0
jmp #loop_header
loop_end:
ret