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:
@@ -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
|
||||
Reference in New Issue
Block a user