Question: Consider an 8 - bit shift register that uses the shift operations to perform operations like multiplication and division of a binary number by a

Consider an 8-bit shift register that uses the shift operations to perform operations
like multiplication and division of a binary number by a power of 2.
Our industrial embedded computer has commands for shift registers written in the
form:
SHR n
Where the contents are shifted to the right by n bits.
SHL n
Where the contents are shifted to the left by n bits.
a. If the register contains the binary equivalent of the decimal number 26:
i. Show the contents of the register before and after the command SHR 2.
Before
After
ii. What is the decimal equivalent after?
b. If the register contains the binary equivalent of the decimal number 26:
i. Show the contents of the register before and after the command SHL 2.
ii. What is the decimal equivalent after?
Consider an 8 - bit shift register that uses the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!