NonStop S-Series Server Description Manual (G06.27+)
TNS Execution Modes
HP NonStop S-Series Server Description Manual—520331-004
6-47
A Procedure’s Local Variables
Following the generation of the local variables, this area consists of:
L[1] = i
L[2] = j (initialized with a value of 5)
L[3] = an address pointer to the array "k"
L[4:35] = the array "k"
Once allocated, data in the local area is addressed relative to the current L register
setting using the L-plus-relative addressing mode. As illustrated, this mode can access
local data directly or can use the direct address as an address pointer (indexing is also
permitted).
Figure 6-26. Defining and Accessing a Procedure’s Local Variables
I
J = 5
127
K
L [0]
L [1]
L [2]
L [3]
G [123]
G [127]
123
L Register
Direct
Displacement
0000000101
L-Plus
Addressing
Mode
x
Indirect
Displacement
0000001111
L-Plus
Addressing
Mode
x
Stack
Marker
0
0 5 6 7 8 9 10 11 12 13 14 15
Data Segment
VST291.vsd