2.2.51 RTE
RTE (ReTurn from Exception)
Return from Exception Handling
Operation
@SP+
→
CCR
@SP+
→
PC
Assembly-Language Format
RTE
Operand Size
—
Condition Code
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.
I
UI
H
U
N
Z
V
C
↕
↕
↕
↕
↕
↕
↕
↕
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
Notes
The stack structure differs between normal mode and advanced mode.
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
—
RTE
5
6
7
0
10
No. of
States
Addressing
Mode
Mnemonic
Operands
PC
23
16 15
8 7
0
Normal mode
Don’t care
CCR
PC
23
16 15
8 7
0
Advanced mode
CCR
Undet.
159