summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/fr30/hello.ms
blob: 0f208dfb9272b6c17ddcda1f60d307b406016bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# mach: fr30
# output: Hello world!\n

	.global _start
_start:

; write (hello world)
	ldi32 #14,r6
	ldi32 #hello,r5
	ldi32 #1,r4
	ldi32 #5,r0
	int   #10
; exit (0)
	ldi32 #0,r4
	ldi32 #1,r0
	int   #10

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