Guest User

Untitled

a guest
Mar 6th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. mov ebx,12
  2. cmp ebx,0
  3. jge fibo_start
  4. mov eax,0
  5. jmp end
  6.  
  7. fibo_start:
  8. cmp ebx,0
  9. jne not_zero
  10. mov eax,0
  11. ret
  12. not_zero:
  13. cmp ebx,1
  14. jne fibo_rec
  15. mov eax,1
  16. ret
  17.  
  18. fibo_rec:
  19. sub ebx,1
  20. push ebx
  21. call fibo_start
  22. pop ebx
  23. mov edx,eax
  24. sub ebx,1
  25. push edx
  26. call fibo_start
  27. pop edx
  28. add eax,edx
  29. ret
  30. end:
Advertisement
Add Comment
Please, Sign In to add comment