3
DATA FORMATS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
15
3
.
7
Signed
16
-Bit Transfer (Register
→
Register)
Example:
ld.h
%rd
,
%rs
X
%rs
31
16 15
0
S
S
S
S
S
S
S
S
31
16
Halfword
0
%rd
S
S
S
S
S
S
S
S
S
S
Halfword
Figure
3
.
7
.
1
Signed
16
-Bit Transfer (Register
→
Register)
Bits
31
–
16
in the destination register are sign-extended.
3
.
8
Unsigned
16
-Bit Transfer (Memory
→
Register)
Example:
ld.uh
%rd
,[
%rb
]
[
%rb
]
0x
∗∗∗∗∗∗∗
0
Byte 0
7
7
8
0
0
0
0
0
0
0
0
0
31
16 15
Byte 0
Byte 1
0
0
0x
∗∗∗∗∗∗∗
1
Byte 1
%rd
0
0
0
0
0
0
0
0
Figure
3
.
8
.
1
Unsigned
16
-Bit Transfer (Memory
→
Register)
Bits
31
–
16
in the destination register are zero-extended.
3
.
9
Signed
16
-Bit Transfer (Memory
→
Register)
Example:
ld.h
%rd
,[
%rb
]
S
[
%rb
]
0x
∗∗∗∗∗∗∗
0
Byte 0
7
7
8
0
31
16 15
Byte 0
Byte 1
0
0x
∗∗∗∗∗∗∗
1
Byte 1
%rd
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S
Figure
3
.
9
.
1
Signed
16
-Bit Transfer (Memory
→
Register)
Bits
31
–
16
in the destination register are sign-extended.
3
.
10
16
-Bit Transfer (Register
→
Memory)
Example:
ld.h [
%rb
],
%rs
X
%rs
31
16
[
%rb
]
0x
∗∗∗∗∗∗∗
0
Byte 0
7
0
7
8
15
Byte 0
Byte 1
0
0x
∗∗∗∗∗∗∗
1
Byte 1
Figure
3
.
10
.
1
16
-Bit Transfer (Register
→
Memory)