Ask HN: What are some examples of beautiful x86 assembly code?
I bought a nice little booklet of small x86 gems a few years back[1][2] and this one is my favorite:<p><pre><code>  .loop:
      xadd     rax,rdx
      loop     .loop
</code></pre>
Fibonacci with two instructions.<p>[1] <a href="https://www.amazon.com/dp/1502958082" rel="nofollow">https://www.amazon.com/dp/1502958082</a><p>[2] <a href="https://www.xorpd.net/pages/xchg_rax/snip_00.html" rel="nofollow">https://www.xorpd.net/pages/xchg_rax/snip_00.html</a>