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

sINT:variable
is an integer variable that holds the status returned by the controller.
Example 268 $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);
$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
NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
NoSets $CARRY
YesSets $OVERFLOW
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 269 $INTR Routine
INT rndnum;
REAL realnum := 12345E-2;
rndnum := $INTR (realnum); ! Return 123
$IS_32BIT_ADDR
NOTE: 64-bit addressing functionality added to the EpTAL compiler starting with SPR
T0561H01^AAP. For more information, see Appendix E, “64-bit Addressing Functionality”
(page 531).
$IS_32BIT_ADDR returns the INT-typed value -1 if the specified address value can be represented
as a 32-bit extended address; otherwise, it returns 0.
Nonatomic Operations 321