Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .486
- .model flat, stdcall
- INCLUDE stdlib.inc
- INCLUDELIB msvcrt.lib
- .DATA
- LEN EQU 6
- ar dw 67, 2, 3, 15, 26, 26
- sum dd ?
- prod dd 1
- .CODE
- main:
- mov ecx, LEN
- mov esi, offset ar
- start:
- dec ecx
- jl stop
- mov eax, [esi]
- add sum,eax
- mul prod
- mov prod,eax
- add esi, TYPE ar
- jmp start
- stop:
- call exit
- END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement