pTAL Conversion Guide

Contents
pTAL Conversion Guide527302-002
xiv
Examples (continued)
Examples (continued)
Example 15-19. Branching From a Subprocedure to Its Containing Procedure
(pTAL) 15-14
Example 15-20. Overflow Traps and GOTO Statements 15-15
Example 15-21. Testing an INT Variable Without a Not-Equal Operator (TAL) 15-16
Example 15-22. Testing an INT(32) Variable Without a Not-Equal Operator
(pTAL) 15-17
Example 15-23. Value Parameter in Move Statement (TAL) 15-17
Example 15-24. Move Statement With Destination Shorter Than Source 15-18
Example 15-25. RETURN Statement 15-19
Example 15-26. Returning a Value and a Condition Code (TAL) 15-20
Example 15-27. Procedure Without RETURNSCC Attribute (pTAL) 15-21
Example 15-28. Procedure With RETURNSCC Attribute (pTAL) 15-21
Example 15-29. Function Without RETURNSCC Attribute (pTAL) 15-21
Example 15-30. 15-22
Example 15-31. Testing the Condition Code Returned by a Function (pTAL) 15-22
Example 15-32. Function Returns Condition Code Based on Its Rturn Value
(pTAL) 15-23
Example 15-33. Function Returns Condition Code Not Based on Its Return Value
(pTAL) 15-23
Example 15-34. Invalid pTAL Function 15-23
Example 15-35. Extended Pointers in pTAL SCAN and RSCAN Statements
(pTAL) 15-24
Example 15-36. pTAL Structure With FIELDALIGN(SHARED2) 15-24
Example 15-37. Scanning Data in P-Relative Arrays (TAL) 15-25
Example 15-38. Scanning Data in P-Relative Arrays (pTAL) 15-26
Example 15-39. Invalid Use of @ Operator (pTAL) 15-27
Example 15-40.
WHILE Statement With Hardware Indicator (TAL) 15-27
Example 15-41.
WHILE Statement With Hardware Indicator (pTAL) 15-28
Example 15-42. WHILE Statement With Hardware Indicator and GOTO Statement
(pTAL) 15-28
Example 16-1. Procedure Declaration (pTAL) 16-5
Example 16-2. PROCPTRs as Variables and Formal Parameters 16-11
Example 16-3. Array of PROCPTRs 16-12
Example 16-4. Template Structure With PROCPTR Fields 16-12
Example 16-5. Structure That Uses Template Structure in Example 16-4 16-12
Example 16-6. PROC Parameters (TAL) 16-13
Example 16-7. @ Before Actual Procedure Parameters (pTAL) 16-13
Example 16-8. PROCPTR as Formal Parameter (pTAL) 16-14
Example 16-9. Assigning Values to PROCPTR Variables 16-15