![Intel NIOS II Owner Reference Manual Download Page 46](http://html1.mh-extra.com/html/intel/nios-ii/nios-ii_owner-reference-manual_2071826046.webp)
Register
Name
Function
Register
Name
Function
r6
Register arguments
r22
Callee-saved register
r7
Register arguments
r23
Callee-saved register
r8
Caller-saved register
r24
et
Exception temporary
r9
Caller-saved register
r25
bt
Breakpoint temporary
r10
Caller-saved register
r26
gp
Global pointer
r11
Caller-saved register
r27
sp
Stack pointer
r12
Caller-saved register
r28
fp
Frame pointer
r13
Caller-saved register
r29
ea
Exception return address
r14
Caller-saved register
r30
sstatus
Status register
r15
Caller-saved register
r31
ra
Return address
Note:
r25
is used exclusively by the JTAG debug module. It is used as the breakpoint
temporary (
bt
) register in the normal register set. In shadow register sets,
r25
is
reserved.
Note:
r30
is used as the breakpoint return address (
ba
) in the normal register set, and as
the shadow register set status (
sstatus
) in each shadow register set. For details
about
sstatus
, refer to The Status Register section.
For more information, refer to the Application Binary Interface chapter of the Nios II
Processor Reference Handbook.
Related Information
Application Binary Interface
on page 146
3.4.2. Control Registers
Control registers report the status and change the behavior of the processor. Control
registers are accessed differently than the general-purpose registers. The special
instructions
rdctl
and
wrctl
provide the only means to read and write to the control
registers and are only available in supervisor mode.
Note:
When writing to control registers, all undefined bits must be written as zero.
The Nios II architecture supports up to 32 control registers. All nonreserved control
registers have names recognized by the assembler.
Table 12.
Control Register Names and Bits
Register
Name
Register Contents
0
status
Refer to
The status Register
on page 48
1
estatus
Refer to
The estatus Register
on page 50
2
bstatus
Refer to
The bstatus Register
3
ienable
Internal interrupt-enable bits
The ienable Register
continued...
3. Programming Model
NII-PRG | 2018.04.18
Nios II Processor Reference Guide
46