pTAL Conversion Guide

Contents
pTAL Conversion Guide527302-002
xiii
Examples (continued)
Examples (continued)
Example 12-10. Declaring Pointers in Equivalenced Declarations 12-14
Example 12-11. Equivalencing PROCADDRs and PROCPTRs 12-14
Example 12-12. Structure Variants 12-15
Example 12-13. Structure Variants in Reverse Order of Example 12-12 12-16
Example 12-14. Equivalenced Declarations With REFALIGNED Clause 12-16
Example 12-15. Equivalenced Structure Declaration With FIELDALIGN
Clause 12-17
Example 12-16. .SG Notation in pTAL 12-18
Example 12-17. Equivalenced Variables 12-18
Example 13-1. Overflow Results That Vary For TNS and Native Processes 13-2
Example 13-2. Handling Overflow Results That Vary For TNS and Native
Processes 13-2
Example 13-3. Overflow 13-3
Example 13-4. Using Result of 16-bit Operator After an Overflow 13-4
Example 13-5. Comparing Extended Addresses 13-7
Example 13-6. Indexing in TAL and pTAL 13-8
Example 13-7. FIXED(*) Variables 13-9
Example 14-1. TAL Shift Operations 14-1
Example 14-2. Signed Left-Shift Routines for TNS and Native Programs 14-3
Example 15-1. Valid and Invalid Assignments (TAL) 15-3
Example 15-2. INT, STRING, and UNSIGNED Assignments (pTAL) 15-4
Example 15-3. INT(32) and UNSIGNED(31) Assignments (pTAL) 15-4
Example 15-4. Assigning INT to STRING and the Reverse 15-5
Example 15-5. Pointer Assignments (TAL) 15-5
Example 15-6. Implicit Pointer Change (TAL) 15-7
Example 15-7. Implicit Pointer Change (pTAL) 15-7
Example 15-8.
CALL Statement 15-8
Example 15-9.
CASE Index That Matches No Alternatives 15-9
Example 15-10. Empty CASE Statement (TAL) 15-10
Example 15-11. Empty CASE Statement (pTAL) 15-10
Example 15-12. CASE Statement With INT(32) Expressions as Labels 15-10
Example 15-13. DO-UNTIL Statement With Condition Code (TAL) 15-11
Example 15-14. DO-UNTIL Statement With Condition Code (pTAL) 15-11
Example 15-15.
DO-UNTIL Statement With GOTO Statement 15-11
Example 15-16.
DROP Statement 15-12
Example 15-17. Labels as Procedure Parameters (TAL) 15-13
Example 15-18. Branching From Subprocedure to Its Containing Procedure
(TAL) 15-14