HP 3000 Manuals

HPPACCMPD [ Compiler Library/XL Reference Manual ] MPE/iX 5.0 Documentation


Compiler Library/XL Reference Manual

HPPACCMPD 

HPPACCMPD compares two decimal operands and sets a condition code.

     PROCEDURE HPPACCMPD (
               ANYVAR  operand1        :decimal_type;
                       op1digs         :INTEGER;
               ANYVAR  operand2        :decimal_type;
                       op2digs         :INTEGER;
               VAR     comparison_code :INTEGER;
               VAR     pacstatus       :INTEGER)
          OPTION
               DEFAULT_PARMS (
                      comparison_code  :=NIL,
                      pacstatus        :=NIL)
               UNCHECKABLE_ANYVAR;
          EXTERNAL;

Comments 

Operand1 is compared to operand2 and comparison_code is set.  The
operands remain unchanged at their original addresses.

Possible Traps 

Invalid packed-decimal digit (3)
Invalid decimal operand length (5)



MPE/iX 5.0 Documentation