pTAL Conversion Guide

TAL Standard Routines
pTAL Conversion Guide527302-002
17-6
$HIGH
expression
is an expression whose value is:
$DBL sets the overflow indicator if the value of expression is fixed.
$HIGH
$HIGH is a TAL routine for which pTAL has a built-in routine with the same name but
slightly different behavior.
$HIGH converts the high-order (leftmost) 16 bits of its argument to an INT value.
expression
is an expression whose value is:
$HIGH returns the high-order 16 bits of dbl-expression and preserves the sign bit.
$HIGH does not cause overflow.
$INT
$INT is a TAL routine for which pTAL has a built-in routine with the same name but
slightly different behavior.
$INT converts its argument to an INT value.
TAL pTAL
INT
INT(32)
FIXED
REAL
UNSIGNED(1-16)
UNSIGNED(17-31)
Any that TAL allows and:
EXTADDR
PROCADDR
REAL(64)
TAL pTAL
An INT(32) value An INT(32) or EXTADDR value
( )
VST091.vsd
$HIGH
dbl-expression
expression( )
VST093.vsd
$INT