Skip to content

Instantly share code, notes, and snippets.

@b4284
Created December 26, 2015 09:15
Show Gist options
  • Select an option

  • Save b4284/41c3150d2972075a2ec2 to your computer and use it in GitHub Desktop.

Select an option

Save b4284/41c3150d2972075a2ec2 to your computer and use it in GitHub Desktop.
000000000040069a <xorswap>:
40069a: 8b 07 mov (%rdi),%eax
40069c: 33 06 xor (%rsi),%eax
40069e: 89 07 mov %eax,(%rdi)
4006a0: 33 06 xor (%rsi),%eax
4006a2: 89 06 mov %eax,(%rsi)
4006a4: 31 07 xor %eax,(%rdi)
4006a6: c3 retq
00000000004006a7 <swap>:
4006a7: 8b 07 mov (%rdi),%eax
4006a9: 8b 16 mov (%rsi),%edx
4006ab: 89 17 mov %edx,(%rdi)
4006ad: 89 06 mov %eax,(%rsi)
4006af: c3 retq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment