R1 First-Operand Address I 0 8 31
R1 + 1 First-Operand Length 0 8
31
R2 Second-Operand Address 0 8 31
R2 + 1I Pad Second-Operand Length 0 8 31
The comparison is performed with the operands
considered as binary unsigned quantities, with all
codes valid. The comparison starts at the high-order
end of both fields and proceeds to the right. The
operation ends as soon as an inequality is detected
or the end of the longer operand is reached. If the
operands are not of the same length, the shorter
operand is extended, for the purpose of comparison,
with the padding character.
If both operands are of zero length, the operands
are considered equal.
The execution of the instruction is interruptible.
When an interruption occurs after a unit of opera
tion other than the last one, the contents of registers
R 1 + 1 and R2 + 1 are decremented by the number of
bytes compared, and the contents of registers Rl and
R2 are incremented by the same number, so that the
instruction, when re-executed, resumes at the point
of interruption. The high-order byte of registers Rl
and R2 is set to zero; the contents of the high-order
byte of registers Rl + 1 and R2+ 1 remain un
changed; and the condition code is unpredictable. If
the operation is interrupted after the shorter operand
has been exhausted, the count field pertaining to the
shorter operand is zero, and its address is updated
accordingly.
If the operationends' because of a mismatch, the
count and address fields at completion identify the
byte of mismatch. The contents of bit positions
8-31 of registers Rl + 1 and R2+ 1 are decremented
by the number of bytes that matched, unless the
mismatch occurred with the padding character, in
which case the count field for the shorter operand is
set to zero. The contents of bit positions 8-31 of
registers Rl and R2 are incremented by theap:lounts by which the corresponding count fields were re
duced. If the two operands, including the padding
character, if necessary, are equal, both count fields
are made zero at completion, and the addresses are
incremented by the corresponding count values. The
contents of bit positions0-7 of registers Rl and R2
are set to zero, including the case when one or both
of the original count values are zero. The contents of
bit positions0-7 of registers R 1 + 1 and R2 + 1 remain
unchanged.
When part of an operand is designated in an inac
cessible location, but the operation can be completed
by using the available operand parts, it is unpredicta
ble whether the access exception for the inaccessible
part is recognized.
When the count field for an operand has the value
zero, no access exceptions are recognized for that
operand.
Resulting Condition Code:
o Operands are equal, or both fields have zero
length
1 First operand is low
2 First operand is high
3 -
Program Exceptions:
Access (fetch, operands 1 and 2)
Specification
Programming Notes
When the contents of the R 1 and R2 fields are the
same, condition code0 is set, and protection and
addressing exceptions are indicated when called for
by the operand designation.Special precautions should be taken when COM P ARE LOGICAL LONG is made the subject of
EXECUTE.See the programming notes under EX
ECUTE.See also the programming notes under MOVE LONG.
Convert to BinaryCVB [RX]
4F
o 8 12 1620 The radix of the second operand is changed from
decimal to binary, and the result is placed in the
first-operand location. The number is treated as a
right-aligned signed integer both before and after
conversion.
31
The second operand has the packed decimal data
format and is checked for valid sign and digit codes.
Improper codes are a data exception and cause a
General Instructions 127
R1 + 1
31
R2
R2 + 1
The comparison is performed with the operands
considered as binary unsigned quantities, with all
codes valid. The comparison starts at the high-order
end of both fields and proceeds to the right. The
operation ends as soon as an inequality is detected
or the end of the longer operand is reached. If the
operands are not of the same length, the shorter
operand is extended, for the purpose of comparison,
with the padding character.
If both operands are of zero length, the operands
are considered equal.
The execution of the instruction is interruptible.
When an interruption occurs after a unit of opera
tion other than the last one, the contents of registers
R 1 + 1 and R2 + 1 are decremented by the number of
bytes compared, and the contents of registers Rl and
R2 are incremented by the same number, so that the
instruction, when re-executed, resumes at the point
of interruption. The high-order byte of registers Rl
and R2 is set to zero; the contents of the high-order
byte of registers Rl + 1 and R2+ 1 remain un
changed; and the condition code is unpredictable. If
the operation is interrupted after the shorter operand
has been exhausted, the count field pertaining to the
shorter operand is zero, and its address is updated
accordingly.
If the operation
count and address fields at completion identify the
byte of mismatch. The contents of bit positions
8-31 of registers Rl + 1 and R2+ 1 are decremented
by the number of bytes that matched, unless the
mismatch occurred with the padding character, in
which case the count field for the shorter operand is
set to zero. The contents of bit positions 8-31 of
registers Rl and R2 are incremented by the
duced. If the two operands, including the padding
character, if necessary, are equal, both count fields
are made zero at completion, and the addresses are
incremented by the corresponding count values. The
contents of bit positions
are set to zero, including the case when one or both
of the original count values are zero. The contents of
bit positions
unchanged.
When part of an operand is designated in an inac
cessible location, but the operation can be completed
by using the available operand parts, it is unpredicta
ble whether the access exception for the inaccessible
part is recognized.
When the count field for an operand has the value
zero, no access exceptions are recognized for that
operand.
Resulting Condition Code:
o Operands are equal, or both fields have zero
length
1 First operand is low
2 First operand is high
3 -
Program Exceptions:
Access (fetch, operands 1 and 2)
Specification
Programming Notes
When the contents of the R 1 and R2 fields are the
same, condition code
addressing exceptions are indicated when called for
by the operand designation.
EXECUTE.
ECUTE.
Convert to Binary
4F
o 8 12 16
decimal to binary, and the result is placed in the
first-operand location. The number is treated as a
right-aligned signed integer both before and after
conversion.
31
The second operand has the packed decimal data
format and is checked for valid sign and digit codes.
Improper codes are a data exception and cause a
General Instructions 127