Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern printf
- extern fflush
- extern scanf
- section .data
- fmt db "%d", 0
- fmtprint db "%d",10,0
- section .bss
- input resd 1
- section .text
- global main
- main:
- push input
- push fmt
- call scanf
- add esp, 8
- mov ecx,[input]
- mov eax,1
- loop1:
- mov ebx,2
- mul ebx
- loop loop1
- push eax
- push fmtprint
- call printf
- add esp,8
- exit:
- push 0
- call fflush
- mov eax, 1
- mov ebx, 0
- int 0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement