pTAL Guidelines for TAL Programmers
Contents
pTAL Guidelines for TAL Programmers—527256-002
vi
Examples (continued)
Examples (continued)
Example 2-60. Testing a Condition Code After a Procedure Call (TAL Only) 2-48
Example 2-61. RETURNSCC Procedure Attribute 2-49
Example 2-62. Returning a Condition Code 2-50
Example 2-63. Assigning a Condition Code to a Variable (TAL Only) 2-50
Example 2-64. Setting a Variable to Reflect a Condition Code 2-50
Example 2-65. Testing $OVERFLOW (TAL Only) 2-51
Example 2-66. Saving the P, L, and S Registers (TAL Only) 2-53
Example 2-67. USE and DROP Statements 2-54
Example 2-68. Arithmetic Left-Shift Operator (TAL Only) 2-56
Example 2-69. Signed Left-Shift Procedures 2-56
Example 3-1. Address-Conversion Routines 3-3
Example 3-2. Address-Type Variables 3-4
Example 3-3. Procedure Pointer Declarations 3-12
Example 3-4. Equivalenced Procedure Pointers 3-12
Example 3-5. Procedure Pointer in Array 3-14
Example 3-6. Procedure Pointers in Template Structure 3-15
Example 3-7. Structure That Uses Template Structure From Example 3-6 3-15
Example 3-8. Valid and Invalid Structure Redefinitions 3-15
Example 3-9. Passing an EXTENSIBLE Procedure to a PROC Formal Parameter
(TAL Only) 3-16
Example 3-10. Passing an EXTENSIBLE Procedure to a PROCPTR Formal
Parameter 3-17
Example 3-11. Procedure Pointers 3-18
Example 3-12. Procedure Pointer in a Array of Structures 3-19
Example 3-13. Procedure Pointers in a CASE Statement 3-19
Example 3-14. Array of Procedure Addresses 3-20
Example 3-15.
OVERFLOW_TRAPS and NOOVERFLOW_TRAPS Procedure
Attributes 3-23
Example 3-16. ENABLE_OVERFLOW_TRAPS and DISABLE_OVERFLOW_TRAPS
Block Attributes 3-24
Example 3-17. NOOVERFLOW_TRAPS With
DISABLE_OVERFLOW_TRAPS 3-26
Example 3-18. ENABLE_OVERFLOW_TRAPS and DISABLE_OVERFLOW_TRAPS
Block Attributes and BEGIN-END Blocks 3-27
Figures
Figure 1-1. Compiling pTAL Source Code 1-3
Figure 1-2. Minimal CPU Application 1-4