pTAL Conversion Guide

Contents
pTAL Conversion Guide527302-002
xvii
Examples (continued)
Examples (continued)
Example 20-15. Testing Condition Codes Set in Conditional Expressions 20-25
Example 20-16. Testing Condition Codes After Comparing Addresses 20-26
Example 20-17. Using Hardware Indicators Across Procedures (TAL) 20-27
Example 20-18. Using Hardware Indicators Across Procedures (pTAL) 20-27
Example 20-19. Returning the Condition Code to a Caller (pTAL) 20-28
Figures
Figure 10-1. An Example of WADDR and EXTADDR Address Types (TAL) 10-7
Figure 10-2. Pointer Declaration and Memory Allocation in TAL 10-9
Figure 10-3. Pointer Declaration and Memory Allocation in pTAL 10-9
Figure 10-4. An Invalid Arithmetic Expression in pTAL 10-33
Figure 10-5. A Valid Arithmetic Expression in pTAL 10-34
Figure 10-6. Example of Pointer Widths 10-38
Figure 10-7. User Data Segment on TNS Architecture 10-42
Figure 11-1. Alignment of a SHARED8 Structure With Base Alignment of 8 11-4
Figure 11-2. Well-Aligned and Misaligned SHARED8 Structures With Base Alignment
of 8 11-5
Figure 11-3. Alignment of a SHARED8 Structure With Base Alignment of 4 11-6
Figure 11-4. Well-Aligned and Misaligned SHARED8 Structures With Base Alignment
of 4 11-7
Figure 12-1. Indirect Arrays in TAL and pTAL 12-3
Figure 12-2. Equivalenced Variables That Are Valid in TAL But Not in pTAL 12-11
Figure 12-3. Equivalenced Arrays 12-12
Figure 12-4. The Object and Address Types of a Pointer 12-13
Figure 13-1. Ending Address After Comparing INT Strings in the User Data
Segment 13-11
Figure 13-2.
Ending Address After Comparing Strings of Data Type STRING and
INT 13-12
Figure 13-3. Ending Address After Comparing INT Strings in Extended Memory and
the User Data Segment 13-13
Figure 18-1. TAL Code Equivalent to $ASCIITOFIXED Routine 18-9
Figure 18-2. TAL Code Equivalent to $CHECKSUM Routine 18-18
Figure 18-3. TAL Code Equivalent to $COUNTDUPS Routine 18-19
Figure 18-4. TAL Code Equivalent to $EXCHANGE Routine 18-21
Figure 18-5. TAL Code Equivalent to $EXECUTEIO Routine 18-22
Figure 18-6. TAL Code Equivalent to $FIXEDTOASCII Routine 18-26
Figure 18-7. TAL Code Equivalent to $FIXEDTOASCIIRESIDUE Routine 18-27
Figure 18-8. TAL Code Equivalent to $FREEZE Routine 18-28
Figure 18-9. TAL Code Equivalent to $FREEZE Routine 18-29