fork download
  1. global _start
  2.  
  3. section .data
  4. buffer dw 1,2,3,4,5,6
  5.  
  6. section .text
  7.  
  8. _start:
  9. mov ecx, buffer[1]
  10. call write
  11. jmp exit
  12.  
  13. exit:
  14. mov eax, 01h ; exit()
  15. xor ebx, ebx ; errno
  16. int 80h
  17.  
  18.  
  19. read:
  20. mov eax, 03h ; read()
  21. mov ebx, 00h ; stdin
  22. int 80h
  23. ret
  24. write:
  25. mov eax, 04h ; write()
  26. mov ebx, 01h ; stdout
  27. int 80h
  28. ret
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
2
10
42
11
compilation info
prog.asm:9: error: comma, colon or end of line expected
stdout
Standard output is empty