7
DETAILS OF INSTRUCTIONS
166
EPSON
S1C33 FAMILY C33 PE CORE MANUAL
swaph
%rd
,
%rs
Function
Swap
Standard)
rd
(
31
:
24
)
←
rs
(
23
:
16
),
rd
(
23
:
16
)
←
rs
(
31
:
24
),
rd
(
15
:
8
)
←
rs
(
7
:
0
),
rd
(
7
:
0
)
←
rs
(
15
:
8
)
Extension
1
) Unusable
Extension
2
) Unusable
Code
15
12
11
8
7
4
3
0
1
0
0
1
1
0
1
0
r s
r d
0x9A__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
– – – – –
|
|
|
|
Mode
Src: Register direct
%rs
=
%r0
to
%r15
Dst: Register direct
%rd
=
%r0
to
%r15
CLK
One cycle
Description
(
1
) Standard
Converts the
32
-bit data in a general-purpose register between big and little endians at halfword
boundaries.
8 7
16 15
24 23
Byte 0
Byte 1
Byte 2
Byte 3
0
rs
register
31
8 7
16 15
24 23
Byte 1
Byte 0
Byte 3
Byte 2
0
rd
register
31
(
2
) Delayed instruction
This instruction may be executed as a delayed instruction by writing it directly after a branch
instruction with the
“
d
”
bit.
Example
When r
1
=
0
x
12345678
swaph %r2,%r1
; 0x34127856
→
r2