Question: Please convert my c program code attached below into MIPS assembling language. MIPS code outline is also attached below. HW2-2: In this part, you will

Please convert my c program code attached below into MIPS assembling language. MIPS code outline is also attached below.  Please convert my c program code attached below into MIPS assembling
language. MIPS code outline is also attached below. HW2-2: In this part,
you will write an assembly program Median that computes the median of

HW2-2: In this part, you will write an assembly program Median that computes the median of 100 integers stored in memory. You will call a software interrupt that will store 100 randomly generated numbers in static memory you is provided to get you started. have reserved. A shell program HW2-2-shell.asrm ECE 2035 Homework 2 Spring 2018 As in part HW2-1, there may be code available from other sources (e.g., on the web, from friends/enemies, etc.); don't use it! You should figure this out on your own Library Routines: There is one library routine (accessible via the swi instruction). SWI 542: Random: This routine initializes memory beginning at the specified base address (e.g., Array) with 100 random integers. The integers are in the range -999 to 999. INPUTS: SI should contain the base address of the 100 words already allocated in memory. OUTPUTS: none During testing, from Misasim you can dump the memory array to a text file and run your program on it to see if both your C and ASM programs are getting consistent results. (This is how the value files provided in HW2-1, such as test41.txt, were created.) To do so, use the dump command in mis (address,value pairs) to a named file at the trace ine the simulator is currently displaying. Therefore, step the simulator to the instruction immediately following the swi 542, and then dump the memory Please remember that your MIPS code should be a direct translation of your C-code. Do not start your assembly program from scratch, or use a different algorithm than you used in C. r HW2-1 asim. Note that the dump command dumps the entire me In order for your solution to be properly received and graded, there are a few requirements. I. The file must be named HW2-2.asm 2. Your name and the date should be included in the beginning of the file 3. Your program must produce and store the median value in $2 when t returns. 4. Your program must return to the operating system via the jr instruction. Programs that include infinite loops or produce simulator warnings or errors will receive zero credit

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!