Open main menu

CDOT Wiki β

Changes

Bitwise Operations

109 bytes added, 12:16, 14 January 2014
Shift
Shift operations are like rotate operations, but bits shifted out of the word are either lost or placed in a processor [[Register#Status Register|flag]], and bits shifted in are either 0 or from a processor flag.
 
Note that a binary left-shift is equivalent to multiply-by-2, and right-shift is equivalent to divide-by-2.