Table B.2.1Q Accumulator Manipulation Instructions (Byte/Word) (6 Instructions); Table B.2.1R String Instructions (10 Instructions) - Fujitsu F2MC-16LX MB90580 Series Hardware Manual

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

Advertisement

Table B.2.1q Accumulator Manipulation Instructions (Byte/Word) (6 Instructions)

Mnemonic
SWAP
SWAPW / XCHW A,T
EXT
EXTW
ZEXT
ZEXTW
Mnemonic
MOVS / MOVSI
MOVSD
SCEQ / SCEQI
SCEQD
FILS / FILSI
MOVSW / MOVSWI
MOVSWD
SCWEQ / SCWEQI
SCWEQD
FILSW / FILSWI
*1:
5 when RW0 is 0, 4 + 7 × (RW0) for count out, and 7n + 5 when match occurs.
*2:
5 when RW0 is 0, 4 + 8 × (RW0) in any other case.
*3:
(b) × (RW0) + (b) × (RW0): when accessing a source and a destination in different areas, the
value of item (b) should be computed separately for each.
*4:
(b) × n
*5:
2 × (RW0)
*6:
(c) × (RW0) + (c) × (RW0): when accessing a source and a destination in different areas, the
value of item (c) should be computed separately for each.
*7:
(c) × n
*8:
2 × (RW0)
m :
RW0 value (counter value)
n :
Loop count
Note: For an explanation of "(a)" to "(d)" in the colunm "B", see Table B.2d and Table B.2e.
MB90580 Series
#
~
RG
B
1
3
0
0
1
2
0
0
1
1
0
0
1
2
0
0
1
1
0
0
1
1
0
0

Table B.2.1r String Instructions (10 Instructions)

#
RG
B
~
byte transfer @AH+ ← @AL+, counter = RW0
2
*2
+&
*3
byte transfer @AH- ← @AL-, counter = RW0
2
*2
+&
*3
byte search @AH+ ← AL, counter = RW0
2
*1
+&
*4
byte search @AH- ← AL, counter = RW0
2
*1
+&
*4
byte fill @AH+ ← AL, counter = RW0
2
6m+6
+&
*3
word transfer @AH+ ← @AL+, counter = RW0
2
*2
+)
*6
word transfer @AH- ← @AL-, counter = RW0
2
*2
+)
*6
word search @AH+ ← AL, counter = RW0
2
*1
+)
*7
word search @AH- ← AL, counter = RW0
2
*1
+)
*7
word fill @AH+ ← AL, counter = RW0
2
6m+6
+)
*6
Operation
byte (A)0-7 ←→ (A)8-15
word (AH) ←→ (AL)
byte signed extension
word signed extension
byte zero extension
word zero extension
Operation
B.2 Instruction Set
LH AH
I
S
T
N
-
-
-
-
-
-
-
-
-
-
-
X
-
-
-
-
-
X
-
-
-
Z
-
-
-
-
R
-
Z
-
-
-
R
LH AH I S T
N
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
APPENDIX B: Instructions
Z
V
C
RMW
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Z
V
C
RMW
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
333

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents