by jbaiter · 8y ago · 0 comments
.loop:
xadd rax,rdx
loop .loop
Fibonacci with two instructions.EDIT: Looks like it is. https://www.xorpd.net/pages/x86_adventures.html
The exercises are open source and can be found here: https://github.com/xorpd/asm_prog_ex I think that more experienced developers can take the instruction set and bash through the exercises.
It's been a long time since I've done any assembly, and that was MIPS, but I don't see how there's any sort of exit condition or anything. I'm guessing there's more to xadd than `x + y = z`?