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

下载
页码 122
Altera Corporation
47
32323232
32-Bit Instruction Set
2
3
2
-B
it In
st
ru
ctio
n
Se
t
EXT16d
Half-Word Extract (Dynamic)
Operation:
RA
←  (0x00.00 :
hn
RA) where n = RB[1]
Assembler Syntax:
EXT16d %rA,%rB
Example:
LD %i3,[%i4] ; get 32 bits from [%i4 & 0xFF.FF.FF.FC]
EXT16d %i3,%i4 ; extract short int at %i4
Description:
Extracts one of the two half-words in RA. The half-word to-be-extracted is chosen 
by bit 1 of RB. The selected half-word is written into bits 15..0 of RA, and the 
more-significant bits 31..16 are set to zero.
Condition Codes:
Flags: Unaffected
Instruction Format:
RR
Instruction Fields:
A = Register index of operand RA
B = Register index of operand RB
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
1
1
0
1
0
B
A
N
V
Z
C