General Purpose Registers Flashcards
1
Q
RAX
A
Accumulator register. Often used to store return value
2
Q
RBX
A
Base register. Sometimes used as a base pointer for memory access
3
Q
RDX
A
Data register
4
Q
RCX
A
Counter register. Used as a loop counter
5
Q
RSI
A
Source index. Used as source pointer for string operations
6
Q
RDI
A
destination index. Used as destination pointer in string operations
7
Q
RSP
A
Stack pointer. Holds address of the top of the stack
8
Q
RBP
A
Base pointer. Holds the address of the base/bottom of the stack
9
Q
RIP
A
Instruction pointer. Holds address of next line of code to be executed. Read-only (kind of)