Question: Write in MIPS Evaluate the expression: 18xy + 12x - 6y + 12 Use symbolic addresses for x, y, and the answer. Assume that the
Write in MIPS
Evaluate the expression: 18xy + 12x - 6y + 12 Use symbolic addresses for x, y, and the answer. Assume that the values are small enough so that all results fit into 32 bits. Since load delays are turned on in SPIM be careful what instructions are placed in the delay slots. Verify that the program works by using several initial values for x and y (for now, just modify and re-run the program). Use x = 0, y= 1 and x = 1, y=0 to start since this will make debugging easy. Then try some other values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
