Table of Contents

Advertisement

2.2.51 RTE

RTE (ReTurn from Exception)
Operation
@SP+ → CCR
@SP+ → PC
Assembly-Language Format
RTE
Operand Size
Description
This instruction returns from an exception-handling routine by restoring the condition-code
register (CCR) and program counter (PC) from the stack. Program execution continues from the
address restored to the program counter. The CCR and PC contents at the time of execution of this
instruction are lost.
Operand Format and Number of States Required for Execution
Addressing
Mnemonic
Mode
RTE
Notes
The stack structure differs between normal mode and advanced mode.
Don't care
PC
Undet.
Normal mode
23
Operands
1st byte
5
CCR
16 15
8 7
0
Return from Exception Handling
Condition Code
I
UI H
I:
Restored from the corresponding bit on
the stack.
UI: Restored from the corresponding bit on
the stack.
H: Restored from the corresponding bit on
the stack.
U: Restored from the corresponding bit on
the stack.
N: Restored from the corresponding bit on
the stack.
Z: Restored from the corresponding bit on
the stack.
V: Restored from the corresponding bit on
the stack.
C: Restored from the corresponding bit on
the stack.
Instruction Format
2nd byte
3rd byte
6
7
0
PC
Advanced mode
23
159
U
N
Z
V
C
No. of
States
4th byte
10
CCR
16 15
8 7
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents