fork download
  1. global _start
  2.  
  3. section .data
  4. numf DW 01h
  5. nums DW 01h
  6.  
  7. section .text
  8.  
  9.  
  10. _start:
  11. mov eax, 3 ; the system interprets 4 as "write"
  12. mov ebx, 0 ; standard output (print to terminal)
  13. mov ecx, numf ; pointer to the value being passed
  14. mov edx, 2 ; length of output (in bytes)
  15.  
  16. ;cmp [hello],[name]
  17. ;je _same
  18.  
  19. int 0x80 ; call the kernel
  20.  
  21. mov eax, 4
  22. mov ebx, 1
  23. mov ecx, numf
  24. mov edx, 3
  25.  
  26. int 0x80
  27.  
  28. mov eax, 4
  29. mov ebx, 1
  30. mov dl,"Hello, World"
  31.  
  32. int 0x80
Runtime error #stdin #stdout 0.02s 144KB
stdin
22
stdout
2222.symtab.strtab.shstrtab.text.data