It often happens that a bit pattern must be shifted several positions left or right. The instructions that do this are the shift instructions.
sll
and srl
).or
, and
, xor
, nor
).
(Review:) If a bit pattern that represents an integer N
using unsigned binary
(say 0110 0001
)
is shifted left by one bit
(to 1100 0010
)
what integer does the new bit pattern represent?