![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_538.png)
514
APPENDIX B INSTRUCTIONS
MB90560 series
Table B.8-6 Unsigned multiplication/division (word, long-word): 11 instructions
*1
3 for division by zero, 7 for overflow, normally 15
*2
4 for division by zero, 8 for overflow, normally 16
*3
6 + (a) for division by zero, 9 + (a) for overflow, normally 19 + (a)
*4
4 for division by zero, 7 for overflow, normally 22
*5
6 + (a) for division by zero, 8 + (a) for overflow, normally 26 + (a)
*6
(b) for division by zero or overflow, normally 2 x (b)
*7
(c) for division by zero or overflow, normally 2 x (c)
*8
3 when byte(AH) is zero, 7 otherwise
*9
4 when byte(ear) is zero, 8 otherwise
*10
5 + (a) when byte(eam) is zero, 9 + (a) otherwise
*11
3 when word(AH) is zero, 11 otherwise
*12
4 when word(ear) is zero, 12 otherwise
*13
5 + (a) when word(eam) is zero, 13 + (a) otherwise
<Caution>
See Table B.5-1, "Number of execution cycles for each type of addressing," and Table B.5-2,
"Compensation values for calculating the number of execution cycles," for (a) to (d) in the
above table.
Mnemonic
DIVU
#
1
~
RG
0
B
0
Operation
LH
-
AH
-
I
-
S
-
T
-
N
-
Z
-
V
C
RMW
-
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
2
2+
2
2+
1
2
2+
1
2
2+
*1
*2
*3
*4
*5
*8
*9
*10
*11
*12
*13
1
0
1
0
0
1
0
0
1
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 (ear)
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)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-