fork download
  1. global _start
  2.  
  3. section .data
  4. hello db 'Hello, World',0
  5. name db 'Damian',0
  6.  
  7. section .text
  8.  
  9.  
  10. _start:
  11. mov eax, 4 ; the system interprets 4 as "write"
  12. mov ebx, 1 ; standard output (print to terminal)
  13. mov ecx, hello ; pointer to the value being passed
  14. mov edx, 5 ; length of output (in bytes)
  15.  
  16. cmp [hello],[name]
  17. je _same
  18.  
  19. int 0x80 ; call the kernel
  20.  
  21. _same:
  22. int 0x80 ; call the kernel
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.asm:16: error: operation size not specified
stdout
Standard output is empty