# `jr`

[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/jr

**Jump register**

Category: Control flow

Transfers execution to the address stored in a register.

Used in: [jal, jr, and the course calling convention](https://asm-editor.specy.app/learn/courses/mips/think-in-assembly/jal-jr-and-the-calling-convention.md) (MIPS assembly), [Floating point and Coprocessor 1](https://asm-editor.specy.app/learn/courses/mips/think-in-assembly/floating-point-and-coprocessor-1.md) (MIPS assembly), [A subroutine with its arguments in registers](https://asm-editor.specy.app/learn/courses/mips/examples/subroutine-with-register-arguments.md) (MIPS assembly), [Stack arguments and a stack frame](https://asm-editor.specy.app/learn/courses/mips/examples/subroutine-with-stack-arguments.md) (MIPS assembly), [Recursion: factorial and Fibonacci](https://asm-editor.specy.app/learn/courses/mips/examples/factorial-and-fibonacci.md) (MIPS assembly), [A jump table](https://asm-editor.specy.app/learn/courses/mips/examples/jump-table.md) (MIPS assembly), [Convert a number to a string](https://asm-editor.specy.app/learn/courses/mips/examples/number-to-string.md) (MIPS assembly), [Drawing shapes on the screen](https://asm-editor.specy.app/learn/courses/mips/examples/drawing-on-the-screen.md) (MIPS assembly), [A bouncing ball](https://asm-editor.specy.app/learn/courses/mips/examples/bouncing-ball.md) (MIPS assembly), [Move a square with the keyboard](https://asm-editor.specy.app/learn/courses/mips/examples/keyboard-control.md) (MIPS assembly)

## Forms

- `jr $t1`

## Operands

- `$t1`: Any general-purpose register, `$0` to `$31`, using its numeric or named spelling, such as `$8` or `$t0` (`$zero` is `$0`; `$ra` is `$31`).

## Description

Most commonly used as 'jr $ra' to return from a function call made with 'jal' or 'jalr'.

## Example

```mips
# Return through an explicitly initialized register. Inspect $t2: it is 2 at the target.
la $t0, target
jr $t0
li $t2, 1
target: li $t2, 2
```
