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.  
Runtime error #stdin #stdout 0.01s 144KB
stdin
22
stdout
Standard output is empty