fork download
  1. global _start
  2.  
  3. section .data
  4. msg db 'Hello World!', 0xa ; a message.
  5. len equ $ - msg ; length of a message.
  6.  
  7. section .text
  8.  
  9. _start:
  10. ; your code goes here
  11. mov edx, len ; message length
  12. mov ecx, msg ; message to write
  13. mov ebx, 01h ; file descriptor (stdout)
  14. mov eax, 04h ; system call number (sys_write)
  15. int 0x80 ; call kernel
  16.  
  17. jmp exit
  18.  
  19. exit:
  20. mov eax, 01h ; exit()
  21. xor ebx, ebx ; errno
  22. int 80h
  23.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
Hello World!