Starting from an initial value of R in Hex is 47 determine the sequence of binary values in R after a logical shift-left, followed by a circular shift-right, followed by a logical shift-right and a circular shift-left. explain through the proper diagrams.
Given: Starting from an initial value of R in Hex is 47 determine the sequence of binary values in R after a logical shift-left, followed by a circular shift-right, followed by a logical shift-right and a circular shift-left.
It is worth mentioning that a circular shift helps in restructuring the entries in a tuple. This happens by moving the final entry to the first position. At the same time shifting all other entries to the next position, or by performing the inverse operation. A logical shift is a bitwise operation that shifts all the bits of its operand. The two base variants are the logical left shift and the logical right shift. This is further modulated by the number of bit positions a given value shall be shifted, such as shift left by 1 or shift right by n. The outcome of these actions have been captured in the table below:
Comments
Leave a comment