Renesas R8C/Tiny Series Software Manual page 137

16-bit single-chip microcomputer
Hide thumbs Also See for R8C/Tiny Series:
Table of Contents

Advertisement

Chapter 3
Functions
SMOVF
[ Syntax ]
SMOVF.size
[ Operation ]
*1
When size specifier (.size) is (.B)
Repeat
M(A1)
A0
*2*
A1
R3
Until
*1
If R3 is set to 0, this instruction is ignored.
*2
If A0 overflows, the content of R1H is incremented by 1.
[ Function ]
• This instruction transfers a string from a 20-bit source address to a 16-bit destination address by
successively incrementing the address.
• 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.
• When the instruction is completed, A0 or A1 contains the next address after the last-read data.
• If an interrupt request is received during instruction execution, the interrupt is acknowledged after one
data transfer is completed.
[ Flag Change ]
U
I
O
Flag
Change
[ Description Example ]
SMOVF.W
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Transfer string forward
String MOVe Forward
M(2
16
R1H + A0)
A0
+
1
A1
+
1
R3
1
R3 = 0
B
S
Z
D
C
SMOVB, SSTR
page 119 of 263
[ Instruction Code/Number of Cycles ]
B , W
When size specifier (.size) is (.W)
Repeat
M(A1)
A0
A1
R3
Until
3.2
SMOVF
M(2
16
R1H + A0)
*2
A0
+
2
A1
+
2
R3
1
R3 = 0
Functions
Page: 231

Advertisement

Table of Contents
loading

Table of Contents