- Conditional branch: beq, bne & slt
- Branch if equal: beq register1, register2, L1 - Goto statement L1 if register1 equal register2
- Branch if not equal: bne register1, register2, L1 - Goto statement L1 if register1 not equal register2
- Set on less: slt $t0, $s3, $s4 - $t0 is set to 1 if $s3 is less than $s4, otherwise $t0 is set to 0
- Unconditional jump: j & jr
- Jump: j 2500 - Jump to target address (10000)
- Jump register: jr $t1 - Goto $t1 (for switch statement)
No comments:
Post a Comment