119
3.2 Functions
Chapter 3 Functions
String MOVe Forward
Transfer string forward
[ Syntax ]
SMOVF.size
[ Description Example ]
[ Related Instructions ]
SMOVB,SSTR
SMOVF
SMOVF
[ Flag Change ]
SMOVF.W
B , W
Flag
Change
U
I
O
B
S
Z
D
C
[ Operation ]
*1
[ Instruction Code/Number of Cycles ]
Page=231
[ Function ]
• This instruction transfers string in successively address incrementing direction from the source ad-
dress indicated by 20 bits to the destination address indicated by 16 bits.
• Set the 4 high-order bits of the source address in R1H, the 16 low-order bits of the source address in
A0, the destination address in A1, and the transfer count in R3.
• The A0 or A1 when the instruction is completed contains the next address of the last-read data.
• If an interrupt request is received during instruction execution, the interrupt is acknowledged after one
data transfer is completed.
• This instruction arithmetically shifts
dest
left or right the number of bits indicated by
src
. The bit
*1 If you set a value 0 in R3, this instruction is ingored.
*2 If A0 overflows, the content of R1H is incremented by 1.
When size specifier (.size) is (.W)
Repeat
M(A1)
M(2
16
R1H + A0)
A0
*2
A0 + 2
A1
A1 + 2
R3
R3 – 1
Until
R3 = 0
When size specifier (.size) is (.B)
Repeat
M(A1)
M(2
16
R1H + A0)
A0
*2*
A0
+
1
A1
A1
+
1
R3
R3
–
1
Until
R3 = 0
Содержание R8C/Tiny Series
Страница 50: ...Chapter 3 Functions 3 1 Guide to This Chapter 3 2 Functions...
Страница 151: ...134 Chapter 3 Functions 3 2 Functions Blank for page layout...
Страница 152: ...Chapter 4 Instruction Code Number of Cycles 4 1 Guide to This Chapter 4 2 Instruction Code Number of Cycles...
Страница 278: ...Chapter 6 Calculation Number of Cycles 6 1 Instruction queue buffer...
Страница 287: ...Glossary 1 Glossary Technical terms used in this software manual are explained below They are good in this manual only...
Страница 291: ...Symbol 1 Table of symbols Symbols used in this software manual are explained below They are good in this manual only...
Страница 295: ...REVISION HISTORY R8C Tiny Series SOFTWARE MANUAL Rev Date Description Page Summary B 1 1 00 Jun 19 03 First Edition...
Страница 297: ...R8C Tiny Series Software Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...