Conversion Instructions - Epson S1C17 Series Manual

Cmos 16-bit single chip microcontroller
Hide thumbs Also See for S1C17 Series:
Table of Contents

Advertisement

5.10 Conversion Instructions

The 8/16/24/32 data conversion instructions listed below are provided for supporting C compiler.
cv.ab
%rd,%rs
Converts Byte data (8 bits) into 24-bit data with sign extended.
rs
rd
cv.as
%rd,%rs
Converts 16-bit data into 24-bit data with sign extended.
rs
rd
cv.al
%rd,%rs
Extracts the high-order 8 bits to convert 32-bit data into 24-bit data.
rs
rd
cv.la
%rd,%rs
Extracts the high-order 8 bits to convert 24-bit data into 32-bit data.
rs
rd
cv.ls
%rd,%rs
Extends the sign to convert 16-bit data into 32-bit data.
rs
rd
S1C17 CORE MANUAL
(Rev. 1.2)
23
X
23
S
S
S
S
S
S
S
S
S
S
23
16 15
X
S
23
16 15
15
S
S
S
S
S
S
S
S
S
23
X
23
16 15
15
8 bits
23
16 15
8 bits
23
0
0
0
0
0
0
0
0
0
0
23
16 15
X
S
23
16 15
15
0
0
0
0
0
0
0
0
S
S
Seiko Epson Corporation
8 7
S
Byte
8
7
S
S
S
S
S
S
S
8 bits
Word
16 bits
8 7
8 bits
Unchanged
X
8
7
0
0
0
0
0
0
8 bits
Word
S
S
S
S
S
S S S S S S S S S
5 INSTRUCTION SET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5-23

Advertisement

Table of Contents
loading

Table of Contents