The channel may perform an I/O selective reset
or an 1/° system reset or may generate a halt signal,
depending on the type of error and the model. If aCSW is stored, channel control check or interface
control check is indicated, depending on the type of
error.
Channel Programming Error: The channel can de
tect the following programming errors during execu
tion ofSTART I/O or START I/O FAST RE LEASE. All of the error conditions are indicated
duringSTART 1/ 0, and during START 1/ ° FAST RELEASE when it is executed as START I/O, by
the condition-code setting and by the status portion
of theCSW. When the SIOF function is performed,
the first two error conditions are indicated as forSTART I/O, and the remaining conditions are indi
cated in a subsequent interruption.
1. Invalid CCW address specification in CAW.
2. Invalid CAW format.
3. Invalid CCW address in CAW.
4.
First-CCW location protected against fetching.
5. First CCW specifies transfer in channel.
6. Invalid command code in first CCW.
7. Invalid count in first CCW.
8. Invalid format for first CCW.
9. If channel indirect data addressing (CIDA) was
specified, an invalid data address specification
in the first CCW.10. If CIDA was specified, an invalid data address
in the first CCW.
11. If CIDA was specified, the first-IDAW loca
tion protected against fetching.
12. If CIDA was specified, invalid format for the
first IDAW.
TheCSW indicates program check, except for
items 4 and 11, for which protection check is indi
cated.
Device Error: Programming or equipment errors
detected by the device during the execution ofSTART I/O, or START I/O FAST RELEASE are
indicated by unit check or unit exception in theCSW. The conditions responsible for unit check and unit
exception for each type ofI/O device are detailed in
theSL or SRL publication for the device.
Instruction Formats
AllI/O instructions use the following S format: Op Code
o 1620 31
Except forSTORE CHANNEL ID, bit positions
8-14 of these instructions are ignored. Bit position
15 is ignored by the instructionTEST CHANNEL
but is decoded as part of the operation code forSTART I/O, START I/O FAST RELEASE, TEST I/O, CLEAR I/O, HALT I/O, and HALT DE VICE. The second-operand address specified by the B2
and D2 fields is not used to designate data, but in
stead is used to identify the channel and 1/° device.
Address computation follows the rules of address
arithmetic. The address has the following format:
Device
Address17/////////////. .Channel = Address Bit positions 0-7 are not part of the address. Bit
positions 8-15, which constitute the high-order por
tion of the three-byte address, are ignored. Bit posi
tions 16-23 of the sum contain the channel address
while bit positions 24-31 identify the device on the'
channel and, additionally in the case of the multi
plexer channel, the sub channel.
All 1/° instructions cause a serialization function
to be performed.CPU operation is delayed until all
previousCPU accesses to main storage have been
completed, as observed by channels and otherCPUs, and then the addressed channel is selected.
No subsequent instructions or their operands are
accessed until the execution of the 1/° instruction
has been completed.
Note: In the detailed descriptions of the individual
instructions, the mnemonic and the symbolic oper
and designation for the IBMSystem/370 assembly
language are shown with each instruction. In the
case ofSTART I/O, for example, SIO is the mne
monic and D2(B2) the operand designation.
List of Instructions
The mnemonics, format, and operation codes of theI/O instructions follow. The table also indicates that
all 1/° instructions cause a program interruption
when they are encountered in the problem state, and
that all 1/° instructions set the condition code.
Programming Note
The instructionsSTART I/O, START I/O FAST RELEASE,TESTI/O,CLEARI/O,HALTI/O, HALT DEVICE, and STORE CHANNEL ID·cause
aCSW to be stored. To prevent the contents of the CSW stored by the instruction from being destroyed
by an immediately followingI/O interruption, the CPU must be disabled for all I/O interruptions be
foreSTART I/O, START I/O FAST RELEASE,
Input/Output Operations 197
or an 1/
depending on the type of error and the model. If a
control check is indicated, depending on the type of
error.
Channel Programming Error: The channel can de
tect the following programming errors during execu
tion of
during
the condition-code setting and by the status portion
of the
the first two error conditions are indicated as for
cated in a subsequent interruption.
1. Invalid CCW address specification in CAW.
2. Invalid CAW format.
3. Invalid CCW address in CAW.
4.
First-CCW location protected against fetching.
5. First CCW specifies transfer in channel.
6. Invalid command code in first CCW.
7. Invalid count in first CCW.
8. Invalid format for first CCW.
9. If channel indirect data addressing (CIDA) was
specified, an invalid data address specification
in the first CCW.
in the first CCW.
11. If CIDA was specified, the first-IDAW loca
tion protected against fetching.
12. If CIDA was specified, invalid format for the
first IDAW.
The
items 4 and 11, for which protection check is indi
cated.
Device Error: Programming or equipment errors
detected by the device during the execution of
indicated by unit check or unit exception in the
exception for each type of
the
Instruction Formats
All
o 16
Except for
8-14 of these instructions are ignored. Bit position
15 is ignored by the instruction
but is decoded as part of the operation code for
and D2 fields is not used to designate data, but in
stead is used to identify the channel and 1/
Address computation follows the rules of address
arithmetic. The address has the following format:
Device
Address
positions 8-15, which constitute the high-order por
tion of the three-byte address, are ignored. Bit posi
tions 16-23 of the sum contain the channel address
while bit positions 24-31 identify the device on the'
channel and, additionally in the case of the multi
plexer channel, the sub channel.
All 1/
to be performed.
previous
completed, as observed by channels and other
No subsequent instructions or their operands are
accessed until the execution of the 1/
has been completed.
Note: In the detailed descriptions of the individual
instructions, the mnemonic and the symbolic oper
and designation for the IBM
language are shown with each instruction. In the
case of
monic and D2(B2) the operand designation.
List of Instructions
The mnemonics, format, and operation codes of the
all 1/
when they are encountered in the problem state, and
that all 1/
Programming Note
The instructions
a
by an immediately following
fore
Input/Output Operations 197