pTAL Conversion Guide

Hardware Indicators
pTAL Conversion Guide527302-002
20-17
Setting Hardware Indicators in TAL
°
The left side of the assignment statement must be one of:
°
A local or sublocal simple variable
PROC p;
BEGIN
INT i; ! Local simple variable
i := i + 1; ! Condition code available
END;
°
The address cell of a local pointer
INT i;
INT .ptr; ! Local pointer
@ptr := f(i); ! Condition code is available
! if f specifies RETURNSCC
°
A value parameter
PROC p (param);
INT param; ! Value parameter
BEGIN
INT i := 0;
param := i; ! Condition code available
END;
°
The left side of the assignment statement cannot be:
°
A STRING variable
STRING s;
s := "a"; ! Condition code is not available
°
An UNSIGNED(n) variable
UNSIGNED(12) u;
u := %HFFF; ! Condition code is not available
°
A global variable
INT g;
PROC p;
BEGIN
INT i := 0;
g := i; ! Condition code is not available
END;
°
A pointer
INT .p;
INT i := 0;
p := i; ! Condition code is not available