SAF-C164SM Infineon Technologies, SAF-C164SM Datasheet - Page 432

no-image

SAF-C164SM

Manufacturer Part Number
SAF-C164SM
Description
16-Bit CMOS Microcontroller
Manufacturer
Infineon Technologies
Datasheet
Figure 22-2 Local Registers
The software to provide the local register bank for the example shown in
very compact:
After entering the subroutine:
SUB
SCXT
Before exiting the subroutine:
POP
ADD
User’s Manual
SP, #10D
CP, SP
CP
SP, #10D
Old SP
New CP
New SP
;Free 5 words in the current system stack
;Set the new register bank pointer
;Restore the old register bank
;Release the 5 words …
;… of the current system stack
Old CPContents
R4
R3
R2
R1
R0
22-11
MCA04409
Old
Stack
Area
Newly
Allocated
Register
Bank
New
Stack
Area
System Programming
C164CM/C164SM
Figure 22-2
Derivatives
V1.0, 2002-02
is

Related parts for SAF-C164SM