Chapter 4: Data dependent branching/Absolute Addressing Flashcards

1
Q

What is data dependent branching?

A

If/Else structures are often used in high level languages to do operations dependant on data values. An example of a simple if structure is shown below. An if/else structure requires additional branches to ensure the else block is only executed if the condition is not true.

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

Example pseudocode for a conditional loop?

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

Example code for a if/else loop?

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

What is Absolute addressing?

A

Absolute addressing means that the destination address for the jump is given in the instruction.

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

Problems with absolute addressing?

A

However the difficulty with this addressing mode is that there is often not enough space within the instruction for the full address.

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

Absolute addressing, methods to get around the problem of not having enough space to store the full address?

A

Solutions to this problem could be to restrict the range of the destination address, so that the upper bits of the programme counter are unchanged; or reduce the resolution of the address by omitting the lower bits and assuming that they are zero.

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