Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- temp resd 1
- section .text
- global main
- main :
- push x
- push fmt
- call scanf
- add esp, 8
- mov dword[temp], 0
- mov dword[temp+4], 1
- mov ebx, 0
- mov ecx, 46
- mov eax, 1
- mov edi, 2
- loopingg :
- add eax, dword[temp+4*ebx]
- mov dword[temp+4*edi], eax
- inc ebx
- inc edi
- loop loopingg
- mov ebx, [x]
- mov eax, dword[temp+4*ebx]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement