b

Branch Pseudo-instruction

Branches unconditionally to label.

Forms

Operands

label
A named address in the program, such as the start of a loop or a variable in .data.
# b transfers control to the nearby label. Inspect $t2: it is 2 after the target runs.
li $t2, 0
b taken
li $t2, 1
taken: li $t2, 2