Question: Problem A: Write a MIPSzy program to determine the range between pairs of numbers. Your program should meet the following functional requirements: - Input: an

 Problem A: Write a MIPSzy program to determine the range between
pairs of numbers. Your program should meet the following functional requirements: -

Problem A: Write a MIPSzy program to determine the range between pairs of numbers. Your program should meet the following functional requirements: - Input: an arbitrary number of integer pairs (in all pairs, the first number will be the max value) - Output: for each pair, output the range - You may assume an even number on input values Here is an example of MIPSzy code: Assembly Input 3 25 4444 - Line 1 addi $t1, Szero, 8192 Line 2 detin: 1 st), osti) Line 3 beg Szero, St, Done kb ready? Line 4 Line 5 add $t2, Szero, 5196 Line 6 l 514, (52) Get kb input Registers Szero 0 0 8192 8196 Line 7 BOR Data memory 50000 50040 50080 8192 0 4444 8200 8888 Line 8 add ste, St4, Ste. Double Line 9 Line 1e addi sts, Sero, 3200 Line 11 sw St4, (st) # Output double to s Line 123 Getin Line 13 Done: InoutRead Input Value 8198444 Output Se 188 Output Value 8888 8200 EXIT SIMULATION START AGAIN

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!