pTAL Reference Manual (H06.08+)

Hardware Indicators
HP pTAL Reference Manual523746-006
13-7
Condition Codes
°
A global variable:
INT g;
PROC p;
BEGIN
INT i := 0;
g := i; ! Condition code is not accessible
END;
°
A pointer:
INT .p;
INT i := 0;
p := i; ! Condition code is not accessible
°
A variable containing indexing, field selection, or bit selection:
STRUCT s;
BEGIN
INT f;
END;
INT a[0:9];
INT i;
s.f := i; ! Field selection: condition code is
! not accessible
a[9] := i; ! Index: condition code is not accessible
i.<3:5> := a; ! Bit Selection: condition code is
! not accessible
Example 13-3. Assignments After Which You Can Test Condition
Codes (page 1 of 2)
INT m;
PROC p(x, y);
INT x;
INT .y;
BEGIN
INT a[0:9];
INT i;
INT .EXT k;
INT(32) j;
STRING str;
REAL r;
EXTADDR SUBPROC f(x) RETURNSCC;
INT x;
BEGIN
RETURN %200000D, x;
END;