# `eret`

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md) › [Instructions](https://asm-editor.specy.app/documentation/mips/instruction.md)

Web page: https://asm-editor.specy.app/documentation/mips/instruction/eret

**Exception return**

Category: System

Returns from an exception or interrupt handler by restoring the PC from EPC and clearing the exception level bit.

Used in: [Exceptions and coprocessor 0](https://asm-editor.specy.app/learn/courses/mips/talking-to-the-outside-world/exceptions-and-coprocessor-0.md) (MIPS assembly)

## Forms

- `eret`

## Description

Restores the PC from the EPC register (Coprocessor 0 register 14) and clears the Exception Level bit (bit 1) in the Status register, re-enabling interrupts and returning to user mode.

## Example

```mips
# eret loads the return PC from CP0 EPC. Inspect $t2: 2 after returning to resume.
la $t0, resume
mtc0 $t0, $14
eret
li $t2, 1
resume: li $t2, 2
```
