This project is very small, only several lines, but I don't have time to complete it. Its utilizing an assembly language called PLP. Here's the instructions:
The 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:
(View Table Attachment)
Verify, using the Watcher Window, that the correct value is being placed in register $v0 for each switch value. The watcher window is the magnifying glass button on the top panel.
The documentation for PLP can be found here:
[url removed, login to view]
I've also attached some useful slides.
I need this done by tomorrow evening EASTERN STANDARD TIME (roughly 6PM).