Advertisement
PonaFly

Untitled

Mar 23rd, 2017
205
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 si, offset ar
  15.  
  16.  
  17. start:
  18. dec ecx
  19. jl stop
  20.  
  21. mov ax, [si]
  22. add sum,ax
  23. s
  24. mul prod
  25. mov prod,ax
  26.  
  27. add esi, TYPE ar
  28.  
  29. jmp start
  30. stop:
  31. call exit
  32. END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement