pTAL Reference Manual (H06.08+)
Contents
HP pTAL Reference Manualā523746-006
xxii
Examples (continued)
Examples (continued)
Example 12-30. MOVE Statement With Destination Shorter Than Source 12-32
Example 12-31. FILL16 Statement 12-33
Example 12-32. RETURN Statements Nested in an IF Statement 12-35
Example 12-33. RETURN Statement That Returns a Value and a Condition
Code 12-35
Example 12-34. Testing a Condition Code 12-35
Example 12-35. RETURN Statement in a Procedure 12-36
Example 12-36. RETURN Statement in a Procedure That Returns a Condition
Code 12-37
Example 12-37. Procedure Without RETURNSCC 12-37
Example 12-38. Procedure With RETURNSCC 12-37
Example 12-39. Function Without RETURNSCC 12-38
Example 12-40. Function With RETURNSCC 12-38
Example 12-41. Condition Code Returned by Function Called by CALL
Statement 12-39
Example 12-42. Condition Code Based on Numeric Value 12-39
Example 12-43. Condition Code That Is Independent of the Functionās Value 12-40
Example 12-44. Invalid Function That Attempts to Return an Explicit Condition
Code 12-40
Example 12-45. SCAN UNTIL Statement 12-42
Example 12-46. Determining What Stopped a Scan 12-42
Example 12-47. Extended Pointers in SCAN and RSCAN Statements 12-42
Example 12-48. Scanning Adjacent Fields Within a Structure 12-43
Example 12-49. Scanning Data in a P-Relative Array 12-44
Example 12-50. Scanning Data in a P-Relative Array 12-44
Example 12-51. WHILE Statement 12-46
Example 12-52.
WHILE Statement 12-46
Example 13-1.
OVERFLOW_TRAPS Compiler Directive and Procedure
Attribute 13-2
Example 13-2. ENABLE_OVERFLOW_TRAPS and DISABLE_OVERFLOW_TRAPS
Block Attributes 13-3
Example 13-3. Assignments After Which You Can Test Condition Codes 13-7
Example 13-4. Hardware Indicators in DO-UNTIL Statements 13-9
Example 13-5. Hardware Indicators in WHILE Statements 13-9
Example 13-6. Testing a Hardware Indicator Set in a Calling Procedure 13-15
Example 13-7. Returning the Value of $OVERFLOW in a Reference
Parameter 13-16
Example 14-1. Procedure Declaration 14-4
Example 14-2. EXTENSIBLE Procedures as Actual Parameters 14-9










