Chapter 4: Data dependent branching/Absolute Addressing Flashcards
What is data dependent branching?
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.
Example pseudocode for a conditional loop?
Example code for a if/else loop?
What is Absolute addressing?
Absolute addressing means that the destination address for the jump is given in the instruction.
Problems with absolute addressing?
However the difficulty with this addressing mode is that there is often not enough space within the instruction for the full address.
Absolute addressing, methods to get around the problem of not having enough space to store the full address?
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.