Guardian Programmer's Guide

Table Of Contents
Managing Memory
Guardian Programmer’s Guide 421922-014
17 - 5
Managing the TNS User Data Segment
Figure 17-2(e) shows what happens when procedure 2 returns. The process continues
in the calling procedure at the program address immediately following the call to the
procedure that just returned. It does this by restoring the saved values for the
P register, E register, and L register. The S register moves back to the end of the local
variables for procedure 1.
Figure 17-2(f) shows what happens when procedure 1 returns control to the main
procedure. Again the P register, E register, and L register values are restored using
Figure 17-2. The Data Stack
VST088.VSD