This appendix lists the condition-code
setting for instructions in theSystem/370 architecture which set the
condition code. In addition to those
instructions listedwhich set the condiĀ
tion code, the condition code may be
changed by DIAGNOSE and the target ofEXECUTE. The condition code is loaded
byLOAD PSW, by SET PROGRAM MASK, and by
an interruption. The condition code is
set to zero by initialCPU reset and is
loaded by the successful conclusion of
the initial-program-loading sequence.
Instruction
ADD, ADDHALFWORD ADD DECIMAL
ADDLOGICAL ADD NORMALIZED
ADDUNNORMALIZED AND
CLEAR CHANNEL
CLEARI/O COMPARE (gen, fl pt) COMPARE HALFWORD COMPARE AND SWAP COMPARE DECIMAL COMPARE DOUBLE AND SWAP COMPARE LOGICAL COMPARE LOGICAL CHARACTERS UNDER MASK COMPARE LOGICAL LONG CONNECT CHANNEL SET DISCONNECT CHANNEL SET
EDIT, EDIT AND MARKEXCLUSIVE OR HALT DEVICE HALT I/O INSERT ADDRESS SPACE CONTROL INSERT CHARACTERS UNDER MASK LOAD ADDRESS SPACE PARAMETERS LOAD AND TEST (gen, fl pt) LOAD COMPLEMENT (gen) LOAD COMPLEMENT (fl pt) LOAD NEGATIVE (gen, fl pt) LOAD POSITIVE (gen) LOAD POSITIVE (fl pt) LOAD REAL ADDRESS MOVE LONG MOVE TO PRIMARY, MOVE TO SECONDARY MOVE WITH KEY Zero
Zero
Zero,
o
no carry
Zero
Zero
Zero
Reset signaled
No operation
in progress
Equal
Equal
Equal
Equal
Equal
Equal
Equal
Equal
Successful
Successful
Zero
Zero
Interruption
pending/busy
Interruption
pending
Zero
All zerosParameters loaded
Zero
Zero
Zero
Zero
Zero
Zero
Translation
available
Length equal
Length =< 256
Length =< 256
APPENDIXCONDITION-CODE SETTINGS
The condition codes for the vector
facility are not included in this appenĀ
dix.See the pUblication IBM System/370 Vector Operations, SA22-7125, for the
condition codes set by vector
instructions.
Some models may offer instructions which
set the condition code and do not appear
in this document, such as those provided
for assists or as part of special or
custom features.
Condition Code
1
< zero
< zero
Not zero,
no carry
< zero
< zero
Not zeroCSW stored
Low
Low
Not equal
Low
Not equal
Low
Low
Low
Connected to
anotherCPU Connected to
anotherCPU < zero
Not zeroCSW stored
CSW storedOne First bit one Primary ASN not available
< zero
< zero
< zero
< zero
ST entry
invalid
Length low
> zero
> zero
Zero,
carry
> zero
> zero
2
Channel busy
Channel busy
High
High
High
High
High
High
> zero
3Overflow Overflow Not zero,
carry
Not operational
Not operational
Not operational
Not operationalChannel Not operational
working
Burst operation Not operational
terminated
First bit zero --
SecondaryASN Space-switch
not available event
or not
authorized
> zero
> zero
> zero
> zero
> zeroPT entry
invalid
Length highOverflow Overflow Length
violation
Destructive
overlap
length > 256
Length > 256
Summary ofCondition-Code Settings (Part 1 of 2)
AppendixC. Condition-Code Settings C-l
setting for instructions in the
condition code. In addition to those
instructions listed
tion code, the condition code may be
changed by DIAGNOSE and the target of
by
an interruption. The condition code is
set to zero by initial
loaded by the successful conclusion of
the initial-program-loading sequence.
Instruction
ADD, ADD
ADD
ADD
CLEAR CHANNEL
CLEAR
EDIT, EDIT AND MARK
Zero
Zero,
o
no carry
Zero
Zero
Zero
Reset signaled
No operation
in progress
Equal
Equal
Equal
Equal
Equal
Equal
Equal
Equal
Successful
Successful
Zero
Zero
Interruption
pending/busy
Interruption
pending
Zero
All zeros
Zero
Zero
Zero
Zero
Zero
Zero
Translation
available
Length equal
Length =< 256
Length =< 256
APPENDIX
The condition codes for the vector
facility are not included in this appenĀ
dix.
condition codes set by vector
instructions.
Some models may offer instructions which
set the condition code and do not appear
in this document, such as those provided
for assists or as part of special or
custom features.
Condition Code
1
< zero
< zero
Not zero,
no carry
< zero
< zero
Not zero
Low
Low
Not equal
Low
Not equal
Low
Low
Low
Connected to
another
another
Not zero
CSW stored
< zero
< zero
< zero
< zero
ST entry
invalid
Length low
> zero
> zero
Zero,
carry
> zero
> zero
2
Channel busy
Channel busy
High
High
High
High
High
High
> zero
3
carry
Not operational
Not operational
Not operational
Not operational
working
Burst operation Not operational
terminated
First bit zero --
Secondary
not available event
or not
authorized
> zero
> zero
> zero
> zero
> zero
invalid
Length high
violation
Destructive
overlap
length > 256
Length > 256
Summary of
Appendix