old-trainOS/scripts/main.cu.spark

41 lines
522 B
Text
Raw Permalink Normal View History

; =============================================
; compiled with Copper 1.0
; 2015-10-21 21:27:41
; =============================================
2015-10-10 22:45:02 +00:00
; native method: print(…)
; native method: shutdown(…)
2015-10-13 16:02:18 +00:00
2015-10-10 22:45:02 +00:00
; 1, main
.export main
main:
pushnil ; return value
2015-10-10 22:45:02 +00:00
pushnil ; i:INT32
pusht "Hello World!\n"
calln print 1
2015-10-10 22:45:02 +00:00
pushi 2 1
store 1
_private_0:
load 1
2015-10-10 22:45:02 +00:00
pushi 2 5
op2 8
jmp_if_not _private_1
pusht "\n"
2015-10-10 22:45:02 +00:00
load 1
calln print 2
load 1
2015-10-10 22:45:02 +00:00
pushi 2 1
op2 0
store 1
jmp _private_0
_private_1:
ret
; end of main