Encoding:

RRR

11100

rx

ry

rz

SUBU

11

5

3

3

3

2

Format:

SUBU rz, rx, ry

MIPS16e

Subtract Unsigned Word

Purpose:

Subtract Unsigned Word

To subtract 32-bit integers.

Description:

GPR[rz] = GPR[rx] - GPR[ry]

The 32-bit word value in GPR ry is subtracted from the 32-bit value in GPR rx and the 32-bit arithmetic resultis placed into GPR rz.

No integer overfl w exception occurs under any circumstances.

Restrictions:

None

Operation:

temp = GPR[Xlat(rx)] - GPR[Xlat(ry)]
GPR[Xlat(rz)] = (temp)

Exceptions:

None

Programming Notes:

The term "unsigned" in the instruction name is a misnomer;this operation is 32-bit modulo arithmetic that does not trap on overfl w. It is appropriate for unsigned arithmetic, such as address arithmetic, or integer arithmetic environments that ignore overfl w, such as C language arithmetic.