1,885
edits
Changes
→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.