pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

ASSERT...............................................................................................................................200
Assignment..........................................................................................................................201
Pointer Assignment...........................................................................................................203
Assigning Numbers to FIXED Variables...............................................................................203
Assigning Character Strings..............................................................................................203
Examples........................................................................................................................203
Bit-Deposit Assignment..........................................................................................................204
CALL...................................................................................................................................205
CASE..................................................................................................................................207
Empty CASE...................................................................................................................207
Labeled CASE.................................................................................................................207
Unlabeled CASE..............................................................................................................209
DO-UNTIL............................................................................................................................210
DROP.................................................................................................................................212
Dropping Labels..............................................................................................................212
Dropping Temporary Variables..........................................................................................212
FOR....................................................................................................................................212
Nested...........................................................................................................................213
Standard........................................................................................................................214
Optimized......................................................................................................................214
GOTO................................................................................................................................215
Local..............................................................................................................................215
Nonlocal........................................................................................................................215
GOTO and Target Statements With Different Trapping States.................................................216
IF.......................................................................................................................................217
Testing Address Types.......................................................................................................218
Testing Hardware Indicators..............................................................................................218
Move..................................................................................................................................218
Destination Shorter Than Source.............................................................................................222
$FILL8, $FILL16, and $FILL32 Statements..................................................................................222
RETURN..............................................................................................................................223
Functions........................................................................................................................224
Procedures and Subprocedures..........................................................................................225
Condition Codes.............................................................................................................225
SCAN and RSCAN...............................................................................................................228
Determining What Stopped a Scan....................................................................................230
Extended Pointers.............................................................................................................230
Crossing Variable Boundaries............................................................................................230
P-Relative Arrays..............................................................................................................231
USE....................................................................................................................................232
WHILE................................................................................................................................232
13 Hardware Indicators..............................................................................234
Managing Overflow Traps.....................................................................................................234
[NO]OVERFLOW_TRAPS Procedure Attribute......................................................................234
[EN|DIS]ABLE_OVERFLOW_TRAPS Block Attribute...............................................................235
Hardware Indicators After Assignments....................................................................................236
$OVERFLOW..................................................................................................................236
$CARRY.........................................................................................................................236
Condition Codes.............................................................................................................237
Hardware Indicators in Conditional Expressions.......................................................................239
Nesting Condition Code Tests................................................................................................242
Using Hardware Indicators Across Procedures..........................................................................244
Testing a Hardware Indicator Set in the Calling Procedure.....................................................244
Returning a Condition Code to the Calling Procedure...........................................................244
Contents 7