Advertisement
PonaFly

Untitled

Mar 23rd, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. .486
  2. .model flat, stdcall
  3. INCLUDE stdlib.inc
  4. INCLUDELIB msvcrt.lib
  5.  
  6. .DATA
  7. LEN EQU 6
  8. ar dw 67, 2, 3, 15, 26, 26
  9. sum dd ?
  10. prod dd 1
  11. .CODE
  12. main:
  13. mov ecx, LEN
  14. mov esi, offset ar
  15.  
  16.  
  17. start:
  18. dec ecx
  19. jl stop
  20.  
  21. mov eax, [esi]
  22. add sum,eax
  23. mul prod
  24. mov prod,eax
  25.  
  26. add esi, TYPE ar
  27.  
  28. jmp start
  29. stop:
  30. call exit
  31. END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement