Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>- subtraction or unary minus operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
-                Subtraction or Unary Minus                          Operator

    expression1 - expression2       (Subtraction)
 or
    - expression                    (Unary Minus)

    Subtracts an expression from another, or makes an expression a
    negative expression.

       Notes:     The Subtraction operator's operands can be integers or
                  relocatable memory operands.  If both operands are
                  memory addresses, they both must reside in the same
                  segment.  The result of any subtraction operation is an
                  absolute value.

                  The Unary Minus has a higher precedence then the
                  Subtraction operator.  See 'Operator Precedence' for the
                  order of operator precedence.

See Also: * + / MOD Operator Precedence

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson