Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started