Branch Instructions Flashcards
A … contains the address of the next instruction to be executed as one of its operands
branch instructions
The instruction contains the target address
Direct
The instruction specifies where the target address is to be found
Indirect
The instruction specifies the differences between the current and the target address
Relative
a branch may also refer to the ..
act of switching execution to a different instruction sequence as a result of executing a branch instruction
A branch instruction computes the target address in one of the following ways
- The target address is the sum of a constant and the address of the branch instruction itself.
- The target address is the absolute address given as an operand to the instruction.
- The target address is the address found in the link register.
- The target address is the address found in the count register.
What are the two categories of branch instructions?
- Unconditional branches
- Conditional branches
These instructions always result in branching
Unconditional branches
These branch instructions may or may not cause branching, depending on some specified conditions
Conditional branches