Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text
- .global summ
- summ:
- push ebx
- mov ecx, [ esp + 8 ]
- cmp ecx, 0
- jz end
- dec ecx
- Loop:
- mov eax, [esp + 12]
- mov edx, [eax + 4*ecx]
- mov eax, [esp + 16]
- add edx, [eax + 4*ecx]
- mov eax, [esp + 20]
- mov [eax + 4*ecx], edx
- loop Loop
- end:
- pop ebx
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement