CPU Registers Flashcards

1
Q

EAX

A

It’s called the accumulator register because it’s the primary register used for common calculations (such as ADD and SUB). While other registers can be used for calculations, EAX has been given preferential status by assigning it more efficient, one-byte opcodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

AX

A

Least significant 16 bits of EAX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

AH

A

8 most significant bits of AX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

AL

A

8 least significant bits of AX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

EBX

A

In 32-bit architecture, EBX doesn’t really have a special purpose so just think of it as a catch-all for available storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

BX

A

Least significant 16 bits of EBX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

BH

A

8 most significant bits of BX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

BL

A

8 least significant bits of BX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ECX

A

The counter register. the counter (or count) register is frequently used as a loop and function repetition counter, though it can also be used to store any data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CX

A

16 least significant bits of ECX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

CH

A

8 most significant bits of CX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

CL

A

8 least significant bits of CX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

EDX

A

The data register. EDX is kind of like a partner register to EAX. It’s often used in mathematical operations like division and multiplication to deal with overflow where the most significant bits would be stored in EDX and the least significant in EAX. It is also commonly used for storing function variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

DX

A

16 least significant bits of EDX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

DH

A

8 most significant bits of DX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

DL

A

8 least significant bits of DX

17
Q

ESI

A

The source index. The counterpart to EDI, ESI is often used to store the pointer to a read location

18
Q

EDI

A

The destination index. Though it can be (and is) used for general data storage, EDI was primarily designed to store the storage pointers of functions, such as the write address of a string operation

19
Q

EBP

A

The base pointer. EBP is used to keep track of the base/bottom of the stack. It is often used to reference variables located on the stack by using an offset to the current value of EBP, though if parameters are only referenced by register, you may choose to use EBP for general use purposes

20
Q

ESP

A

The stack pointer. ESP is used to track the top of the stack.

21
Q

EIP

A

Instruction pointer. EIP points to the memory address of the next instruction to be executed by the CPU