pTAL Reference Manual (H06.03+)
Hardware Indicators
HP pTAL Reference Manual—523746-005
13-9
Hardware Indicators in Conditional Expressions
Both the statement preceding the WHILE statement and the last statement in the
WHILE statement must set the condition code indicator. See Example 13-5 on
page 13-9.
Example 13-4. Hardware Indicators in DO-UNTIL Statements
proc p returnscc;
begin
...
end;
proc q;
begin
...
end;
do
call p () ! Sets condition code indicator
until = ; ! OK
do
begin
...
call p ();
end
until = ; ! OK
do
begin
...
call q ();
end
until > ; ! ERROR: last statement in do-until statement
! does not set condition indicator
int i := 0;
...
do
begin
...
i := i + 1;
end
until $overflow; ! ERROR: $overflow and $carry not allowed
! in do-until statement
Example 13-5. Hardware Indicators in WHILE Statements (page 1 of 2)
int proc p;
begin
...
end;
proc q;
begin
end;










