Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mov a, eax
- mov b, ebx
- mov c, ecx
- mov ebx, array
- mov ecx, N
- xor edx, edx
- l1: mov eax, [ebx]
- add edx, eax
- cmp eax, 0
- jle c1
- mov pos, ebx
- mov len, ecx
- c1: add ebx, elementN
- loop l1
- mov ebx, pos
- mov ecx, len
- l2: mov eax, [ebx]
- sub edx, eax
- add ebx, elementN
- loop l2
- mov eax, a
- mov ebx, b
- mov ecx, c
- mov d, edx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement