Question: Using PLP tool: Your program should start by loading the numbers 2015 and 250 into registers $a0 and $a1 respectively. The start of your program
Using PLP tool: Your program should start by loading the numbers 2015 and 250 into registers $a0 and $a1 respectively. The start of your program is a good place to initialize any other registers with values that you dont plan on changing inside the program. It should then have an infinite loop that performs two steps: reading the value of the switches and use control flow instructions to perform the indicated arithmetic operation. The result should be stored in register $v0. After doing this it should return to the start of the loop and repeat these two steps. If an undefined switch value is read (i.e. it is not one of the switch values given below), $v0 should contain 0. Use the following switch convention Switch Number Hexadecimal Switch Value Binary Switch Value Operation Result ($v0) 0 0x00000001 0b00000001 $v0 = $a0 + $a1 2265 1 0x00000002 0b00000010 $v0 = $a0 - $a1 1765 2 0x00000004 0b00000100 $v0 = $a0 * $a1 503750 3 0x00000008 0b00001000 $v0 = $a0 AND $a1 218 4 0x00000010 0b00010000 $v0 = $a0 OR $a1 2047 this program has to be written using assembly language
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
