Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom Debugger Guide - <u>+</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+
    Plus:  The result is the value on the right.

_
    Minus:  The result is the negation of the value on the right.

~
    Bit-wise complement:  The result is the bit-wise complement of the value
    on the right.

!
    Logical complement:  If the value on the right is equal to 0 then the
    result is 1; otherwise it is 0.

++
    Increment:  Both prefix and postfix operators are supported.  If the
    object is on the right, it is pre-incremented by 1 (e.g., ++x).  If the
    object is on the left, it is post-incremented by 1 (e.g., x++).

_ _
    Decrement:  Both prefix and postfix operators are supported.  If the
    object is on the right, it is pre-decremented by 1 (e.g., --x).  If the
    object is on the left, it is post-decremented by 1 (e.g., x--).

&
    Address of:  The result is the address (segment:offset) of the object on
    the right (e.g., &main).

*
    Points:  The result is the value stored at the location addressed by the
    value on the right (e.g., *(ds:100), *string.loc).  In the absence of
    typing information, a near pointer is produced.  If the operand does not
    have a segment specified, the default data segment (DGROUP) is assumed.


               (SS:00FE) = FFFF
         var:  (SS:0100) = 0152
               (SS:0102) = 1240
               (SS:0104) = EEEE

%
    Value at address:  The result is the value stored at the location
    addressed by the value on the right (e.g., %(ds:100), %string.loc).  In
    the absence of typing information, a far pointer is produced.  If the
    operand does not have a segment specified, the default data segment
    (DGROUP) is assumed.


               (SS:00FE) = FFFF
         var:  (SS:0100) = 0152
               (SS:0102) = 1240
               (SS:0104) = EEEE

    Note that this operator is not found in the C or C++ programming
    languages.

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