Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write it in MIPS code and where user can put any number in the input not hardcode the number into the code WEEK 6: Project

image text in transcribed

Write it in MIPS code and where user can put any number in the input not hardcode the number into the code

WEEK 6: Project 1 Part B You are tasked to use the same positive integers from Part A to also compute: h=f/g; i = (f+y) 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 quolient with remainder) in a formal as separato decimal integers. Indicate the denominator for the remainder. To receive credit, no multiplication, no division, and no shift instructions shall be used. Namely, do not use any of (mul, mul.d, mul.s, mulo, mulou, mult, multu, mulu, div, divu, rem, sll, slly, sra, srav, srl, srlv). The goal to compose your own division techniquc. In addition, use of a loop is required for credit to rcalize the division code. It part of the project points to design a way to realize division using a loop. Do not use of Macro, Subroutines, or Functions in this project. You can refer to the definition of division and how division works. For example, given a positive integer X, and a positive interer Y whero XY then the division X/Y is computed such that unique integers Q and R satisify X=(Y* Q+R) where 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions