The processor Flashcards

1
Q

Explain the role of a processor

A

The processor or central processing unit is the internal hardware component of the computer that is responsible for processing data and executing the instructions of programs.

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

Explain the role of the ALU

A

It is responsible for performing arithmetic calculations and logical operations.

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

Explain the role of the control unit

A

The control unit is in charge of organising the sequence in which program instructions are executed, followed by decoding the instructions.

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

Explain the role of the clock

A

The system clock generates regular clock pulses by emitting a signal that continuously oscillates between a low (0) and a high (1) state.

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

Explain the role of general purpose registers

A

They keep the results of the intermediate calculations that are produced as part of a larger computation.

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

Explain the role of the program counter

A

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

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

Explain the role of the current instruction register

A

Holds the current instruction that the processor is executing.

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

Explain the role of the memory address register

A

Temporarily holds the address of the memory location (in main memory) that the processor needs to access, either to read from or write to.

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

Explain the role of the memory buffer register

A

Temporarily holds the data values or instructions that are read from or written to the main memory.

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

Explain the role of the status register

A

Used to store information about the result of the last instruction that the ALU executed.

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

Explain the role of the accumulator

A

Stores the result of any calculation processed by the ALU.

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

What is an instruction set?

A

the complete set of all the instructions in machine code that can be recognized and executed by a CPU.

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

What can instructions consist of?

A

instructions consist of an opcode and
one or more operands (value, memory address
or register).

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

What happens in an immediate addressing mode?

A

The operand is treated as data.

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

What happens in a direct addressing mode?

A

the operand is treated as a memory address where data is stored.

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

What is an interrupt?

A

An interrupt is a signal that is sent to the processor to request immediate attention.

17
Q

What happens when the processor is interrupted?

A

When the processor receives an interrupt request, it suspends what it is doing and runs the process associated with the interrupt.

18
Q

What is an ISR?

A

An ISR (interrupt service routine) is a mini program that has been designed to respond to an interrupt’s request.

19
Q

What are the steps of servicing an interrupt?

A

1) The processor receives the interrupt
2) The processor completes the fetch-decode-execute cycle of the instruction that it was running when it received the interrupt
3) The current contents of the processor registers (including the program counter) are saved to memory
4) The origin of the interrupt is identified so that the appropriate ISR is called
5) All other lower-priority interrupts are put on hold to allow the ISR to finish running
6) The program counter is updated with the address of the first instruction of the ISR
7) The ISR completes its execution
8) The processor registers are reloaded with the values that were saved to memory
9) The lower-priority interrupts that were put on hold are re-established
10) The program counter is set to point to the address of the next instruction that needs to be executed in the program that the processor was running when it received the interrupt