Advertisement
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 eax, dword 1
- _cycle: cmp ecx, dword 10
- jg _fin
- mul ecx
- add ecx, dword 1
- jmp _cycle
- _fin:
- push eax
- push fmt
- call _printf
- add esp, 8
- xor ecx, ecx
- xor eax, eax
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement