matogens

zadanie3asm

May 7th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. global sumuj
  2.  
  3. section .text
  4. sumuj:
  5.     mov r12d, 0
  6.     xor rax, rax
  7.  
  8. _petla:
  9.     cmp r12d, esi
  10.     je _exit
  11.     add eax, [rdi+4*r12]
  12.     inc r12d
  13.     jmp _petla
  14.  
  15. _exit:
  16.     ret
Add Comment
Please, Sign In to add comment