DIVU
|
Unsigned division
|
DIVU
|
DIVide Unsigned
|
[Syntax]
DIVU src, dest
[Operation]
dest = dest / src;
[Function]
- | This instruction divides dest by src as unsigned values and places the quotient in dest. The quotient is rounded towards 0. |
- | The calculation is performed in 32 bits and the result is placed in 32 bits. |
- | The value of dest is undefined when the divisor (src) is 0. |
[Instruction Format]
|
|
|
|
|
DIVU src, dest
|
|
#SIMM:8
|
Rd
|
|
|
#SIMM:16
|
Rd
|
|
|
#SIMM:24
|
Rd
|
|
|
#IMM:32
|
Rd
|
|
|
Rs
|
Rd
|
|
|
[Rs].memex
|
Rd
|
|
|
dsp:8[Rs].memex
|
Rd
|
|
|
dsp:16[Rs].memex
|
Rd
|
|
[Flag Change]
[Condition]
O:The flag is set if the divisor (src) is 0; otherwise it is cleared.
[Description Example]
DIVU #10, R2
DIVU R1, R2
DIVU [R1], R2
DIVU 3[R1].UB, R2