Question: I am posting this question 4th time but not getting correct answer. Please help me to solve it. Please make sure you read note part

I am posting this question 4th time but not getting correct answer. Please help me to solve it. Please make sure you read note part carefully.Do not use multiplication, division, shift instruction , jal,jr that are mentioned below

You are tasked to use the same positive integers from Part A to also compute: g = [a+(a*b)+(a*b*c)] / max(a,b,c)

More formally, write MIPS code to output the result of above expression of g without using any built in MIPS/MARS instructions for multiplication or division. The values already entered for Part A for a ,b , and c shall be used. Output the value of g in {quotient with remainder} format as separate decimal integers. Indicate the denominator for the remainder.

Note: To receive credit, no multiplication, no division, and no shift instructions shall be used. Namely, none of { mul, mul.d, mul.s, mulo, mulou , mult, multu, mulu, div, divu, rem, sll, sllv, sra, srav, srl, srlv } or else a zero score will result. Thus, it is to compose your own division technique. In addition, use of a loop is required for credit to realize the division code. It part of the pro ject points to design a way to realize division using a loop. For uniformity of grading and to focus on practicing the current topics, any use of jal/jr instructions is disallowed : a score of zero will result if jal/jr are used.

This is how output should look like.

I am posting this question 4th time but not getting correct answer.

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!