Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text
- .type sum, @function
- .global sum
- sum:
- MOVL %esi, %ecx
- SUBL %edi, %ecx
- MOVL %edi, %edx
- MOVL $0, %eax
- loop:
- ADDL %edx, %eax
- INC %edx
- LOOP loop
- RET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement