Question: Do the following using MIPS and upload as .asm file. Perform the following operation on the given list of numbers: Input: a,b,c Calculations/Computation needed to
Do the following using MIPS and upload as .asm file.
Perform the following operation on the given list of numbers:
Input: a,b,c
Calculations/Computation needed to be performed:a*b
Condition check: Check if a*b is even or odd
Output: If a*b is even return a*b+c
Else return a*b-c
Example1:
Input: 20,30,50
Calculations/Computation needed to be performed: 20*30=600
Condition check: 600 is even
Output: 600+50 = 650
Example2:
Input: 21,31,50
Calculations/Computation needed to be performed: 21*31=651
Condition check: 651 is odd
Output: 651-50= 601
Example3:
Input: 20,30,52
Calculations/Computation needed to be performed: 20*30=600
Condition check: 600 is even
Output: 600+52= 652
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
