xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cr16/hello.ms (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1# output(): Hello world!\n
2# mach(): cr16
3
4	.globl _start
5_start:
6
7# write (hello world)
8	movw $1,r2
9	movd $hello,(r4,r3)
10	loadw length,r5
11	movw $0x404,r0
12	excp 8
13# exit (0)
14	movw $0,r2
15	movw $0x410,r0
16	excp 8
17
18length:	.long 14
19hello:	.ascii "Hello world!\r\n"
20