fork download
  1.  
  2. section .data
  3. hello: db 'Hello, World!',10 ; 'Hello, World!' plus a linefeed character
  4. helloLen: equ $-hello ; Length of the 'Hello world!' string
  5.  
  6. section .text
  7. global _start
  8.  
  9. _start:
  10. mov eax,4 ; The system call for write (sys_write)
  11. mov ebx,1 ; File descriptor 1 - standard output
  12. mov ecx,hello ; Put the offset of hello in ecx
  13. mov edx,helloLen ; helloLen is a constant, so we don't need to say
  14. ; mov edx,[helloLen] to get it's actual value
  15. int 80h ; Call the kernel
  16. mov eax,1 ; The system call for exit (sys_exit)
  17. mov ebx,0 ; Exit with return "code" of 0 (no error)
  18. int 80h;
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Hello, World!