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 nums, 5 ; set value of nums to 5
  12.  
  13. int 0x80 ; call kernel
  14.  
  15. mov eax, 3 ; the system interprets 4 as "write"
  16. mov ebx, 0 ; standard output (print to terminal)
  17. mov ecx, numf ; pointer to the value being passed
  18. mov edx, 2 ; length of output (in bytes)
  19.  
  20. ;cmp [hello],[name]
  21. ;je _same
  22.  
  23. int 0x80 ; call the kernel
  24.  
  25. mov eax, 4
  26. mov ebx, 1
  27. mov ecx, numf
  28. mov edx, 3
  29.  
  30. 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