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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started