80
2.2.26 DIVXU (divide extend as unsigned)
Operation
Rd
÷
Rs
→
Rd
Assembly-Language Format
DIVXU Rs, Rd
Operand Size
Byte
Condition Code
I
H
N
Z
V
C
—
—
—
—
∆
∆
—
—
I:
Previous value remains unchanged.
H:
Previous value remains unchanged.
N:
Set to I when the divisor is negative; otherwise cleared to 0.
Z:
Cleared to 0 when divisor
≠
0; otherwise not guaranteed.
V:
Previous value remains unchanged.
C:
Previous value remains unchanged.
Description
This instruction divides a 16-bit general register by an 8-bit general register and places the result
in the 16-bit general register. The quotient is placed in the lower byte. The remainder is placed
in the upper byte. The operation is shown schematically below.
Rd Rs (RdH) (RdL)
Dividend + Divisor Remainder Quotient
16 bits 8 bits 8 bits 8 bits
{
Rd
Valid results (Kd, N, Z) are not assured if division by zero is attempted or an overflow occurs.
Division by zero is indicated in the Zero flag. Overflow can be avoided by the coding shown on
the next page.
Summary of Contents for H8/300L Series
Page 1: ...H8 300L Series Programming Manual ...
Page 6: ...iv ...
Page 8: ...2 ...
Page 11: ......
Page 14: ......
Page 46: ......
Page 48: ......
Page 60: ......
Page 83: ......
Page 116: ......
Page 150: ...144 ...
Page 151: ......
Page 156: ...150 ...