hello-world.s 287 B

12345678910111213141516171819202122232425
  1. .code32
  2. .text
  3. .globl main
  4. main:
  5. movl $0xcbcbcbcb, %eax
  6. movl $0xacacacac, %edx
  7. movl $0x04, %eax
  8. movl $1, %ebx
  9. movl $_str, %ecx
  10. movl $_str_size, %edx
  11. movl (%edx), %edx
  12. int $0x80
  13. xorl %eax, %eax
  14. ret
  15. .data
  16. _str:
  17. .ascii "Hello, World!\n"
  18. _str_size:
  19. .long (_str_size - _str)