Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

A binary number is parallel-loaded into a shift register. The shift register is then commanded to shift right" for one clock pulse. How does the value of the shifted binary number compare to the number originally loaded in, assuming that the MSB is on the left flip-flop of the shift register?

share|improve this question
7  
I smell homework. –  Rocketmagnet Sep 4 at 10:43
    
Just write the binary number on a piece of paper ... then do the shift and write it on the line below ... calculate the number and write next to the new binary number ..... Do this for 10 numbers between 0 and 255 (any number ... go on pick them at random if you can't think of good numbers) ... examine the pattern ... Even if you get the answer wrong you should get you a few marks.... –  Spoon Sep 4 at 12:31

2 Answers 2

Just try it with a couple of numbers and you can find out by yourself:
e.g. 12 (dec) has binary representation 1100.
Shift right by one bit yields 0110, which is 6 (dec).

Now try some more examples and you will see.

share|improve this answer

A logical shift right divides the original value by 2.

Correspondingly, a logical shift left multiplies by 2.

share|improve this answer
    
Ok, what did I miss? If you're going to down vote, at least explain why. –  Eight-Bit Guru Sep 9 at 0:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.