Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

divu Rd, Rx, Ry

Rd = Rx / Ry;
Rd+1 = Rx % Ry;
d ∈ {0, 2, …, 14}
{x, y} ∈ {0, 1, …, 15}

Rev1+

111

Rx

00000

Ry

000011010000

Rd

3

4

5

4

12

4

Description

Performs an unsigned divide between the two 32-bit register specified. The quotient is returned in Rd, the remainder in Rd+1. No exceptions are taken if dividing by 0. Result in Rd and Rd+1 is UNDEFINED when dividing by 0.

Status Flags

Q:

Not affected

V:

Not affected

N:

Not affected

Z:

Not affected

C:

Not affected