CPU16
REFERENCE MANUAL
INSTRUCTION GLOSSARY
MOTOROLA
6-193
RTI
Operation:
Return From Interrupt
RTI
(SK : SP)
+
2
SK : SP
Pull CCR
(SK : SP)
+
2
SK : SP
Pull PC(PK : PC)
6
PK : PC
Description:
Causes normal program execution to resume after an interrupt, or
any exception other than reset. The condition code register and pro-
gram counter are restored from the system stack. When the CCR is
pulled, the PK field is restored, so that execution resumes on the
proper page after the PC is pulled.
Syntax:
Standard
Condition Code Register:
S:
Set or cleared according to CCR restored from stack.
Set or cleared according to CCR restored from stack.
Set or cleared according to CCR restored from stack.
Set or cleared according to CCR restored from stack.
Set or cleared according to CCR restored from stack.
Set or cleared according to CCR restored from stack.
Set or cleared according to CCR restored from stack.
Set or cleared according to CCR restored from stack.
Value changes according to CCR restored from stack.
Set or cleared according to CCR restored from stack.
Value changes according to CCR restored from stack.
Instruction Format:
Addressing Mode
INH
MV:
H:
EV:
N:
Z:
V:
C:
IP:
SM:
PK:
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
S
MV
H
EV
N
Z
V
C
IP
SM
PK
Opcode
2777
Operand
—
Cycles
12
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.