87
MB90246A Series
Table 12 Unsigned Multiply/Division (Word, Long) [11 Instructions]
Note: For (b) and (c), refer to “Table 5 Correction Values for Number of Cycles for Calculating Actual Number of
Cycles.”
*1: Set to 3 when the division-by-0, 6 for an overflow, and 14 for normal operation.
*2: Set to 3 when the division-by-0, 6 for an overflow, and 13 for normal operation.
*3: Set to 5 + (a) when the division-by-0, 7 + (a) for an overflow, and 17 + (a) for normal operation.
*4: Set to 3 when the division-by-0, 5 for an overflow, and 21 for normal operation.
*5: Set to 4 + (a) when the division-by-0, 7 + (a) for an overflow, and 25 + (a) for normal operation.
*6: When the division-by-0, (b) for an overflow, and 2
×
(b) for normal operation.
*7: When the division-by-0, (c) for an overflow, and 2
×
(c) for normal operation.
*8: Set to 3 when byte (AH) is zero, 7 when byte (AH) is not zero.
*9: Set to 3 when byte (ear) is zero, 7 when byte (ear) is not zero.
*10:Set to 4 + (a) when byte (eam) is zero, 8 + (a) when byte (eam) is not zero.
*11:Set to 3 when word (AH) is zero, 11 when word (AH) is not zero.
*12:Set to 4 when word (ear) is zero, 11 when word (ear) is not zero.
*13:Set to 4 + (a) when word (eam) is zero, 12 + (a) when word (eam) is not zero.
Mnemonic
#
~
B
Operation
LH AH
I
S
T
N
Z
V
C RMW
DIVU
A
DIVU
A, ear
DIVU
A, eam
DIVUW
A, ear
DIVUW
A, eam
MULU
MULU
MULU
MULUW A
MULUW A, ear
MULUW A, eam
A
A, ear
A, eam
1
2
2 +
2
2+
1
2
2 +
1
2
2 +
*1
*2
*3
*4
*5
*8
*9
*10
*11
*12
*13
0
0
*6
0
*7
0
0
(b)
0
0
(c)
word (AH) /byte (AL)
Quotient
→
byte (AL)
Remainder
→
byte (AH)
word (A)/byte (ear)
Quotient
→
byte (A)
Remainder
→
byte (ear)
word (A)/byte (eam)
Quotient
→
byte (A)
Remainder
→
byte (eam)
long (A)/word (ear)
Quotient
→
word (A)
Remainder
→
word (ear)
long (A)/word (eam)
Quotient
→
word (A)
Remainder
→
word (eam)
byte (AH) byte (AL)
→
word (A)
byte (A) byte (ear)
→
word (A)
byte (A) byte (eam)
→
word (A)
word (AH) word (AL)
→
long (A)
word (A) word (ear)
→
long (A)
word (A) word (eam)
→
long (A)
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
*
*
*
–
–
–
–
–
–
*
*
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–