First page Back Continue Last page Overview Graphics
Branching is used to redirect the program counter to a different place in the program.
Two branching methods can be used:
- In relative address branching, a positive or negative number is added to the current value in the program counter. The size operand limits the size of the possible offset.
- In absolute address branching, an absolute address is placed in the program counter value so the program can branch anywhere in memory.
Adding a positive number to the program counter in a relative branch instruction will cause a branch to a higher memory location. Adding a negative number results in a branch to a lower memory location.