Ld.b %Rd, %Rs - Epson S1C17 Series Manual

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

Advertisement

7 DETAILS OF INSTRUCTIONS

ld.b %rd, %rs

Function
Signed byte data transfer
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 eight low-order bits of the rs register are transferred to the rd register after being sign-
extended to 16 bits. The eight high-order bits of the rd register are set to 0.
(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
ld.b
%r0,%r1
7-86
rd(7:0) ← rs(7:0), rd(15:8) ← rs(7), rd(23:16) ← 0
9
8
7
6
|
|
0
1
0
r d
0
|
|
|
|
|
V
Z
N
|
|
|
; r0 ← r1(7:0) sign-extended
Seiko Epson Corporation
5
4
3
2
1
0
|
0
0
0
r s
|
|
|
|
|
S1C17 CORE MANUAL
(REV. 1.2)

Advertisement

Table of Contents
loading

Table of Contents