English
Language : 

MC9S12HY64 Datasheet, PDF (149/792 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
S12P Memory Map Control (S12PMMCV1)
CALL/RTC instructions should only be used when needed. The JSR and RTS instructions can be used to
access subroutines that are already present in the local CPU memory map (i.e. in the same page in the
program memory page window for example). However calling a function located in a different page
requires usage of the CALL instruction. The function must be terminated by the RTC instruction. Because
the RTC instruction restores contents of the PPAGE register from the stack, functions terminated with the
RTC instruction must be called using the CALL instruction even when the correct page is already present
in the memory map. This is to make sure that the correct PPAGE value will be present on stack at the time
of the RTC instruction execution.
MC9S12HY/HA-Family Reference Manual, Rev. 1.04
Freescale Semiconductor
149