hello.ms 252 B

12345678910111213141516171819
  1. # output(): Hello world!\n
  2. # mach(): m32r m32rx
  3. .globl _start
  4. _start:
  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. length: .long 14
  16. hello: .ascii "Hello world!\r\n"