5.3 Instruction Set Architecture (P3) Flashcards

1
Q

What does control flow refer to

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

What does explicit control flow look like in the fetch decode execute cycle of a program (setting PC to target)

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

What is an absolute vs relative branch (control flow)

A

Note for relative, PC is already incremented so x should be -1 than seems

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

What is an unconditional vs conditional branch (control flow)

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

What is the difference between compare-plus-branch and compare-then-branch (conditional explicit control flow)

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

What are 3 different data-sources / ways of comparing values in a conditional branch (control flow)

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

What is the difference between an immediate and computed branch (control flow)

A

Immediate is limited to size of operand, computed is not

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

What is branch and link in control flow (can be used for functions)

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

What does an if-else statement look like using instructions

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

What does a do while loop look like using instructions

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

What does a for loop look like using instructions

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

What does a function call look like using instructions

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