Op Code (Hex) | Extender | Operand 1 | Operand 2 | Operand 3 [4, 5] |
---|---|---|---|---|
CMPBRAB 1CC6 | Branch options | Compare operand 1 | Compare operand 2 | Branch targets |
| ||||
CMPBRAI 18C6 | Indicator options | Compare operand 1 | Compare operand 2 | Indicator targets |
Operand 2: Numeric scalar or character scalar.
Operand 3 [4, 5]:
Description: This instruction compares the logical string values of two right-adjusted compare operands. The logical string value of the first compare operand is compared with the logical string value of the second compare operand (no padding done). Based on the comparison, the resulting condition is used with the extender field to:
The compare operands are compared byte by byte, from left to right with no numeric conversions performed. The length of the operation is equal to the length of the shorter of the two compare operands. The comparison begins with the leftmost byte of each of the compare operands and proceeds until all bytes of the shorter compare operand have been compared or until the first unequal pair of bytes is encountered.
Substring operand references that allow for a null substring reference (a length value of zero) may be specified for operands 1 and 2. The effect of specifying a null substring reference for either or both compare operands is that the instruction's resultant condition is equal.
Resultant Conditions: The scalar first compare operand's string value is one of the following as compared to the second compare operand.
06 Addressing
08 Argument/Parameter
10 Damage Encountered
1C Machine-Dependent
20 Machine Support
22 Object Access
24 Pointer Specification
2C Program Execution
2E Resource Control Limit
36 Space Management
44 Protection Violation