pTAL Conversion Guide

Pointers
pTAL Conversion Guide527302-002
10-15
pTAL
Table 10-4. Result Returned by @ Operator
pTAL Construct Result of @ Operator
Simple variable
Value parameter
Array element
Address type from Table 10-3
on page 10-10
Pointer
Reference parameter
Structure pointer
Pointer field of a direct structure
Pointer field of an indirect structure
Direct array
Indirect array
Direct structure
Indirect structure
WADDR
Nonpointer field of an extended structure
Substructure of an extended structure
Extended pointer field of a structure
EXTADDR
Extended array
Extended structure
Substructure of a direct structure
Substructure of an indirect structure
BADDR
STRING read-only array CBADDR
INT read-only array
Label
CWBADDR
Subprocedure name
Subprocedure entry point
Procedure name
Procedure entry point
Procedure pointer
PROCADDR
Example 10-1. @ Operator Applied to Structure Elements (page 1 of 2)
INT .i; ! Pointer to data in the user data segment
INT(32) .EXT j; ! Pointer to data in extended memory
INT .SG sw; ! Pointer to data in system globals
STRING .SGX sb; ! Pointer to data in system globals
STRUCT .s; ! Indirect structure in user data segment
BEGIN
STRUCT s1; ! Substructure
BEGIN
INT k;
END;
END;