Question: Please write code in assembly language commenting on each line with explanation and please explain what each register is used for. Thanks! You are tasked
Please write code in assembly language commenting on each line with explanation and please explain what each register is used for. Thanks!


You are tasked to use the same positive integers from Part A to also compute: h = /g; i = (f+g) MOD h_quotient; More formally, write MIPS code to output the result of above expression of h and i without using any built-in MIPS/MARS instructions for multiplication or division. The values already entered for Part A for a, b, c, and d shall be used. Output the value of h and i in {quotient with remainder} in a 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, sli, 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 project points to design a way to realize division using a loop. Hint: You can refer to the definition of division and how division works. For example, given a positive integer X, and a positive integer Y where >>Y then the division X/Y is computed such that unique integers Q and R satisify X=(Y*Q + R) where 0 s R>Y then the division X/Y is computed such that unique integers Q and R satisify X=(Y*Q + R) where 0 s R
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
