# `subiu`

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

**Subtract immediate unsigned (no overflow trap)** · Pseudo-instruction

Category: Arithmetic

Subtracts an immediate from the second register and stores the difference in the first, wrapping on overflow instead of trapping.

## Forms

- `subiu $t1, $t2, imm32`
  - `subiu $t1,$t2,100000` → `lui $at, hi(imm32)`; `ori $at, $at, lo(imm32)`; `subu $t1, $t2, $at`

## 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`.
- `imm32`: A 32-bit immediate, `-2147483648` to `4294967295`. A pseudo-instruction that takes one uses the register `$at` as a temporary, so `$at` loses the value it held.

## Example

```mips
# Subtract immediate 3 from 7. Inspect $t2: 4.
li $t0, 7
subiu $t2, $t0, 3
```
