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

RETURN "A"; ! P is an INT function but the
END; ! expression in the RETURN statement
! yields a single byte
BEGIN
PROC p1;
INT i;
i := p; ! Condition code is accessible because
END; ! p returns an INT value
The left side of the assignment statement must be one of:
A local or sublocal simple variable:
PROC p;
BEGIN
INT i; ! Declare a local simple variable
i := i + 1; ! Condition code accessible
END;
The address cell of a local pointer:
INT i;
INT .ptr; ! Declare a local pointer
@ptr := f(i); ! Condition code is accessible if
! f specifies RETURNSCC
A value parameter:
PROC p (param);
INT param; ! Value parameter
BEGIN
INT i := 0;
param := i; ! Condition code is accessible
END;
The left side of the assignment statement cannot be:
A STRING variable:
STRING s;
s := "a"; ! Condition code is not accessible
An UNSIGNED(n) variable:
UNSIGNED(12) u;
u := %HFFF; ! Condition code is not accessible
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
238 Hardware Indicators