aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/tic80-coff/hello.s
blob: 1891fd20db161eb5c6227d54f0c960d977e88317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
	.globl __start
__start:
# write (hello world)
	addu 4, r0, r15
	addu 1, r0, r2
	addu hello, r0, r4
	ld length(r0), r6
#	addu 12, r0, r5
	trap 72
# exit (0)
	addu 1, r0, r15
	addu 0, r0, r2
	trap 72

length:	.long 14
hello:	.ascii "Hello World!\r\n"