old-SuperVM/SuperVM.ExperimentalHost/demo.asm
2016-06-17 09:24:08 +02:00

13 lines
No EOL
164 B
NASM

main:
push 0 ; ptr
loop:
[i0:peek] load [f:yes]
[ex(z)=1] jmp @end
[i0:pop] syscall [ci:1]
[i0:arg] [i1:pop] add 1
jmp @loop
end:
syscall [ci:0] ; quit