Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
calculate fibonacci numbers
; Shortest code for finding fibonacci numbers
; setup
mov rax, 0
mov rdx, 1
; for example find the 8th number in the sequence
mov rcx, 8
; core
loop:
xadd rax, rdx
loop .loop
@guywhataguy

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.