Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. temp resd 1
  2.  
  3. section .text
  4. global main
  5.  
  6. main :
  7. push x
  8. push fmt
  9. call scanf
  10. add esp, 8
  11.  
  12. mov dword[temp], 0
  13. mov dword[temp+4], 1
  14. mov ebx, 0
  15. mov ecx, 46
  16. mov eax, 1
  17. mov edi, 2
  18.  
  19. loopingg :
  20. add eax, dword[temp+4*ebx]
  21. mov dword[temp+4*edi], eax
  22. inc ebx
  23. inc edi
  24. loop loopingg
  25.  
  26. mov ebx, [x]
  27. mov eax, dword[temp+4*ebx]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement