Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .386
- .model flat, stdcall
- .data
- doubleArray dword 0,2,5,9,10
- count EQU (LENGTHOF doubleArray)
- total dword 0
- .code
- start:
- ;write your code here
- mov esi, OFFSET doubleArray
- mov ecx, count
- L1:
- mov eax,[esi]
- add esi, 4
- mov ebx,[esi]
- sub ebx, eax
- add total, ebX
- Loop L1
- ret
- END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement