Skip to content

DIVU

Operation

Divides the unsigned destination by source and writes the quotient.

Assembler Syntax

DIVU.{B|W|L|Q}(z) <ea>(e), Rn(d)

DIVU.{B|W|L|Q}(z) Rn(s), Rn(d)

Privilege

Unprivileged

Repeat eligibility

REP eligible; REPcc observes dst

Divides the selected-width unsigned destination value by the unsigned source value and writes the quotient. A zero divisor raises DIVIDE_BY_ZERO.

Let \(n\) be the selected operand width, \(d\) the unsigned dividend, and \(s\) the unsigned divisor. The quotient and remainder are defined by $\(q = \lfloor d/s \rfloor, \qquad r = d - qs .\)$ For a nonzero divisor, the remainder satisfies \(0 \le r < s\). The destination supplies the dividend and receives \(q\).

A zero divisor raises DIVIDE_BY_ZERO; no destination is changed.

2.75in

Encodings

DIVU.{B|W|L|Q}(z) <ea>(e), Rn(d)

Format: Instruction format for DIVU.{B|W|L|Q}(z) <ea>(e), Rn(d)

Format: Instruction format for DIVU.{B|W|L|Q}(z) <ea>(e), Rn(d)

2.75in DIVU.{B|W|L|Q}(z) Rn(s), Rn(d)

Format: Instruction format for DIVU.{B|W|L|Q}(z) Rn(s), Rn(d)

Format: Instruction format for DIVU.{B|W|L|Q}(z) Rn(s), Rn(d)