Skip to content

Instantly share code, notes, and snippets.

@ddeville
Created June 29, 2013 12:21
Show Gist options
  • Save ddeville/5890916 to your computer and use it in GitHub Desktop.
Save ddeville/5890916 to your computer and use it in GitHub Desktop.
x86_64 registers
rax - accumulator
rbx - base
rcx - count
rdx - data
r8-15
rsi - source index
rdi - destination index
rbp - base pointer
rsp - stack pointer
rflags
CF - carry flag
PF - parity flag
AF - auxiliary flag
ZF - zero flag
SF - sign flag
DF - direction flag
OF - overflow flag
rip - instruction pointer
--
for rax, rbx, rcx, rdx:
r*x - 64 bits
e*x - 32 bits (low)
*x - 16 bits (low)
*h - 8 bits (high)
*l - 8 bits (low)
for r8-r15:
rN - 64 bits
rNd - 32 bits (low)
rNw - 16 bits (low)
rNb - 8 bits (low)
for rip, rflags
only 64 bits
for rsi, rdi, rsp, rbp
sil - 8 bits
dil - 8 bits
spl - 8 bits
bpl - 8 bits
@ddeville
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment