Renesas R8C/Tiny Series Software Manual page 92

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

Advertisement

Chapter 3
Functions
EXTS
[ Syntax ]
EXTS.size
dest
[ Operation ]
dest
EXT(dest)
[ Function ]
• This instruction sign extends
• If (.B) is selected as the size specifier (.size),
• If (.W) is selected as the size specifier (.size), R0 is sign extended to 32 bits. In this case, R2 is used
for the upper bytes.
[ Selectable dest ]
[ Flag Change ]
Flag
U
I
O
Change
Conditions
S :
If (.B) is selected as the size specifier (.size), the flag is set when the operation results in MSB =
1; otherwise cleared. The flag does not change if (.W) is selected as the size specifier (.size).
Z :
If (.B) is selected as the size specifier (.size), the flag is set when the operation results in 0;
otherwise cleared. The flag does not change if (.W) is selected as the size specifier (.size).
[ Description Example ]
EXTS.B
R0L
EXTS.W
R0
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
dest
and stores the result in
B
S
Z
D
C
page 74 of 263
Extend sign
EXTend Sign
[ Instruction Code/Number of Cycles ]
B , W
dest
dest
is sign extended to 16 bits.
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
3.2 Functions
.
dest
R1L/R2
[A0]
dsp:8[SB]
dsp:16[SB]
abs20
A1A0
EXTS
Page: 178
R1H/R3
[A1]
dsp:8[FB]
abs16

Advertisement

Table of Contents
loading

Table of Contents