hello.ms 262 B

12345678910111213141516171819
  1. # output(): Hello world!\n
  2. # mach(): cr16
  3. .globl _start
  4. _start:
  5. # write (hello world)
  6. movw $1,r2
  7. movd $hello,(r4,r3)
  8. loadw length,r5
  9. movw $0x404,r0
  10. excp 8
  11. # exit (0)
  12. movw $0,r2
  13. movw $0x410,r0
  14. excp 8
  15. length: .long 14
  16. hello: .ascii "Hello world!\r\n"