Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .data
- fmt db "%d", 10, 0
- section .bss
- s: resd 1
- section .text
- extern _printf
- global _cycle
- global _fin
- global _main
- _main:
- mov ecx, dword 1
- mov [s], dword 0
- _cycle: cmp ecx, dword 5
- jg _fin
- add [s], ecx
- add ecx, dword 1
- jmp _cycle
- _fin:
- push dword [s]
- push fmt
- call _printf
- add esp, 8
- xor ecx, ecx
- xor eax, eax
- ret
Add Comment
Please, Sign In to add comment