diff options
Diffstat (limited to 'sim/testsuite/cr16/hello.ms')
-rw-r--r-- | sim/testsuite/cr16/hello.ms | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/hello.ms b/sim/testsuite/cr16/hello.ms new file mode 100644 index 0000000..ab6c482 --- /dev/null +++ b/sim/testsuite/cr16/hello.ms @@ -0,0 +1,19 @@ +# output(): Hello world!\n +# mach(): cr16 + + .globl _start +_start: + +# write (hello world) + movw $1,r2 + movd $hello,(r4,r3) + loadw length,r5 + movw $0x404,r0 + excp 8 +# exit (0) + movw $0,r2 + movw $0x410,r0 + excp 8 + +length: .long 14 +hello: .ascii "Hello world!\r\n" |