fork download
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. mov ebx, 2
  8. mov eax, $1
  9. mov ecx, $1
  10.  
  11. L1: cmp ecx, ebx
  12. je L2
  13. imul ecx, eax
  14. inc eax
  15. jmp L1
  16. L2:
  17. Mov dword [a], eax
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. ret
  31.  
  32. section .data
  33.  
  34.  
  35. a1 : db "%d",0
  36. a2: db "%d",0xA,0
  37.  
  38. section .bss
  39. a: resd 1
  40. b: resd 1
  41.  
  42.  
Runtime error #stdin #stdout 0.01s 144KB
stdin
Standard input is empty
stdout
Standard output is empty