Excalibur electronic A-MNL-NIOSPROG-01.1 用户手册
Altera Corporation
77
32323232
32-Bit Instruction Set
2
3
2
-B
it In
st
st
ru
ctio
n
n
Se
t
t
RDCTL
Read Control Register
Operation:
RA
← CTLk
Assembler Syntax:
RDCTL %rA
Example:
Not preceded by PFX:
RDCTL %g7 ; Loads %g7 from STATUS reg (%ctl0)
RDCTL %g7 ; Loads %g7 from STATUS reg (%ctl0)
Preceded by PFX:
PFX 2
PFX 2
RDCTL %g7 ; Loads %g7 from WVALID reg (%ctl2)
Description:
Not preceded by PFX:
Loads RA with the current contents of the STATUS register (%ctl0).
Preceded by PFX:
Preceded by PFX:
Loads RA with the current contents of the control register selected by K. See
“Control Registers” on page 4. for a list of control registers and their indices.
“Control Registers” on page 4. for a list of control registers and their indices.
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
1
1
0
0
1
A
N
V
Z
C
−
−
−
−