
7 DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
165
swap %rd, %rs
Function
Swap
Standard) rd(31:24)
← rs(7:0), rd(23:16) ← rs(15:8), rd(15:8) ← rs(23:16), rd(7:0) ← rs(31:24)
Extension 1) Unusable
Extension 2) Unusable
Code
15 12 11 8 7 4 3 0
1 0 0 1 0 0 1 0
r s r d
0x92__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
Swaps the byte order of the rs register high and low and loads the results to the rd register.
8 716 1524 23
Byte 0
Byte 1
Byte 2
Byte 3
0
rs register
31
8 7
16 1524 23
Byte 3
Byte 2
Byte 1
Byte 0
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 r1 = 0x87654321
swap %r0,%r1 ; r0 ← 0x21436587
Comentarios a estos manuales