They are the same as registers since they store binary numbers. Called shifting registers since they shift (left or right) the binary number stored in them in order to multiply or divide, by powers of 2 (2, 4, 8, 16, etc.) the binary number They are the same as registers since they store binary numbers. Called shifting registers since they shift (left or right) the binary number stored in them in order to multiply or divide, by powers of 2 (2, 4, 8, 16, etc.) the binary number 2 Operations 2 Operations: Shift-Left Operation and Shift-Right Operation
Shift-Left Operation Assume we want to multiply the decimal number 6 10 by 2 calculate the binary number equivalent to 6 10 which is: shift the binary number to the left and add 0 to the least significant bit (LSB)
Shift-Left Example Multiply the decimal number 4 10 by 4 1.Calculate the binary number equivalent to 4 10 which is: Move one shift to the left to multiply by 2 3.Move another one shift to the left to multiply again by = = =
Shift-Right Operation Assume we want to divide the decimal number by 2 calculate the binary number equivalent to which is: shift the binary number to the right
Shift-Right Example Divide the decimal number by 4 1.Calculate the binary number equivalent to which is: Move one shift to the right to divide by 2 3.Move another one shift to the right to divide again by = = = 6 10