TEST  I/O,   CLEAR  I/O,   HALT  I/O,   HALT  DE  
VICE, and STORE CHANNEL ID are issued and
must remain disabled until the information in the
CSW provided by the instruction has been acted
upon or stored elsewhere for later use.
Clearl/O   CLRIO  [S]  C   9DOl   I   B2  I   D2  I   o  TIO   or  CLRIO  function  is  performed,  de  
pending on the channel and the block-multiplexing
control:control   register  0,   bit  0.   The  TIO   function  is  
performed when the CLRIO function is not imple
mented by the channel or when the block
multiplexing control bit is zero.
TheTIO   function  is  described  in  the  definition  of  
the instruction TESTI/O.   Bits  8··14   of  the  instruction  are  ignored.  Bit  posi  
tions 16-31 of the second-operand address identify
the channel, subchannel, andI/O   device  to  which  
the instruction applies.
The CLRIO function causes the current operation
with the addressed device to be discontinued and the
state of the operation at the time of the discontinua
tion tobe   indicated  in  the  stored  CSW.  
When the subchannel is available, interruption
pending with another device, or working with anoth
er device, no channel action is taken, and condition
code°   is  set.  Channels  not  capable  of  determining  
subchannel states while in the working state may
instead set condition code 2.
When the subchannel is either working with the
addressed device or in the interruption-pending state
with the addressed device, the CLRIO function
causes the channel to discontinue the operation with
the addressed device by storing the status of the
operation in the CSW and making the subchannel
available. When the channel is working with the
addressed device, the instruction causes the device to
be signaled to terminate the current operation. Some
channels may, instead, indicate busy and cause no
channel action.
When any of the following conditions occurs, the
CLRIO function causes the CSW at location 64 to
be stored. The contents of the entire CSW pertain to
theI/O   device  addressed  by  the  instruction.  
1. The channel is in the available or interruption
pending state, and the subchannel contains an
interruption-pending condition for the ad
dressed device or is working with the addressed
device. The protection-key, command-address,
and count fields describe the state of the opera
tion at the time of the execution of the instruc
tion.
2. The channel is working with the addressed
device. The protection-key, command-address,
and count fields describe the state of the opera
tion at the time the instruction is executed.
(Some channels alternatively indicate busy un
der this condition.)
3. The channel is working with a device other
than the one addressed, and the subchannel
contains an interruption-pending condition forl\lame   Mnemonic  Characteristics  Code   CLEAR  I/O   HALT  DEVICE   HALT  I/O   START   I/O   START   I/O   FAST   RELEASE  STORE   CHANNEL  ID   TEST   CHANNEL  TEST   I/O   Explanation:  C   Condition  code  is  set.  
MPrivilegl3d-operation   exception.  S   S   instruction  format.  CLRIO   HDV  HIO   SIO   SIOF   STIDC   TCH  TIO   Bits  8-14  of  the  operation  code  are  ignored.  +   Bits  8-15  of  the  operation  code  are  ignored.  
Input/Output-Instruction Summary
198 System/370 Principles ofOperation   S   C   M  9001*   S   C   M  9E01*  S   C   M  9EOO*  S   C   M  9COO*   S   C   M  9C01  *  S   C   M  B203  S   C   M  9FOO+   S   C   M  9000*   
VICE, and STORE CHANNEL ID are issued and
must remain disabled until the information in the
CSW provided by the instruction has been acted
upon or stored elsewhere for later use.
Clear
pending on the channel and the block-multiplexing
control:
performed when the CLRIO function is not imple
mented by the channel or when the block
multiplexing control bit is zero.
The
the instruction TEST
tions 16-31 of the second-operand address identify
the channel, subchannel, and
the instruction applies.
The CLRIO function causes the current operation
with the addressed device to be discontinued and the
state of the operation at the time of the discontinua
tion to
When the subchannel is available, interruption
pending with another device, or working with anoth
er device, no channel action is taken, and condition
code
subchannel states while in the working state may
instead set condition code 2.
When the subchannel is either working with the
addressed device or in the interruption-pending state
with the addressed device, the CLRIO function
causes the channel to discontinue the operation with
the addressed device by storing the status of the
operation in the CSW and making the subchannel
available. When the channel is working with the
addressed device, the instruction causes the device to
be signaled to terminate the current operation. Some
channels may, instead, indicate busy and cause no
channel action.
When any of the following conditions occurs, the
CLRIO function causes the CSW at location 64 to
be stored. The contents of the entire CSW pertain to
the
1. The channel is in the available or interruption
pending state, and the subchannel contains an
interruption-pending condition for the ad
dressed device or is working with the addressed
device. The protection-key, command-address,
and count fields describe the state of the opera
tion at the time of the execution of the instruc
tion.
2. The channel is working with the addressed
device. The protection-key, command-address,
and count fields describe the state of the opera
tion at the time the instruction is executed.
(Some channels alternatively indicate busy un
der this condition.)
3. The channel is working with a device other
than the one addressed, and the subchannel
contains an interruption-pending condition for
M
Input/Output-Instruction Summary
198 System/370 Principles of
 
             
            







































































































































































































































































































































