Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1st problem: need help writing a MIPS program that does the following (there is C++ sample code below to explain the logic): 1st problem: 1)

1st problem:

need help writing a MIPS program that does the following (there is C++ sample code below to explain the logic):

1st problem:

1) Create an array of 21 INTEGERS, you can put whatever you want in it, but they shouldn't be sorted. Without using recursion:

2) Create a procedure to find the largest called find largest

3) Create a procedure to find the smallest called find smallest.

4)Create a procedure called range, which is the difference between largest and smallest (range should call find largest and find smallest)

2nd problem:

Write a MIPS program that will handle calculating mini float addition for two numbers using the rules discussed in class and storing each of the parts as a binary integer.

To do this, each 'mini float' number will need to be represented ( suggest hardcoded) as one register for the sign, one for the exponent part, one for the 'significand'(which you then convert to the fraction part). Hard coding means here that you don't need to read in the 6 parts as user input, just have something like

li $s0, 0

li $s1, 12

li $s2, 5

which is equivalent to a minifloat of 0 1101 101 = 1.101 * 2^(12-7) = 1.101*2^5

This means the program will be work with at least 6 registers as variables.

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

=+6. How does the writer establish credibility?

Answered: 1 week ago

Question

=+ Determine whether to use the direct or indirect approach.

Answered: 1 week ago

Question

=+5. What reader benefits are included?

Answered: 1 week ago