Question: The instruction sll in MIPS is used to implement a bit shift left. The syntax is: There rt is the target register that contains the

 The instruction sll in MIPS is used to implement a bit

The instruction sll in MIPS is used to implement a bit shift left. The syntax is: There rt is the target register that contains the value you want to bit shift left, shamt is the hift amount value, that is, how many bits you want to shift, and rd is the destination register there the result will be stored. iven this, how would you write the MIPS assembly instructions for the following (the nswers must not be more than 1 line): a) Bit shift left what is in register $ to by 3 bits and put the result in register \$t1? b) Bit shift left what is in register $a3 by 10 bits and put the result back in $a3 ? c) Take what's in register $t4, multiply it by 32 , and put the result in $ t5? The multiplication HAS to be done using a bit shift left operation. Explain this answer. d) Assume that, in the last question, register $ t4 had the value 258 . What would the value in register $ t5 be? Explain your answer without doing hex to decimal or decimal to hex conversions (i.e. use bit shifting to explain). Give your final answer in hexadecimal format

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 Databases Questions!