Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. .text
  2. .global summ
  3. summ:
  4. push ebx
  5. mov ecx, [ esp + 8 ]
  6. cmp ecx, 0
  7. jz end
  8. dec ecx
  9.  
  10. Loop:
  11. mov eax, [esp + 12]
  12. mov edx, [eax + 4*ecx]
  13. mov eax, [esp + 16]
  14. add edx, [eax + 4*ecx]
  15. mov eax, [esp + 20]
  16. mov [eax + 4*ecx], edx
  17. loop Loop
  18.  
  19. end:
  20. pop ebx
  21. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement