32-Bit Instruction Set

RDCTL

Read Control Register

Operation:

Assembler Syntax:

Example:

RA CTLk

RDCTL %rA

Not preceded by PFX:

RDCTL %g7 ; Loads %g7 from STATUS reg (%ctl0)

Preceded by PFX:

PFX 2

RDCTL %g7 ; Loads %g7 from WVALID reg (%ctl2)

2

32

Description:

 

 

 

 

Not preceded by PFX:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Loads RA with the current contents of the STATUS register (%ctl0).

 

 

 

 

 

 

 

 

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.

 

Condition Codes:

 

 

Flags: Unaffected

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

 

V

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-Bit Instruction Set

Altera Corporation

77

Page 89
Image 89
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Read Control Register, Rdctl %rA