Question: How would I write a MIPS program to extract the value 11011 from a register, $s0, and add this number to $s1 at back of
How would I write a MIPS program to extract the value 11011 from a register, $s0, and add this number to $s1 at back of $s1 and the rest of the register is 0. How would i do this?
so s0 : 111001 11011 111101 01111 10001 100011
and we want to take Xs = 11011 and put it into $s1 so it looks like
00000000 00000000 00000000 00011011
What would be the MIPS code for this?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
