Advertisement
Coriic

Untitled

May 31st, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. .text
  2. .type sum, @function
  3. .global sum
  4.  
  5. sum:
  6. MOVL %esi, %ecx
  7. SUBL %edi, %ecx
  8. MOVL %edi, %edx
  9. MOVL $0, %eax
  10. loop:
  11. ADDL %edx, %eax
  12. INC %edx
  13. LOOP loop
  14. RET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement