### Question 5

There is a register using the binary system. How can a positive integer x stored in this register be increased tenfold? Assume that overflow by the shifting operation does not occur.

a) Shift x 2 bits to the left, add x to the value and the shift the result 1 bit further to the left.

b) Add the value obtained by shifting x 3 bits to the left, and another value obtained by shifting x 2 bits to left.

c) shifting x 3 bits to the left, add x to the value and then shift the result 1 bit further to the left

d) shift x 5 bits to left

answer

## No comments:

Post a Comment