Motorola HC12 Refrence Manual page 236

Table of Contents

Advertisement

RTC
Operation:
(M
(SP)
(SP) + $0001 ⇒ SP
(M
(SP)
(SP) + $0002 ⇒ SP
Description:
Terminates subroutines in expanded memory invoked by the CALL
instruction. Returns execution flow from the subroutine to the calling pro-
gram. The program overlay page (PPAGE) register and the return ad-
dress are restored from the stack; program execution continues at the
restored address. For code compatibility purposes, CALL and RTC also
execute correctly in M68HC12 devices that do not have expanded mem-
ory capability.
Condition Codes and Boolean Formulas:
S
None affected.
Addressing Modes, Machine Code, and Execution Times:
Source Form
RTC
MOTOROLA
6-176
Return from Call
) ⇒ PPAGE
) ⇒ PC
: M
(SP + 1)
H
X
H
I
N
Z
Address Mode
INH
0A
INSTRUCTION GLOSSARY
: PC
L
V
C
Object Code
RTC
Cycles
Access Detail
6
uUnPPP
CPU12
REFERENCE MANUAL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents