Renesas R8C/Tiny Series Software Manual page 136

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

Advertisement

Chapter 3
Functions
SMOVF
[ Syntax ]
SMOVF.size
*1
[ Operation ]
When size specifier (.size) is (.B)
Repeat
M(A1)
*2*
A0
A1
R3
Until
*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.
[ 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
[ Flag Change ]
U
I
O
Flag
Change
[ Description Example ]
SMOVF.W
[ Related Instructions ]
Transfer string forward
String MOVe Forward
16
M(2
R1H + A0)
A0
+
1
A1
+
1
R3
1
R3 = 0
dest
B
S
Z
D
C
SMOVB,SSTR
[ Instruction Code/Number of Cycles ]
B , W
When size specifier (.size) is (.W)
Repeat
M(A1)
A0
A1
R3
Until
left or right the number of bits indicated by
119
3.2
SMOVF
16
M(2
R1H + A0)
*2
A0
+
2
A1
+
2
R3
1
R3 = 0
Functions
Page=231
src
. The bit

Advertisement

Table of Contents
loading

Table of Contents