Registers Flashcards

(21 cards)

1
Q

What four categories comprise user registers?

A

General purpose
Data
Address
Condition code

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

Describe a user register

A

Allow machine code to access main memory

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

What do general registers do?

A

As the name suggests. Particularly flexible for operands.

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

What do data registers do?

A

Holding data

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

What do address registers do?

A

Can be somewhat general or for specific addressing modes.

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

Describe control and status registers

A

Used by control unit.

Determine how a program executes.

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

What two things could you consider when designing register architecture?

A

Amount of registers

Size of registers

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

What should you be mindful of when considering the amount of registers?

A

That more is not necessarily better.

If you have fewer, you may have to do more memory access requests.

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

What should you be mindful of when consider register size.

A
  • Registers that deal with addresses should be at least large enough to hold the largest address.
  • Data registers should be able to hold data of multiple types.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What do condition codes?

A

Bits set by the CPU related to a particular instruction.

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

What are the four essential registers for instruction

A

Program Counter
Memory Buffer Register
Memory Address Register
Instruction Register

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

What does the Program Counter hold?

A

Next instruction to be taken.

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

When does the Program Counter update?

A

When the currently executing instruction finishes.

When a conditional branch code is taken.

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

What does the Memory Buffer Register do?

A

Holds data that has to be worked on or sent through the data bus.

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

What does the Memory Address Register do?

A

Specifies the address of what to fetch or store in memory.

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

Where part of the bus does the Memory Buffer Register connect to?

17
Q

What part of the bus does the Memory Address Register connect to?

18
Q

What does the Instruction Register do?

A

It contains the most recently fetched instruction (the thing that is running).

19
Q

What is the simple order of register use

A

1) Fetched instruction goes into instruction register
2) Opcode and operand are specified
3) Data exchanged with MAR and MBR
4) Program counter increments

20
Q

What is the Program Status Word?

A

It’s a register that contains status information.

21
Q

What things could be included in the Program Status Word?

A

Condition codes
Sign of a number
Whether the CPU is in supervisor or user mode