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