# `mulou`

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

**Multiplication with overflow unsigned** · Pseudo-instruction

Category: Arithmetic

Multiplies the second register by the third, or an immediate, as unsigned values and stores the low 32 bits of the product in the first.

## Forms

- `mulou $t1, $t2, $t3`
  - `mulou $t1,$t2,$t3` → `multu $t2, $t3`; `mfhi $at`; `beq $at, $zero, 1`; `break`; `mflo $t1`
- `mulou $t1, $t2, imm`
  - `mulou $t1,$t2,-100`: Set $t1 to low-order 32 bits of the product of $t2 and signed 16-bit immediate → `addi $at, $zero, imm`; `multu $t2, $at`; `mfhi $at`; `beq $at, $zero, 1`; `break`; `mflo $t1`
  - `mulou $t1,$t2,100000`: Set $t1 to low-order 32 bits of the product of $t2 and 32-bit immediate → `lui $at, hi(imm)`; `ori $at, $at, lo(imm)`; `multu $t2, $at`; `mfhi $at`; `beq $at, $zero, 1`; `break`; `mflo $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`).
- `$t2`: A general-purpose register. It may be the same register as `$t1`.
- `$t3`: A general-purpose register. It may be the same register as `$t1`.
- `imm`: An immediate value: a signed 16-bit value (`-32768` to `32767`) or a 32-bit value (`-2147483648` to `4294967295`). The size your value needs decides which real instructions the assembler uses. Open the row to see them for each size.

## Example

```mips
# Initialize both inputs, then execute mulou with initialized inputs. Inspect $t2: 21.
li $t0, 7
li $t1, 3
mulou $t2, $t0, $t1
```
