fork download
  1. global _start
  2.  
  3. section .data
  4. numf DW 10
  5. nums DW 01h
  6.  
  7. section .text
  8.  
  9.  
  10. _start:
  11. mov nums, 5
  12. mov eax, 3 ; the system interprets 4 as "write"
  13. mov ebx, 0 ; standard output (print to terminal)
  14. mov ecx, numf ; pointer to the value being passed
  15. mov edx, 2 ; length of output (in bytes)
  16.  
  17. ;cmp [hello],[name]
  18. ;je _same
  19.  
  20. int 0x80 ; call the kernel
  21.  
  22. mov eax, 4
  23. mov ebx, 1
  24. mov ecx, numf
  25. mov edx, 3
  26.  
  27. int 0x80
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
22
compilation info
prog.asm:11: error: invalid combination of opcode and operands
stdout
Standard output is empty