Renesas R8C/Tiny Series Software Manual page 91

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 you selected (.B) for the size specifier (.size),
• If you selected (.W) for 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 you selected (.B) for the size specifier (.size), the flag is set when the operation resulted in MSB
= 1; otherwise cleared. The flag does not change if you selected (.W) for the size specifier (.size).
Z :
If you selected (.B) for the size specifier (.size), the flag is set when the operation resulted in 0;
otherwise cleared. The flag does not change if you selected (.W) for the size specifier (.size).
[ Description Example ]
EXTS.B
R0L
EXTS.W
R0
dest
and stores the result in
B
S
Z
D
C
Extend sign
EXTend Sign
[ Instruction Code/Number of Cycles ]
B , W
dest
dest
is sign extended to 16 bits.
R0L/R0
A0/A0
dsp:8[A0]
dsp:16[A0] dsp:16[A1]
dsp:20[A0] dsp:20[A1]
R2R0
74
.
dest
R0H/R1
R1L/R2
A1/A1
[A0]
dsp:8[A1]
dsp:8[SB]
dsp:16[SB]
abs20
R3R1
A1A0
3.2 Functions
EXTS
Page=178
R1H/R3
[A1]
dsp:8[FB]
abs16

Advertisement

Table of Contents
loading

Table of Contents