0% found this document useful (0 votes)
24 views7 pages

Cs Logical Shift

The document discusses logical binary shifts, explaining that they move bits a specified number of positions right or left by filling empty positions with zeros. Left shifts lose the leftmost bit and fill the rightmost position with zero, while right shifts lose the rightmost bit and fill the leftmost position with zero. Each left shift multiplies the number by 2, while each right shift divides it by 2.

Uploaded by

Teck Tie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views7 pages

Cs Logical Shift

The document discusses logical binary shifts, explaining that they move bits a specified number of positions right or left by filling empty positions with zeros. Left shifts lose the leftmost bit and fill the rightmost position with zero, while right shifts lose the rightmost bit and fill the leftmost position with zero. Each left shift multiplies the number by 2, while each right shift divides it by 2.

Uploaded by

Teck Tie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 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