Advertisement
Guest User

Untitled

a guest
Dec 9th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     mov a, eax
  2.     mov b, ebx
  3.     mov c, ecx
  4.  
  5.     mov ebx, array
  6.     mov ecx, N
  7.  
  8.     xor edx, edx
  9.  
  10. l1: mov eax, [ebx]
  11.     add edx, eax
  12.     cmp eax, 0
  13.     jle c1
  14.     mov pos, ebx
  15.     mov len, ecx
  16. c1: add ebx, elementN
  17.     loop l1
  18.  
  19.     mov ebx, pos
  20.     mov ecx, len
  21.  
  22. l2: mov eax, [ebx]
  23.     sub edx, eax
  24.     add ebx, elementN
  25.     loop l2
  26.  
  27.     mov eax, a
  28.     mov ebx, b
  29.     mov ecx, c
  30.     mov d, edx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement