HELPLIB.HLB  —  MACRO  /ALPHA  Binary Operators
    In contrast to unary operators, binary operators specify
    actions to be performed on two terms or expressions. You can
    enclose expressions in angle brackets to specify the order of
    evaluation.

    Table 4 Summary of Binary Operators

       BinaryOperator
       OperatName        ExampleOperation

       +     Plus sign   A+B     Addition
       -     Minus sign  A-B     Subtraction
       *     Asterisk    A*B     Multiplication
       /     Slash       A/B     Division
       @     At sign     A@B     Arithmetic shift
       &     Ampersand   A&B     Logical AND (product)
       !     Exclamation A!B     Logical OR (sum)
             point
       \     Backslash   A\B     Logical XOR (difference)

    All binary operators have equal priority. You can group terms or
    expressions for evaluation by enclosing them in angle brackets.
    The enclosed terms and expressions are evaluated first, and
    remaining operations are performed from left to right. For
    example:

    .LONG      1+2*3      ; Equals 9
    .LONG      1+<2*3>    ; Equals 7

    Note that a 64-bit result is returned from all binary operations.
    If you use the 64-bit result in a context requiring less than
    64 bits, only the lower-order bits of the result are used. If
    the truncation causes a loss of significance in a data-storage
    directive, the assembler displays an error message.

    The following sections describe the arithmetic shift, logical
    AND, logical inclusive OR, and logical exclusive OR operators.
Additional Information: explode extract
Arithmetic Shift Operator Logical AND Operator Logical Inclusive OR Operator Logical Exclusive OR Operator
Close Help