Excalibur electronic A-MNL-NIOSPROG-01.1 用户手册

下载
页码 122
Altera Corporation
101
32323232
32-Bit Instruction Set
2
3
2
-B
it In
st
ru
ctio
n
Se
t
SWAP
Swap Register Half-Words
Operation:
RA
h0
RA :
h1
RA
Assembler  Syntax:
SWAP %rA
Example:
SWAP %g3 ; Exchange two half-words in %g3
Description:
Swaps (exchanges positions) of the two 16-bit half-word values in RA. Writes 
result back into RA.
Condition Codes:
Flags: Unaffected
Instruction Format:
Rw
Instruction Fields:
A = Register index of operand RA
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
1
1
1
1
1
0
1
0
0
0
A
N
V
Z
C