Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global sumAtoB
- SECTION .text
- sumAtoB:
- push ebp
- mov ebp, esp
- sub esp, 16
- mov eax, dword [ebp+8]
- mov dword [ebp-8], eax
- mov dword [ebp-4], 0
- jmp L_002
- L_001:
- mov eax, dword [ebp-8]
- add dword [ebp-4], eax
- add dword [ebp-8], 1
- L_002:
- mov eax, dword [ebp-8]
- cmp eax, dword [ebp+12]
- jle L_001
- mov eax, dword [ebp-4]
- leave
- ret
- SECTION .data
- SECTION .bss
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement