Question: 1. Write a short segment of MIPS assembly that writes values of 30 and 75 to memory locations Ox10000000 and Ox10010000, respectively. 2. Write a

1. Write a short segment of MIPS assembly that writes values of 30 and 75 to memory locations Ox10000000 and Ox10010000, respectively. 2. Write a short segment of MIPS assembly to compare the contents of register $s3 with 42. If the value in register $s3 is not equal to 42, then branch to a label called "DIFFERENT." 3. Explain what happens when the following instruction is executed: jal my_funct (note, assume my_funct is a valid label) 4. Explain what happens when the following instruction is executed: jr $ra 5. Assume register $50 is a pointer to the beginning of an array of 100 32-bit integers. Write a MIPS assembly loop to add all values of the array and put the sum in register $s7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
