pTAL Conversion Guide
pTAL Built-In Routines
pTAL Conversion Guide—527302-002
18-31
$INTERROGATEIO
rist-int-cause output
uINT:variable
is the read interrupt status received from the controller holding the completed I/O.
channel-status output
uINT:variable
is an integer variable that holds the status returned by the controller.
$INTERROGATEIO
$INTERROGATEIO is used by the operating system’s interrupt handler to get the
interrupt cause and status from a controller and to reset the corresponding interrupt.
Figure 18-10. TAL Code Equivalent to $INTERROGATEHIO Routine
STACK 0,0;
CODE(HHIO);
STORE channel_status;
STORE rist_interrupt_status;
STORE ric_interrupt_status;
STORE rank_channel;
STORE select;
Example 18-21. Call to $INTERROGATEHIO Routine
INT select;
INT rank_channel;
INT ric_interrupt_status;
INT rist_interrupt_cause;
INT channel_status;
$INTERROGATEHIO(select, rank_channel, ric_interrupt_status,
rist_interrupt_status, channel_status);
Note. The EpTAL compiler does not support this procedure.
$INTERROGATEIO ( ,
, ,
select
rank-channel
ric-int-cause channel-status,
) ;
VST644.vsd
rist-int-cause