3 ms·
Is this the Fibonacci sequence? EDIT: For anyone curious, being rax and rdx the starting terms, the rcx-th term is found in rax at the end of the loop.
by kaoD 12y ago
Is this the Fibonacci sequence?
EDIT: For anyone curious, being rax and rdx the starting terms, the rcx-th term is found in rax at the end of the loop.
- jgeralnik 12y agoYup. The xadd opcode adds the two registers together and swaps them so that the previous element is always in the same register.