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

This chapter describes the functionality of each instruction by showing syntax, operation, function, select-
able src/dest, flag changes, description examples, and related instructions.
The following shows how to read this chapter by using an actual page as an example.
Chapter 3 Functions
MOV
(1)
(2)
[ Syntax ]
(3)
MOV.size (:format) src,dest
(4)
[ Operation ]
dest
[ Function ]
(5)
This instruction transfers
dest
If
16 bits. If
(6)
[ Selectable src/dest ]
R0L/R0
A0/A0
dsp:8[A0]
dsp:16[A0]
dsp:20[A0]
R2R0
[ Flag Change ]
(7)
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.
(8)
[ Description Example ]
MOV.B:S
MOV.W
(9)
[ Reated Instruction]
src
src
dest
to
.
is an address register when the size specifier (.size) you selected is (.B),
src
is an address register, data is transferred from the address register's 8 low-order bits.
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
O
B
S
Z
D
#0ABH,R0L
#-1,R2
LDE,STE,XCHG
Transfer
MOVe
[ Instruction Code/Number of Cycles ]
G , Q , Z , S (Can be specified)
B , W
(See the 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
92
34
3.1 Guide to This Chapter
3.2 Functions
src
is zero-expanded to transfer data in
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
MOV
Page=193
R1H/R3
[A1]
dsp:8[FB]
abs16
dsp:8[SP]

Advertisement

Table of Contents
loading

Table of Contents