/sys$common/syshlp/helplib.hlb
MACRO, VAX MACRO Assembler, Instructions, CVTPS

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    Purpose:        Convert a packed decimal string to leading separate
                    numeric
    Format:         opcode srclen.rw,srcaddr.ab,dstlen.rw,dstaddr.ab
    Operation:      {dst string} = conversion of {src string}
    C. Codes:       N = {{src string} LSS 0}, V = {decimal overflow},
                    Z = {{src string} EQL 0}, C = 0
    Exceptions:     Reserved operand, decimal overflow
    Opcode:         08    CVTPS    Convert packed to leading separate
    Description:    The packed decimal source string src specified by
                    srclen and srcaddr is changed to a leading separate
                    numeric string and the result is placed in dst as
                    specified by dstlen and dstaddr. Conversion is
                    effected by replacing the lowest addressed byte of
                    dst by the ASCII character "+" or "-", determined by
                    the sign of the source string. The remaining bytes of
                    dst are replaced by the ASCII characters that
                    correspond to the digits in src.
    Notes:          After execution:

                    R0 = 0
                    R1 = address of the byte containing the
                         most-significant digit of the source string
                    R2 = 0
                    R3 = address of the sign byte of the destination
                         string
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.