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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!