TAL Reference Manual

Standard Functions
TAL Reference Manual526371-001
14-38
$READCLOCK Function
$READCLOCK Function
The $READCLOCK function returns the current setting of the system clock.
Usage Considerations
$READCLOCK returns the current setting of the system clock as a FIXED(0) value.
$READCLOCK invokes the RCLK instruction, described in the
System Description
Manual for your system.
Example of $READCLOCK Function
In this example, $READCLOCK returns the current setting of the system clock:
FIXED the_time; !Declare data
the_time := $READCLOCK; !Return current clock time
$RP Function
The $RP function returns the current setting of the compilers internal RP counter. (RP
is the register stack pointer.)
Usage Consideration
$RP returns the compile-time setting of RP. This setting is not guaranteed to be the
run-time setting.
$RP is not portable to future software platforms.
Example of $RP Function
In this example, $RP returns the compilers current RP value:
IF $RP <> 7 THEN ... ; Something is on the stack
$READCLOCK
VST1439.vsd
$RP
VST1440.vsd