You are on page 1of 7

Computer Science - 4678

Topic: Logical Shift 


 Teacher:Maha Wania
Topics to be discussed

What is LOGICAL SHIFT?

How this logical binary shift


is performed.

Effects of Logical shift to


the left and right.
What is Logical Binary Shift?

• Logical Shift is an operation that moves all binary digits a specified number of
positions either right or left. 
• A Logic Shift simply moves a set of bits right or left & As bits are shifted, any
empty positions are replaced with a zero.
• There is clearly a limit to the number of shifts which can be carried out if the
binary number is stored in an 8-bit register. Eventually after a number of shifts
the register would only contain zeros
Left And Right Logical Shift:

•In LEFT Logical shift, the The left-


most bit is lost following a left shift in
whole binary value of 8 bits.
• The empty right-most bit position
now filled with a 0.
• In RIGHT Logical shift,
the The right-most bit is lost
following a right shift in
whole binary value of 8 bits.
• Now the empty right-most bit
position is filled with a 0.
Effects of Logical Shift

Each shift to left is


Each shift to right is
equivalent to
equivalent to
multiplying the
dividing the binary
binary number by 2
number by 2.
and
                          PRACTICE QUESTION

•Q1. 1 0 0 1 1 1 0 0
•Shift the above given bit register to two places right and note down the effect
occurred.
•Q2. 0 0 0 1 1 1 0 0
•Shift the above given bit register to three places left and what is the
effect of this shift.

You might also like