x86-64 Register Cheatsheet
Notes for x86-64 registers and useful pwning info.
References
CPU Registers
Registers | Notes | ||||
---|---|---|---|---|---|
64-bit | 32-bit | 16-bit | 8-bit high | 8-bit low | |
RAX | EAX | AX | AH | AL | Accumulator. Stores return value |
RBX | EBX | BX | BH | BL | Base |
RCX | ECX | CX | CH | CL | Counter for loops |
RDX | EDX | DX | DH | DL | Data (commonly extends the A register) |
RSI | ESI | SI | N/A | SIL | Source index for string operations |
RDI | EDI | DI | N/A | DIL | Destination index for string operations |
RSP | ESP | SP | N/A | SPL | Stack Pointer |
RBP | EBP | BP | N/A | BPL | Stack Frame Base Pointer |
R8 | R8D | R8W | N/A | R8B | General purpose |
R9 | R9D | R9W | N/A | R9B | General purpose |
R10 | R10D | R10W | N/A | R10B | General purpose |
R11 | R11D | R11W | N/A | R11B | General purpose |
R12 | R12D | R12W | N/A | R12B | General purpose |
R13 | R13D | R13W | N/A | R13B | General purpose |
R14 | R14D | R14W | N/A | R14B | General purpose |
R15 | R15D | R15W | N/A | R15B | General purpose |