Registers

Main x86 and x64 registers

There is 8 General Purpose Registers (GPRs) in x86 and x64 architectures.

Two groups are distinguished :

  • EAX/RAX, EBX/RBX, ECX/RCX and EDX/RDX have to store temporary data for the processor.

  • ESP/RSP, EBP/RBP, ESI/RSI and EDI/RDI are instead used as pointers and indexes

There is three other main registers :

There is other registers like the segment registers (DS, ES, FS, GS, and SS), the control registers (CR0, CR1, CR2, CR3, and CR4), and the debug registers (DR0, DR1, DR2, DR3, DR4, DR5, DR6, and DR7). However, this is not a complete list, and there may be other registers that are available on some 32-bit x86 CPUs.

Last updated