Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .bss
- integer resd 1
- section .data
- liczba db 1
- sum dd 0
- iterator dd 1
- section .text
- global _start
- _start:
- mov eax, 3
- mov ebx, 0
- mov ecx, integer
- mov edx, 1
- mov ecx, [integer]
- sub ecx, '0'
- mov eax, [sum]
- sub eax, '0'
- mov ebx, [iterator]
- sub ebx, '0'
- add eax, ebx
- inc ebx
- cmp ecx, ecx
- jn
Advertisement
Add Comment
Please, Sign In to add comment