Assembly Language Help (alang.hlp) (Table of Contents; 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.
Logical and Shift Operators
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   expression1 AND expression2
 
            expression1 OR expression2
 
            expression1 XOR expression2
 
            NOT expression
 
            expression SHL count
 
            expression SHR count
 
  See also: Logical and Shift Instructions, OPTION EXPR16,
            OPTION EXPR32, LOW, LOWWORD
 
  Description:
 
     These operators perform logical manipulations of constant integer
     expressions. They return expressions of the size determined by the
     current expression size. Use the LOW and LOWWORD operators to
     return expressions of smaller sizes.
 
     These operators should not be confused with their instruction
     counterparts. Operators cannot act on registers or memory.
 
     Operand        Description
 
     expression     Any constant integer expression in any valid radix.
 
     count          The number of bits to be shifted. Must be a
                    constant positive integer. Bits shifted in are
                    always 0.
                                    -♦-