7
DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
123
ld.w
%rd
,
sign6
Function
Word data transfer
Standard)
rd
(
5
:
0
)
←
sign6
(
5
:
0
),
rd
(
31
:
6
)
←
sign6
(
5
)
Extension
1
)
rd
(
18
:
0
)
←
sign19
(
18
:
0
),
rd
(
31
:
19
)
←
sign19
(
18
)
Extension
2
)
rd
←
sign32
Code
15
12
11
10
9
4
3
0
0
1
1
0
1
1
sign6
r d
0x6C__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
– – – – –
|
|
|
|
Mode
Src: Immediate data (signed)
Dst: Register direct
%rd
=
%r0
to
%r15
CLK
One cycle
Description
(
1
) Standard
ld.w
%rd
,
sign6
;
rd
←
sign6
(sign-extended)
The
6
-bit immediate
sign6
is loaded to the
rd
register after being sign-extended.
(
2
) Extension
1
ext
imm13
; =
sign19
(18:6)
ld.w
%rd
,
sign6
;
rd
←
sign19
(sign-extended),
;
sign6
=
sign19
(5:0)
The immediate data is extended into a
19
-bit quantity by the
ext
instruction and it is loaded to
the
rd
register after being sign-extended.
(
3
) Extension
2
ext
imm13
; =
sign32
(31:19)
ext
imm13
; =
sign32
(18:6)
ld.w
%rd
,
sign6
;
rd
←
sign32
,
sign6
=
sign32
(5:0)
The immediate data is extended into a
32
-bit quantity by the
ext
instruction and it is loaded to
the
rd
register.
(
4
) Delayed instruction
This instruction may be executed as a delayed instruction by writing it directly after a branch
instruction with the
“
d
”
bit. In this case, extension of the immediate by the
ext
instruction
cannot be performed.
Example
ld.w %r0,0x3f ; r0
←
0xffffffff