TAL Reference Manual

Compiler Directives
TAL Reference Manual526371-001
16-71
Example of ROUND Directive
truncated assignment value is 5 or more, a one is added to the absolute value of the
final least significant digit.
NOROUND turns the rounding setting off. That is, rounding does not occur when a
FIXED value is assigned to a FIXED variable that has a smaller
fpoint. If the fpoint of
the assignment value is greater than that of the variable, the assignment value is
truncated and some precision is lost.
Example of ROUND Directive
This example rounds all FIXED values:
?ROUND !Request rounding
!Global declarations
PROC a;
BEGIN
FIXED(2) f1;
FIXED(3) f2;
f1 := f2;
END;
RP Directive
RP sets the compiler’s internal register pointer (RP) count. RP tells the compiler how
many registers are currently in use on the register stack.
register-number
is the value to which the compiler is to set its internal RP count. Specify an
unsigned decimal constant in the range 0 through 7. If you specify 7, the compiler
considers the register stack to be empty.
Usage Considerations
The RP directive can appear only within a procedure.
The register pointer (RP) is a field in the environment register (ENV) that points to the
top of the register stack.
VST1649.vsd
=
RP
register-number