pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-32
$INTERROGATEIO
$INTERROGATEIO ( select, ! o
select output
sINT:variable
is an integer variable that is always set to 0.
rank-channel output
sINT:variable
is an integer variable that is always set to 0.
ric-int-cause output
sINT:variable
is the read interrupt cause received from the controller holding the completed I/O.
rist-int-cause output
sINT:variable
is the read interrupt status received from the controller holding the completed I/O.
channel-status output
sINT:variable
is an integer variable that holds the status returned by the controller.
pTAL privileged procedure Yes
Can be executed only by privileged procedures Yes
Sets condition code Yes
Sets $CARRY No
Sets $OVERFLOW No
Figure 18-11. TAL Code Equivalent to $INTERROGATEIO Routine
STACK 0,0;
CODE(IIO);
STORE channel_status;
STORE rist_interrupt_status;
STORE ric_interrupt_status;
STORE rank_channel;
STORE select;