x86 Assembly Language Reference Manual

Operators

The assembler supports the following operators for use in expressions. Operators have no assigned precedence. Expressions can be grouped in square brackets ([]) to establish precedence.

+

Addition

-

Subtraction

\*

Multiplication

\/

Division

&

Bitwise logical AND

|

Bitwise logical OR

>>

Shift right

<<

Shift left

\%

Remainder

!

Bitwise logical AND NOT

^

Bitwise logical XOR


Note –

The asterisk (*), slash (/), and percent sign (%) characters are overloaded. When used as operators in an expression, these characters must be preceded by the backslash character (\).