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

下载
页码 122
Altera Corporation
41
32323232
32-Bit Instruction Set
2
3
2
-B
it In
st
ru
ctio
n
Se
t
BGEN
Bit Generate
Operation:
RA
← 2
IMM5
Assembler Syntax:
BGEN %rA,IMM5
Example:
BGEN %g7,6 ; set %g7 to 64
Description:
Sets RA to an integer power-of-two with the exponent given by IMM5. This is 
equivalent to setting a single bit in RA, and clearing the rest.
Condition Codes:
Flags: Unaffected
Instruction Format:
Ri5
Instruction Fields:
A = Register index of RA operand 
IMM5 = 5-bit immediate value
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
1
0
0
1
0
IMM5
A
N
V
Z
C