fork download
  1.  
  2. SECTION .bss
  3. array resb 256
  4.  
  5. SECTION .text
  6. global _start
  7.  
  8.  
  9. _start:
  10.  
  11. pop ecx
  12.  
  13. again:
  14. cmp ecx, 0
  15. jz noMoreArgs
  16. pop eax
  17. call sprint
  18. dec ecx
  19. jmp again
  20.  
  21. noMoreArgs:
  22. call quit
  23.  
  24. .nextchar:
  25. cmp byte[eax], 0
  26. jz .finished
  27. inc eax
  28. jmp .nextchar
  29.  
  30. .finished:
  31. sub eax, ebx
  32. pop ebx
  33. ret
  34. ;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////;
  35. sprint:
  36. push edx
  37. push ecx
  38. push ebx
  39. push eax
  40.  
  41. call strlen
  42.  
  43. mov edx, eax
  44. pop eax
  45.  
  46. mov ecx, eax
  47. mov ebx, 1
  48. mov eax, 4
  49. int 80h
  50.  
  51. pop ebx
  52. pop ecx
  53. pop edx
  54. ret
  55. ;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////;
  56. quit:
  57. mov eax, 1
  58. mov ebx, 0
  59. int 80h
  60. ret
  61.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.asm:11: error: instruction not supported in 64-bit mode
prog.asm:16: error: instruction not supported in 64-bit mode
prog.asm:33: error: instruction not supported in 64-bit mode
prog.asm:37: error: instruction not supported in 64-bit mode
prog.asm:38: error: instruction not supported in 64-bit mode
prog.asm:39: error: instruction not supported in 64-bit mode
prog.asm:40: error: instruction not supported in 64-bit mode
prog.asm:45: error: instruction not supported in 64-bit mode
prog.asm:52: error: instruction not supported in 64-bit mode
prog.asm:53: error: instruction not supported in 64-bit mode
prog.asm:54: error: instruction not supported in 64-bit mode
ld: cannot find prog.o: No such file or directory
stdout
Standard output is empty