131 Week 4 - Instruction Set Architecture Flashcards

1
Q

Instruction set architecture

A

A set of commands that a processor can understand and execute - the interface between the hardware and software.

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

Reduced instruction set architecture (RISC)

A

Small number of instructions with a common operand format.
Most instructions operate on registers
Typically take 1 clock cycle to execute.

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

Fetch decode execute cycle

A

A constantly repeating cycle within the CPU of fetching, decoding them executing instructions.

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

Registers

A

Very fast bits of memory within the CPU that are used as holding areas for data being worked on inside the CPU.
Arithmetic and logic instructions are often designed to only work on registers.

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

General purpose register

A

Registers used by the arithmetic and logic instructions which do not have a fixed purpose

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

Specific purpose register

A

Registers which have a single fixed purpose e.g., program counter

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

Program counter (PC)

A

Special purpose register that acts as a pointer to the next instruction to be executed.

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

How is PC changed

A

Either incremented by default during FDE cycle or can be explicitly changed using control transfer instructions to point it to a specific address.

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

Handling subroutines

A

Before executing the subroutine, processor notes the value of PC - the return address.
Processor jumps to the start of the subroutine and runs it
At the end of the subroutine processor retrieves return address and continues execution from there.

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

Call stack

A

The call stack allows execution of nested subroutines by pushing and popping return addresses of subroutines to the stack when they are called and when they have finished executing.

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