cobol1.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Introduction to Logic Routines
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     These routines carry out logic operations on bits. Apart from
     CBL_NOT, all these operations have two operands.
 
     With CBL_NOT, if target is no longer than eight bytes, the compiler
     optimizes by producing inline code instead of calling the
     routine. With the two-operand routines, the compiler does this if
     source and target are the same length and each is no longer than
     eight bytes.
 
     In the two-operand routines, interchanging the two operands,
     source and target, does not change the result except in CBL_IMP.
     However, the result is always stored in the second operand, target.
 
     If length is longer than either data item, bytes following that
     data item will be used, up to the length specified.
 
     The parameter length can be replaced by the syntax:
 
           LENGTH OF source
       or  LENGTH OF target
 
     assuming all the bytes of the data item are to be used.
                                    -♦-