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

NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
NoSets $CARRY
NoSets $OVERFLOW
dbl-expression
is an expression whose value is INT(32) or EXTADDR.
$HIGH returns the high-order 16 bits of dbl-expression and preserves the sign bit. $HIGH
does not cause overflow.
Example 262 $HIGH Routine
INT a;INT(32) b;
INT .EXT c;
EXTADDR d;
a := $HIGH(b); ! OK: b is INT(32)
a := $HIGH(@c); ! OK: @c is EXTADDR
a := $HIGH(@b); ! ERROR: @b is WADDR
a := $HIGH(c); ! ERROR: c is INT
a := $HIGH(d); ! OK: d is EXTADDR
$IFIX
$IFIX converts a signed INT value to a FIXED(fpoint ) value.
NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
NoSets $CARRY
NoSets $OVERFLOW
int-expression
is a signed INT expression.
fpoint
is a value in the range -19 through +19 that specifies the position of the implied decimal point
in the result. A positive fpoint specifies the number of decimal places to the right of the
decimal. A negative fpoint specifies the number of integer places to the left of the decimal
point.
When $IFIX converts the signed INT expression to a FIXED value, it performs the equivalent of a
signed right shift of 48 positions in a quadrupleword unit.
In Example 263 (page 317), $IFIX returns a FIXED(2) value from a signed INT expression and an
fpoint of 2.
316 Built-In Routines