# `move`

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

Pseudo-instruction

Category: Data movement

Copies the contents of the second register into the first.

Used in: [The MIPS instruction set](https://asm-editor.specy.app/learn/courses/mips/introduction/the-mips-instruction-set.md) (MIPS assembly), [Comparing two numbers](https://asm-editor.specy.app/learn/courses/mips/introduction/comparing-two-numbers.md) (MIPS assembly), [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), [syscall in the Playground](https://asm-editor.specy.app/learn/courses/mips/talking-to-the-outside-world/syscall.md) (MIPS assembly), [Moving values around](https://asm-editor.specy.app/learn/courses/mips/examples/moving-values.md) (MIPS assembly), [Maximum and unsigned distance](https://asm-editor.specy.app/learn/courses/mips/examples/if-else.md) (MIPS assembly), [Byte length of a string](https://asm-editor.specy.app/learn/courses/mips/examples/string-length.md) (MIPS assembly), [Masks, shifts, popcount, and leading zeroes](https://asm-editor.specy.app/learn/courses/mips/examples/bit-tricks.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)

## Forms

- `move $t1, $t2`
  - `move $t1,$t2` → `addu $t1, $zero, $t2`

## 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`).
- `$t2`: A general-purpose register. It may be the same register as `$t1`.

## Example

```mips
# Copy 7 from $t0. Inspect $t2: 7.
li $t0, 7
move $t2, $t0
```
