# `b`

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md) › [Instructions](https://asm-editor.specy.app/documentation/mips/instruction.md)

Web page: https://asm-editor.specy.app/documentation/mips/instruction/b

**Branch** · Pseudo-instruction

Category: Control flow

Branches unconditionally to label.

## Forms

- `b label`
  - `b label` → `bgez $zero, label`

## Operands

- `label`: A named address in the program, such as the start of a loop or a variable in `.data`.

## Example

```mips
# 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
```
