pTAL Reference Manual (H06.03+)
Built-In Routines
HP pTAL Reference Manual—523746-005
15-58
$INTR
channel-status output
sINT:variable
is an integer variable that holds the status returned by the controller.
$INTR
$INTR converts:
•
The low-order 16 bits of an INT, INT(32), or FIXED value to an INT value
•
A REAL or REAL(64) value to a rounded INT value
expression
is an INT, INT(32), FIXED, REAL, or REAL(64) expression.
If expression is type INT, INT(32) or FIXED, $INTR returns the low-order (least
significant) 16 bits and does not explicitly maintain the sign. No overflow occurs.
If expression is type REAL or REAL(64), $INTR returns a fully converted and
rounded INT value, not a truncation. If the converted value of expression is too
large to be represented by a 16-bit two’s complement integer, an overflow trap occurs.
Example 15-47. $INTERROGATEIO Routine
INT select;
INT rank_channel;
INT ric_interrupt_status;
INT rist_interrupt_cause;
INT channel_status;
$INTERROGATEIO(select, rank_channel, ric_interrupt_status,
rist_interrupt_status, channel_status);
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW Yes
expression( )
VST094.vsd
$INTR










