Knowee
Questions
Features
Study Tools

Let register R1 contains the binary equivalent of the last two digit of 2205099. Perform the following operations on R1 separately. Assume b is the number bits to be shifted or rotated. b=2205099 % 7 +1. a)LShiftL #b, R1b)AShiftL #b, R1c)LShiftR #b, R1d)AShiftR #b, R1e)RotateL #b, R1f)RotateLC #b, R1 if C=0g)RotateR #b, R1h)RotateRC #b, R1 if C=0

Question

Let register R1 contains the binary equivalent of the last two digit of 2205099. Perform the following operations on R1 separately. Assume b is the number bits to be shifted or rotated. b=2205099 % 7 +1. a)LShiftL #b, R1b)AShiftL #b, R1c)LShiftR #b, R1d)AShiftR #b, R1e)RotateL #b, R1f)RotateLC #b, R1 if C=0g)RotateR #b, R1h)RotateRC #b, R1 if C=0

🧐 Not the exact question you are looking for?Go ask a question

Solution

The last two digits of 2205099 are 99. The binary equivalent of 99 is 1100011.

The value of b is calculated as 2205099 % 7 + 1 = 5.

a) LShiftL #b, R1: This operation left shifts the bits in R1 by b places. So, 1100011 becomes 1000000.

b) AShiftL #b, R1: This operation is arithmetic shift left. It is the same as logical shift left for positive numbers. So, 1100011 becomes 1000000.

c) LShiftR #b, R1: This operation right shifts the bits in R1 by b places. So, 1100011 becomes 0000011.

d) AShiftR #b, R1: This operation is arithmetic shift right. It is the same as logical shift right for positive numbers. So, 1100011 becomes 0000011.

e) RotateL #b, R1: This operation rotates the bits in R1 to the left by b places. So, 1100011 becomes 0110001.

f) RotateLC #b, R1 if C=0: This operation rotates the bits in R1 to the left by b places through carry. Since C=0, it is the same as RotateL. So, 1100011 becomes 0110001.

g) RotateR #b, R1: This operation rotates the bits in R1 to the right by b places. So, 1100011 becomes 1110001.

h) RotateRC #b, R1 if C=0: This operation rotates the bits in R1 to the right by b places through carry. Since C=0, it is the same as RotateR. So, 1100011 becomes 1110001.

This problem has been solved

Similar Questions

What type of register would shift a complete binary number in one bit at a time and shift all the stored bits out one bit at a time?

The content of an 8-bit register is 01011010. The register is shifted ten times to the rightwith the serial input being 1100111010 (i.e. 1 is shifted in first etc.). What is the content ofthe register after each shift?

reverse a binary number stored in al in assembly language

If the following registers have the specified values,R0 = 0x00000000R1 = 0x00000005R2 = 0x00000002Then the result of MULL R0, R1, R2 will be ___________ and the result is stored in _______.a.0x00000010 & R0b.0x00000010 & R1c.0x0000000A & R1d.0x0000000A & R0

The current contents of a general purpose register (X) are: X = 10111010 The currents of X represent an unsigned binary integer. Convert the value X into hexadecimal

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.