GNU Info

Info Node: (nasm.info)Section 3.5.6

(nasm.info)Section 3.5.6


Next: Section 3.5.7 Prev: Section 3.5.5 Up: Section 3.5
Enter node , (file) or (file)node

3.5.6. `*', `/', `//', `%' and `%%': Multiplication and Division
----------------------------------------------------------------

   `*' is the multiplication operator. `/' and `//' are both division
operators: `/' is unsigned division and `//' is signed division.
Similarly, `%' and `%%' provide unsigned and signed modulo operators
respectively.

   NASM, like ANSI C, provides no guarantees about the sensible
operation of the signed modulo operator.

   Since the `%' character is used extensively by the macro
preprocessor, you should ensure that both the signed and unsigned
modulo operators are followed by white space wherever they appear.


automatically generated by info2www version 1.2.2.9