fork download
  1. .section .data
  2. msg: .ascii "Hallo\n"
  3. counter: .byte
  4. amount: .long
  5.  
  6. .section .text
  7. .global _start
  8. _start:
  9. movl $3, %eax
  10. movl $0, %ebx
  11. movl $amount, %ecx
  12. movl $2, %edx
  13. int $0x80
  14.  
  15. movb $0x30, (counter)
  16.  
  17. _loop:
  18. xor %eax, %eax
  19. movb (counter), %bh
  20. cmpb (amount), %bh
  21. je _exit
  22.  
  23. movl $4, %eax
  24. movl $1, %ebx
  25. movl $msg, %ecx
  26. movl $7, %edx
  27. int $0x80
  28.  
  29. movb (counter), %ah
  30. inc %ah
  31. movb %ah, (counter)
  32.  
  33. jmp _loop
  34.  
  35. _exit:
  36. movl $1, %eax
  37. movl $0, %ebx
  38. 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
/home/k75xCG/ccVDgyHk.o: In function `_start':
(.text+0x0): multiple definition of `_start'
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o:(.text+0x0): first defined here
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
stdout
Standard output is empty