VMS Help MACRO, VAX MACRO Assembler, Instructions, DIVP *Conan The Librarian (sorry for the slow response - running on an old VAX) |
Purpose: Divide one packed decimal string by a second decimal string Format: opcode divrlen.rw,divraddr.ab,divdlen.rw, divdaddr.ab,quolen.rw,quoaddr.ab Operation: {quo string} = {divd string} / {divr string} C. Codes: N = {{quo string} LSS 0}, V = {decimal overflow}, Z = {{quo string} EQL 0}, C = 0 Exceptions: Reserved operand, decimal overflow, divide by zero Opcode: 27 DIVP Divide packed Description: The dividend string specified by divdlen and divdaddr is divided by the divisor string specified by divrlen and divraddr. The result of the division is placed in the quotient string specified by quolen and quoaddr. Notes: After execution: R0 = 0 R1 = address of the byte containing the most-significant digit of the divisor string R2 = 0 R3 = address of the byte containing the most-significant digit of the dividend string R4 = 0 R5 = address of the byte containing the most-significant digit of the quotient string
|