Commit | Line | Data |
---|---|---|
c906108c SS |
1 | |
2 | .globl _start | |
3 | _start: | |
4 | ||
5 | ; write (hello world) | |
6 | ldi8 r3,#14 | |
7 | ld24 r2,#hello | |
8 | ldi8 r1,#1 | |
9 | ldi8 r0,#5 | |
10 | trap #0 | |
11 | ; exit (0) | |
12 | ldi8 r1,#0 | |
13 | ldi8 r0,#1 | |
14 | trap #0 | |
15 | ||
16 | length: .long 14 | |
17 | hello: .ascii "Hello World!\r\n" |