Question: Assembly Programming in MIPS Write a program in MIPS assembler that performs the following computations: Prompts the user to enter two integers and stores the
Assembly Programming in MIPS
Write a program in MIPS assembler that performs the following computations:
Prompts the user to enter two integers and stores the smaller one in the first data memory word with the lowest address and the larger one in the second data memory word.
Then divides in integer the larger word by the smaller word and stores the quotient and the remainder in the next two consecutive data memory words.
Finally, it prints the four data memory words on separate lines each starting with a label larger integer, smaller integer, quotient, remainder
Requirements and restrictions
Use integer arithmetic only.
Use input and output through system calls including print string for prompting the user and printing labels.
Do NOT use bare machine, delayed branches and delayed loads options uncheck them in SimulatorSettings
For each instruction Include as comment in the source file: its type, format and meaning in the program.
Use the SPIM simulator to run the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
