MB90610A Series
Table 22 Accumulator Manipulation Instructions (Byte/Word) [6 Instructions]
Mnemonic
#
~
RG
B
Operation
LH AH
I
S
T
N
Z
V
C
RMW
SWAP
1
1
1
1
1
1
3
2
1
2
1
1
0
0
0
0
0
0
0
0
0
0
0
0
byte (A) 0 to 7 ↔ (A) 8 to 15
word (AH) ↔ (AL)
byte sign extension
word sign extension
byte zero extension
word zero extension
–
–
X
–
Z
–
–
*
–
X
–
Z
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
SWAPW/XCHW AL, AH
EXT
EXTW
ZEXT
ZEXTW
*
*
R
R
*
*
Table 23 String Instructions [10 Instructions]
Mnemonic
#
~
RG B
Operation
LH AH
I
S T
N
Z
V C RMW
2
5
5
3
3
MOVS/MOVSI
MOVSD
2
2
Byte transfer @AH+ ← @AL+, counter = RW0
Byte transfer @AH– ← @AL–, counter = RW0
–
–
–
–
–
–
– –
– –
–
–
–
–
–
–
–
–
–
–
*
*
*
*
*
*
2
1
5
5
4
4
SCEQ/SCEQI
SCEQD
2
2
Byte retrieval (@AH+) – AL, counter = RW0
Byte retrieval (@AH–) – AL, counter = RW0
–
–
–
–
–
–
– –
– –
*
*
*
*
*
*
*
*
–
–
*
*
*
*
*
*
1
5
3
FISL/FILSI
2
Byte filling @AH+ ← AL, counter = RW0
–
–
–
– –
*
*
–
–
–
6m+6
*
*
2
8
8
6
6
MOVSW/MOVSWI
MOVSWD
2
2
Word transfer @AH+ ← @AL+, counter = RW0
Word transfer @AH– ← @AL–, counter = RW0
–
–
–
–
–
–
– –
– –
–
–
–
–
–
–
–
–
–
–
*
*
*
*
*
*
2
1
8
8
7
7
SCWEQ/SCWEQI
SCWEQD
2
2
Word retrieval (@AH+) – AL, counter = RW0
Word retrieval (@AH–) – AL, counter = RW0
–
–
–
–
–
–
– –
– –
*
*
*
*
*
*
*
*
–
–
*
*
*
*
*
*
1
8
6
FILSW/FILSWI
2
Word filling @AH+ ← AL, counter = RW0
–
–
–
– –
*
*
–
–
–
6m+6
*
*
m: RW0 value (counter value)
n: Loop count
*1: 5 when RW0 is 0, 4 + 7 × (RW0) for count out, and 7 × n + 5 when match occurs
*2: 5 when RW0 is 0, 4 + 8 × (RW0) in any other case
*3: (b) × (RW0) + (b) × (RW0) when accessing different areas for the source and destination, calculate (b) separately
for each.
*4: (b) × n
*5: 2 × (RW0)
*6: (c) × (RW0) + (c) × (RW0) when accessing different areas for the source and destination, calculate (c) separately
for each.
*7: (c) × n
*8: 2 × (RW0)
Note: For an explanation of “(a)” to “(d)”, refer to Table 4, “Number of Execution Cycles for Each Type of Addressing,”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
88