Created
          June 29, 2013 12:21 
        
      - 
      
 - 
        
Save ddeville/5890916 to your computer and use it in GitHub Desktop.  
    x86_64 registers
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
See http://www.clarkcox.com/blog/2009/02/04/inspecting-obj-c-parameters-in-gdb/ and the official docs http://math-atlas.sourceforge.net/devel/assembly/abi_sysV_amd64.pdf for the ABI and calling conventions.