Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include \masm32\include\masm32rt.inc
- .data
- vec1 DWORD 2, 4, 6, 8
- vec2 DWORD 3, 5, 7, 9
- .code
- start:
- mov ecx, 4
- xor edx, edx
- xor eax, eax
- mov edi, offset vec1
- mov esi, offset vec2
- conta:
- jecxz fim
- mov eax, vec1[edi]
- mov ebx, vec2[esi]
- mul ebx
- add edx, ebx
- inc edi
- inc esi
- loop conta
- fim:
- print str$(edx),13,10
- inkey
- exit
- end start
Add Comment
Please, Sign In to add comment