[SPOILER ALERT] My attempt at tackling the x86_64 asm riddles in xorpd's xchg rax,rax book. Pull requests welcome.
Assembly
Switch branches/tags
Nothing to show
Clone or download
Latest commit 3a84172 Oct 21, 2017
Permalink
Failed to load latest commit information.
0x00.asm
0x01.asm
0x02.asm
0x03.asm
0x04.asm
0x05.asm
0x06.asm
0x07.asm
0x08.asm
0x09.asm
0x0a.asm
0x0b.asm
0x0c.asm
0x0d.asm
0x0e.asm
0x0f.asm
0x10.asm
0x11.asm
0x12.asm
0x13.asm
0x14.asm
0x15.asm
0x16_TODO.asm
0x17.asm
0x18.asm
0x19.asm
0x1a.asm
0x1b.asm
0x1c.asm
0x1d.asm
0x1e.asm
0x1f_TODO.asm
0x20.asm
0x21.asm
0x22.asm
0x23.asm
0x24.asm
0x25_TODO.asm
0x26.asm
0x27.asm
0x28.asm
0x29.asm
0x2a.asm Add files via upload Jul 13, 2017
0x2b_TODO.asm
0x2c.asm
0x2d.asm
0x2e.asm Add files via upload Jul 13, 2017
0x2f.asm
0x30.asm
0x31.asm Add files via upload Jul 13, 2017
0x32.asm
0x33.asm
0x34.asm
0x35.asm
0x36.asm Add files via upload Jul 13, 2017
0x37.asm
0x38.asm
0x39.asm
0x3a_TODO.asm
0x3b_TODO.asm
0x3c_TODO.asm
0x3d_TODO.asm
0x3e_TODO.asm Update 0x2b, 0x3a, and 0x3e Oct 21, 2017
0x3f_TODO.asm
LICENSE
README.md
title.asm

README.md

xorpd-solutions

[SPOILER ALERT] My attempt at tackling the x86_64 asm riddles in xorpd's xchg rax,rax book. Pull requests welcome.

; 0x40 assembly riddles

"xchg rax,rax" is a collection of assembly gems and riddles I found over many years of reversing and writing assembly code. The book contains 0x40 short assembly snippets, each built to teach you one concept about assembly, math or life in general.

Be warned - This book is not for beginners. It doesn't contain anything besides assembly code, and therefore some x86_64 assembly knowledge is required.

How to use this book? Get an assembler (Yasm or Nasm is recommended), and obtain the x86_64 instruction set. Then for every snippet, try to understand what it does. Try to run it with different inputs if you don't understand it in the beginning. Look up for instructions you don't fully know in the Instruction sets PDF. Start from the beginning. The order has meaning.

As a final note, the full contents of the book could be viewed for free on my website (Just google "xchg rax,rax").

-- xorpd