fork download
  1. .section .data
  2. hello: .ascii "Hallo\n"
  3. input: .space 100
  4.  
  5. .section .text
  6. .global _start
  7. _start:
  8. mov $4, %eax
  9. mov $1, %ebx
  10. mov $hello, %ecx
  11. mov $7, %edx
  12. int $0x80
  13.  
  14. mov $3, %eax
  15. mov $0, %ebx
  16. mov $input, %ecx
  17. mov $100, %edx
  18. mov $0x80
  19.  
  20. mov $4, %eax
  21. mov $1, %ebx
  22. mov $input, %ecx
  23. mov $100, %edx
  24. int $0x80
  25.  
  26. jmp _exit
  27.  
  28. _exit:
  29. mov $1, %eax
  30. mov $0, %ebx
  31. int $0x80
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.s: Assembler messages:
prog.s:0: Warning: end of file not at end of a line; newline inserted
prog.s:18: Error: suffix or operands invalid for `mov'
stdout
Standard output is empty