DP - Divide Packed Instruction

DP - Divide Packed Instruction






Example:    DP    QUOT,B

Explained:    divide packed instruction - location of the packed decimal being divided by something and the location of the result - location of the packed decimal value being divided into something

English:    The first operand (the dividend) is divided by the second operand (the divisor), and the resulting quotient and remainder are placed at the first operand location. The operands and results are in the signed packed decimal format.




 * NOTES:


 * 1) The quotient is placed leftmost in the first operand location, with the number of bytes in the quotient field is equal to the difference between the dividend and divisor lengths (l1-l2).


 * 1) The remainder is placed rightmost in the first operand location and has a length equal to the divisor length.
 * 2) the divisor length cannot exceed 15 digits and sign and must be less than the dividend length.

Principles of Operation Page:    8-7