pTAL Conversion Guide

Contents
pTAL Conversion Guide527302-002
xv
Examples (continued)
Examples (continued)
Example 16-10. Assigning Values to PROCPTR Variables 16-15
Example 16-11. Using a PROCPTR Variable 16-16
Example 16-12. Procedures as Formal Parameters (TAL) 16-16
Example 16-13. CASE Statement for Dynamically Selected Procedure Call
(pTAL) 16-18
Example 16-14. PROCPTR Array for Dynamically Selected Procedure Call
(pTAL) 16-18
Example 16-15. VARIABLE, EXTENSIBLE, and RETURNSCC Procedures as Actual
Parameters (TAL) 16-19
Example 16-16. VARIABLE, EXTENSIBLE, and RETURNSCC Procedures as Actual
Parameters (pTAL) 16-20
Example 16-17. Formal STRING Value Parameters (TAL) 16-21
Example 16-18. Passing a .EXT Parameter to a Non-EXT Reference Parameter
(pTAL) 16-21
Example 16-19. Structures as Formal Parameters (TAL) 16-22
Example 16-20. Referral Structures as Formal Parameters (pTAL) 16-22
Example 17-1. Procedure That Returns $CARRY (TAL) 17-4
Example 17-2. Passing the Value of $CARRY to a Procedure (pTAL) 17-4
Example 17-3. Treating $CARRY as a Global Variable (TAL) 17-4
Example 17-4. $COMP Routine 17-5
Example 17-5. $INT Routine 17-7
Example 18-1. Call to $ASCIITOFIXED Routine 18-9
Example 18-2. Call to $ATOMIC_ADD Routine 18-10
Example 18-3. Call to $ATOMIC_AND Routine 18-11
Example 18-4. Call to $ATOMIC_DEP Routine 18-12
Example 18-5. Call to $ATOMIC_GET Routine 18-13
Example 18-6.
Call to $ATOMIC_OR Routine 18-14
Example 18-7.
Call to $ATOMIC_PUT Routine 18-15
Example 18-8. Call to $BADDR_TO_EXTADDR Routine 18-16
Example 18-9. Call to $BADDR_TO_WADDR Routine 18-17
Example 18-10. Call to $CHECKSUM Routine 18-18
Example 18-11. Call to $COUNTDUPS Routine 18-20
Example 18-12. Call to $EXCHANGE Routine 18-21
Example 18-13. Call to $EXECUTEIO Routine 18-22
Example 18-14. Call to $EXTADDR_TO_BADDR Routine 18-23
Example 18-15. Call to $EXTADDR_TO_WADDR Routine 18-24
Example 18-16. Call to $FILL8 Routine 18-25
Example 18-17. Call to $FIXEDTOASCII Routine 18-26
Example 18-18. Call to $FIXEDTOASCIIRESIDUE Routine 18-27