Intra-Core Control
BRANCH
| 31-26 | 25-21 | 20-16 | 15-0 | |
|---|---|---|---|---|
| BRANCH | 1110XX | rs | rt | imm |
BRANCH rs,rt,immPerforms conditional instruction jump
- xx indicates the comparison type, including BEQ (Branch if Equal), BNE (Branch if Not Equal), BGT (Branch if Greater Than), and BLT (Branch if Less Than);
rsandrtrepresent the general-purpose register numbers participating in the comparison;immindicates the offset relative to the current instruction address for the jump destination when the comparison condition is met.
Example:
BRANCH $1,$2,8JMP
| 31-26 | 25-0 | |
|---|---|---|
| JMP | 111100 | imm |
JMP imm- Performs an unconditional instruction
jump, whereimmspecifies theoffsetrelative to the current instruction address for the jump destination.
Example:
JMP -8