# `mthi`

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

**Move to HI**

Category: Data movement

Copies a register into the special HI register, overwriting any prior multiply or divide result stored there.

## Forms

- `mthi $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`).

## Example

```mips
# Set the implicit HI register explicitly, then read it back. Inspect $t2: 42.
li $t0, 42
mthi $t0
mfhi $t2
```
