Cv.as %Rd, %Rs - Epson S1C17 Series Manual

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

Advertisement

cv.as %rd, %rs

Function
Data conversion from 16 bits to 24 bits
Standard)
Extension 1) Unusable
Extension 2) Unusable
15 14 13 12 11 10
Code
0
0
1
|
|
IL
IE
C
Flag
|
|
Mode
Src: Register direct %rs = %r0 to %r7
Dst: Register direct %rd = %r0 to %r7
CLK
One cycle
Description
(1) Standard
The 16 low-order bits of the rs register are transferred to the rd register after being sign-
extended to 24 bits.
(2) Delayed slot instruction
This instruction may be executed as a delayed slot instruction by writing it directly after a
branch instruction with the "d" bit.
Example
When the R1 register contains 0x8000
cv.as
S1C17 CORE MANUAL
(Rev. 1.2)
rd(23:16) ← rs(15), rd(15:0) ← rs(15:0)
9
8
7
|
|
0
1
0
r d
|
|
|
|
|
V
Z
N
|
|
|
23
16 15
rs
X
23
16 15
rd
S
S
S
S
S
S
S
S
%r0,%r1
; r0 = 0xff8000
Seiko Epson Corporation
6
5
4
3
2
1
0
|
1
0
1
1
r s
|
|
|
|
|
S
Word
15
S
16 bits
7 DETAILS OF INSTRUCTIONS
0
0
0
7-29

Advertisement

Table of Contents
loading

Table of Contents