Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mov ebx,12
- cmp ebx,0
- jge fibo_start
- mov eax,0
- jmp end
- fibo_start:
- cmp ebx,0
- jne not_zero
- mov eax,0
- ret
- not_zero:
- cmp ebx,1
- jne fibo_rec
- mov eax,1
- ret
- fibo_rec:
- sub ebx,1
- push ebx
- call fibo_start
- pop ebx
- mov edx,eax
- sub ebx,1
- push edx
- call fibo_start
- pop edx
- add eax,edx
- ret
- end:
Advertisement
Add Comment
Please, Sign In to add comment