Renesas R8C/Tiny Series Software Manual page 53

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

Advertisement

Chapter 3 Functions
Chapter 3 Functions
MOV
(1)
(2)
[ Syntax ]
(3)
MOV.size (:format) src,dest
(4)
[ Operation ]
dest
src
[ Function ]
(5)
This instruction transfers
dest
If
is an address register when the size specifier (.size) you selected is (.B),
src
16 bits. If
(6)
[ Selectable src/dest ]
R0L/R0
R0H/R1
A0/A0
A1/A1
dsp:8[A0]
dsp:8[A1]
dsp:16[A0]
dsp:16[A1]
dsp:20[A0]
dsp:20[A1]
R2R0
R3R1
(7)
[ Flag Change ]
Flag
U
I
Change
Conditions
S :
The flag is set when the transfer resulted in MSB of dest = 1; otherwise cleared.
Z :
The flag is set when the transfer resulted in 0; otherwise cleared.
[ Description Example ]
(8)
MOV.B:S
MOV.W
(9)
[ Reated Instruction]
src
to
dest
.
is an address register, data is transferred from the address register's 8 low-order bits.
src
R1L/R2
R1H/R3
[A0]
[A1]
dsp:8[SB]
dsp:8[FB]
dsp:16[SB]
abs16
abs20
#IMM
A1A0
dsp:8[SP]
O
B
S
Z
D
C
#0ABH,R0L
#-1,R2
LDE,STE,XCHG
Transfer
MOVe
[ Instruction Code/Number of Cycles ]
G , Q , Z , S (Can be specified)
B , W
src
(See the next page for src/dest classified by format.)
R0L/R0
R0H/R1
A0/A0
A1/A1
dsp:8[A0]
dsp:8[A1]
dsp:16[A0]
dsp:16[A1]
dsp:20[A0]
dsp:20[A1]
R2R0
R3R1
92
92
36
3.1 Guide to This Chapter
3.2 Functions
MOV
Page=193
is zero-expanded to transfer data in
dest
R1L/R2
R1H/R3
[A0]
[A1]
dsp:8[SB]
dsp:8[FB]
dsp:16[SB]
abs16
abs20
A1A0
dsp:8[SP]

Advertisement

Table of Contents
loading

Table of Contents