Your program should start by loading the numbers 2015 and 25
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 don’t 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 Result ($vo) Hexadecimal Switch Value 0x00000001 0x00000002 0x00000004 0x00000008 0x00000010 Other Binary Switch Operatior Value 0b00000001 SvO Sa0+Sa1 0b00000010 SvO Sa0 - $a1 0b00000100 | Sv0-$00 * Sal 0b00001000 SvO Sa0 AND $a1 0b00010000 SvO Sa0 OR $a1 2265 1765 503750 218 2047 0 0 2 4 Other Other $v0 = 0Solution
$v0 for $a1+$a2 is 2015+205=2265
$v0 for $a0-$a1 is 2015-205=1765
$v0 for $a1*$a0=2015*205=503750
$v0 for $a0 AND $a1 is 32 bits difference in value of $a1 so it is 250-32=218
$v0 for $a0 OR $a1 is 32 bits value added to $a0 i.e, 2015+32=2047
$v0=0, 0 is the value
So , al lthe values are correct according to watcher window
