Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .intel_syntax noprefix
- .global fib
- fib:
- cmp rdi, 1
- jg L1
- mov rax, rdi
- ret
- L1:
- sub rdi, 1
- push rdi
- call fib
- mov rsi, rax
- pop rdi
- push rsi
- sub rdi, 1
- call fib
- pop rsi
- add rax, rsi
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement