Table B.2.1F Unsigned Multiplication And Division Instructions (Word/Long-Word) (11 Instructions) - Fujitsu F2MC-16LX MB90580 Series Hardware Manual

16-bit microcontrollers
Hide thumbs Also See for F2MC-16LX MB90580 Series:
Table of Contents

Advertisement

B.2 Instruction Set
Table B.2.1f Unsigned Multiplication and Division Instructions (Word/Long-Word)
Mnemonic
#
DIVU
A
1
DIVU
A,ear
2
DIVU
A,eam
2+
DIVUW
A,ear
2
DIVUW
A,eam
2+
MULU
A
1
MULU
A,ear
2
MULU
A,eam
2+
MULUW A
1
MULUW A,ear
2
MULUW A,eam
2+
*1:
3 when dividing into zero, 7 when an overflow occurs, and 15 normally.
*2:
4 when dividing into zero, 8 when an overflow occurs, and 16 normally.
*3:
6 + (a) when dividing into zero, 9 + (a) when an overflow occurs, and 19 + (a) normally.
*4:
4 when dividing into zero, 7 when an overflow occurs, and 22 normally.
*5:
6 + (a) when dividing into zero, 8 + (a) when an overflow occurs, and 26 + (a) normally.
*6:
(b) when dividing into zero or when an overflow occurs, and 2 × (b) normally.
*7:
(c) when dividing into zero or when an overflow occurs, and 2 × (c) normally.
*8:
3 when byte (AH) is zero, and 7 when byte (AH) is not 0.
*9:
4 when byte (ear) is zero, and 8 when byte (ear) is not 0.
*10:
5 + (a) when byte (eam) is zero, and 9 + (a) when byte (eam) is not 0.
*11:
3 when word (AH) is zero, and 11 when word (AH) is not 0.
*12:
4 when word (ear) is zero, and 12 when word (ear) is not 0.
*13:
5 + (a) when word (eam) is zero, and 13 + (a) when word (eam) is not 0.
Note: For an explanation of "(a)" to "(d)" in the colunm "B", see Table B.2d and Table B.2e.
324
APPENDIX B: Instructions
(11 Instructions)
~
RG
B
*1
0
0
word (AH) / byte (AL)
Quotient → byte (AL)
Remainder → byte (AH)
*2
1
0
word (A) / byte (ear)
Quotient → byte (A)
Remainder → byte (ear)
*3
0
*6
word (A) / byte (eam)
Quotient → byte (A)
Remainder → byte (ear)
*4
1
0
long (A) / word (ear)
Quotient → word (A)
Remainder → word (ear)
*5
0
*7
long (A) / word (eam)
Quotient → word (A)
Remainder → word (eam)
byte (AH) * byte (AL) → word (A)
*8
0
0
byte (A) * byte (ear) → word (A)
*9
1
0
byte (A) * byte (eam) → word (A)
*10
0
(b)
word (AH) * word (AL) → Long (A)
*11
0
0
word (A) * word (ear) → Long (A)
*12
1
0
word (A) * word (eam) → Long (A)
*13
0
(c)
Operation
LH
-
-
-
-
-
-
-
-
-
-
-
AH
I
S
T
N
Z
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
V
C
RMW
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
MB90580 Series

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lx mb90v580F2mc-16lx mb90583F2mc-16lx mb90f583

Table of Contents