VMS Help MACRO, VAX MACRO Assembler, Instructions, CVTPL *Conan The Librarian (sorry for the slow response - running on an old VAX) |
Purpose: Convert a packed decimal string to a longword Format: opcode srclen.rw,srcaddr.ab,dst.wl Operation: dst = conversion of {src string} C. Codes: N = {dst LSS 0}, V = {integer overflow}, Z = {dst EQL 0}, C = 0 Exceptions: Reserved operand, integer overflow Opcode: 36 CVTPL Convert packed to long Description: The packed decimal source string src specified by srclen and srcaddr is converted to a longword and the result is placed in dst. dst is stored after all the registers are updated. This means that dst can be a register. Integer overflow can occur if the decimal string converts to a value outside a longword integer range. If this happens dst is replaced by the low order bits of the correct result. Overlapping operands will produce correct results. Notes: After execution: R0 = 0 R1 = address of the byte containing the most-significant digit of the source string R2 = 0 R3 = 0
|