Nios® II Processor Reference Guide

ID 683836
Date 8/28/2023
Public
Document Table of Contents

8.5.44. eret

Instruction exception return
Operation

status ←  estatus

PC  ←  ea

Assembler Syntax

eret

Example

eret

Description

Copies the value of estatus into the status register, and transfers execution to the address in ea.

Usage

Use eret to return from traps, external interrupts, and other exception handling routines. Note that before returning from hardware interrupt exceptions, the exception handler must adjust the ea register.

Exceptions

Misaligned destination address

Supervisor-only instruction

Instruction Type

R

Instruction Fields

None

Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0x1d 0x1e C 0x01
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x01 0 0x3a