Guide To This Chapter - Renesas R8C/Tiny Series Software Manual

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

Advertisement

Chapter 3 Functions

3.1 Guide to This Chapter

In this chapter each instruction's syntax, operation, function, selectable src/dest, and flag changes are
listed, and description examples and related instructions are shown.
An example illustrating how to read this chapter is shown below.
Chapter 3 Functions
MOV
(1)
(2)
[ Syntax ]
(3)
MOV.size (:format) src,dest
(4)
[ Operation ]
dest
[ Function ]
(5)
• This instruction transfers
dest
• If
transfer data in 16 bits. If
(6)
[ Selectable src/dest ]
R0L/R0
A0/A0
dsp:8[A0]
dsp:16[A0]
dsp:20[A0]
R2R0
(7)
[ Flag Change ]
Flag
U
Change
Conditions
S :
The flag is set when the transfer results in MSB of dest = 1; otherwise cleared.
Z :
The flag is set when the transfer results in 0; otherwise cleared.
(8)
[ Description Example ]
MOV.B:S
MOV.W
(9)
[ Related Instruction]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
src
src
is A0 or A1 and the selected size specifier (.size) is (.B),
src
src
R0H/R1
R1L/R2
A1/A1
[A0]
dsp:8[A1]
dsp:8[SB]
dsp:16[A1]
dsp:16[SB]
dsp:20[A1]
abs20
R3R1
A1A0
I
O
B
S
Z
D
#0ABH,R0L
#-1,R2
LDE, STE, XCHG
page 34 of 263
Transfer
MOVe
[ Instruction Code/Number of Cycles ]
G , Q , Z , S (Can be specified)
B , W
dest
to
.
is A0 or A1, the 8 low-order bits of A0 or A1 are transferred.
(See next page for src/dest classified by format.)
R1H/R3
R0L/R0
[A1]
A0/A0
dsp:8[FB]
dsp:8[A0]
abs16
dsp:16[A0]
#IMM
dsp:20[A0]
dsp:8[SP]
R2R0
C
90
3.1 Guide to This Chapter
3.2 Functions
MOV
Page: 193
src
is zero-expanded to
dest
R0H/R1
R1L/R2
A1/A1
[A0]
dsp:8[A1]
dsp:8[SB]
dsp:16[A1]
dsp:16[SB]
dsp:20[A1]
abs20
R3R1
A1A0
R1H/R3
[A1]
dsp:8[FB]
abs16
dsp:8[SP]

Advertisement

Table of Contents
loading

Table of Contents