CPU Registers Flashcards

(13 cards)

1
Q

What are CPU registers?

A

Fast access pieces of memory written within the processor.

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

What are the two types of CPU registers?

A

General purpose registers
Dedicated / special purpose registers

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

What do general purpose registers do?

A

Used in the ALU to temporarily store the results of the intermediate calculations that are produced as part of a larger calculation.

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

What are special dedicated purpose registers used for?

A

Their used in the fetch execute cycle as each has a specific role to play in each phase of the cycle.

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

What are all the registers in the Fetch Execute cycle?

A

Program counter (PC)
Current instruction registers (CIR)
Status register (SR)
Memory address register (MAR)
Memory data register (MDR)
Accumulator

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

What does the program counter (PC) do?

A

Holds the address of the next instruction to be executed by the P.

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

What does the current instruction register (CIR) do?

A

Holds the current instruction that the P is executing.

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

What does the Status register (SR) do?

A

Used to store information about the result of the last instruction that the ALU executed.
Each bit within the status register acts as a flag to indicate if an error or exception has occurred within the process, or to enable or disable interrupts to be raised.

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

What does the Memory address register (MAR) do?

A

Temporarily holds the address of the M location (in main M) that the P needs to access, either to read from (i.e. load data) or write (i.e. store data) to.

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

What does the Memory Data Register (MDR) do?

A

Temporarily holds the data (data values or instructions) that are read or written to the main M.

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

What does the accumulator do?

A

Stores the results of ANY calculation in the ALU.

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

What is an error or exception (CPU registers)?

A

An error or exception is when the result of a calculation requires further action. For example, it signifies if the result of a calculation is negative or zero, or if a calculation produced an overflow.

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

What is an interrupt (CPU registers)?

A

An interrupt is an event outside of the program process that requires the attention of the processor. For example, indicating a hardware malfunction.

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