next up previous contents index
Next: LSHIFT Up: SaM Instruction Set Architecture Previous: DIVF   Contents   Index

Shifts

These instructions perform signed bitwise shifting. Shifting moves all the bits in the shifted value over by the specified amount left or right. With signed bitwise shifting, the sign of the value is preserved when shifting to the right. Bitwise shift left is eqivalent of multiplying an integer by two. Bitwise shift right is equivalent to dividing an integer by two.



Subsections

David Levitan 2006-02-12