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. mov ecx, dl
  32. mov edx, 5
  33.  
  34. int 0x80
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
22
compilation info
prog.asm:30: warning: character constant too long
prog.asm:30: warning: byte value exceeds bounds
prog.asm:31: error: invalid combination of opcode and operands
stdout
Standard output is empty