GNU Info

Info Node: (nasm.info)Section 3.5.4

(nasm.info)Section 3.5.4


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

3.5.4. `<<' and `>>': Bit Shift Operators
-----------------------------------------

   `<<' gives a bit-shift to the left, just as it does in C. So `5<<3'
evaluates to 5 times 8, or 40. `>>' gives a bit-shift to the right; in
NASM, such a shift is _always_ unsigned, so that the bits shifted in
from the left-hand end are filled with zero rather than a
sign-extension of the previous highest bit.


automatically generated by info2www version 1.2.2.9