Assume that all values can be properly represented with 32-bits (i.e. they fit in a register)
• You can test your program using the twoints MIPS emulator frontend, which means you should assume that registers $1 and $2 will be initialized, but you should not make any assumptions about the exact values in those registers.
Your solution should include comments at the beginning that include your name, your Quest ID, and a brief description of the program. These comments should also include a summary of the registers used in the program. See the solutions for Tutorial 5 coding questions as a model.
• Comment each line of your code to describe the purpose of the instruction.
• Do not change the value of registers $30 or $31. The contents of the registers that are explicitly mentioned in the problem description must meet the specification, however other registers may have random values as required by your solution.
2. Consider the following equation: y = (5a – 2b) + (3a – 8) – bab
Write an assembly program that calculates the value of y, and places the result in register $3. The program should assume that the values for register $1 and register $2 have been set by the twoints front end, where register $1 contains the value for a and register $2 contains the value for b.
For example, if the user enters the integers 4 and 1, then after your program runs, the value 0x0000000a should appear in register $3, since Oxa is equal to the decimal number 10.