The format of the source (the second operand) is
changed from packed to zoned and is modifiedun der control of the pattern (the first operand).
The address of each first significant resultcharac ter is recorded in general register 1. The edited result
replaces the pattern.
The instruction EDIT AND MARK is identical to
EDIT, except for the additional function of inserting
the address of the result character in bit positions
8-31 of general register 1 whenever the resultcharac ter is a zoned source digit and the significance indi cator was off before the examination. The use of
general register 1 is implied. The contents of bitpo sitions 0-7 of the register are not changed.
Resulting Condition Code:
o Last field is zero
1 Last field is less than zero
2 Last field is greater than zero
3 -
Program Exceptions:Operation (if the decimal feature is not installed)
Access (fetch, operand2; fetch and store, oper and 1)
Data
Programming Note
The instruction EDIT AND MARK facilitates the
programming of floating currency-symbol insertion.
The character address inserted in general register 1 is
one more than the address where a floating
currency-sign would be inserted. The instruction
BRANCHON COUNT (BCTR), with zero in the
R2 field, may be used to reduce the inserted address
byone.
The character address is not stored whensignifi cance is forced. To ensure that general register 1
contains a valid address when significance is forced,
it is necessary to place into the register beforehand
the address of the pattern character that immediately
follows the significance starter.
Multiply Decimal
The product of the multiplier (the second operand)
and the multiplicand (the first operand) replaces the
multiplicand.
The multiplier size is limited to fifteen digits and
sign and must be less than the multiplicand size.
Length code L2, larger than seven, or larger than or
equal to the length code L 1, is recognized as aspeci fication exception. The operation is suppressed, and
a program interruption occurs.
The multiplicand must have at least as many bytes
of high-order zeros as the multiplier field size, inbytes; otherwise, a data exception is recognized, the
operation is terminated, and a program interruption
occurs. This definition of the multiplicand fielden sures that no product overflow can occur. The maxi mum product size is 31 digits. At least one high order digit of the product field is zero.
All operands and results are treated as signed
integers, right-aligned in their field. The sign of the
product is determined by the rules of algebra from
the multiplier and multiplicand signs, even if one or
both operands are zero.
The multiplier and product fields may overlap
only if their low-order bytes coincide.
Condition Code:
The code remains unchanged.
Program Exceptions:Operation (if the decimal feature is not installed)
Access (fetch, operand2; fetch and store, oper and 1)
Specification
Data
Shift and Round Decimal
The first operand is shifted in the direction and for
the number of digit positions specified by the
second-operand address, and, when shifting to the
right is specified, is rounded by the rounding factor,13· The second-operand address, specified by the B2
and D2 fields, is not used to address data; itslow order six bits are the shift value, and the remainder
of the address is ignored.
Second-Operand Address :
o 26
Shift
Value
31
The shift value is a six-bit signed binary integer,
indicating the direction and the number of digitposi tions to be shifted. Positive shift values specify
Decimal Instructions 153
changed from packed to zoned and is modified
The address of each first significant result
replaces the pattern.
The instruction EDIT AND MARK is identical to
EDIT, except for the additional function of inserting
the address of the result character in bit positions
8-31 of general register 1 whenever the result
general register 1 is implied. The contents of bit
Resulting Condition Code:
o Last field is zero
1 Last field is less than zero
2 Last field is greater than zero
3 -
Program Exceptions:
Access (fetch, operand
Data
Programming Note
The instruction EDIT AND MARK facilitates the
programming of floating currency-symbol insertion.
The character address inserted in general register 1 is
one more than the address where a floating
currency-sign would be inserted. The instruction
BRANCH
R2 field, may be used to reduce the inserted address
byone.
The character address is not stored when
contains a valid address when significance is forced,
it is necessary to place into the register beforehand
the address of the pattern character that immediately
follows the significance starter.
Multiply Decimal
The product of the multiplier (the second operand)
and the multiplicand (the first operand) replaces the
multiplicand.
The multiplier size is limited to fifteen digits and
sign and must be less than the multiplicand size.
Length code L2, larger than seven, or larger than or
equal to the length code L 1, is recognized as a
a program interruption occurs.
The multiplicand must have at least as many bytes
of high-order zeros as the multiplier field size, in
operation is terminated, and a program interruption
occurs. This definition of the multiplicand field
All operands and results are treated as signed
integers, right-aligned in their field. The sign of the
product is determined by the rules of algebra from
the multiplier and multiplicand signs, even if one or
both operands are zero.
The multiplier and product fields may overlap
only if their low-order bytes coincide.
Condition Code:
The code remains unchanged.
Program Exceptions:
Access (fetch, operand
Specification
Data
Shift and Round Decimal
The first operand is shifted in the direction and for
the number of digit positions specified by the
second-operand address, and, when shifting to the
right is specified, is rounded by the rounding factor,
and D2 fields, is not used to address data; its
of the address is ignored.
Second
o 26
Shift
Value
31
The shift value is a six-bit signed binary integer,
indicating the direction and the number of digit
Decimal Instructions 153