MIPS assembly program

Write and test a MIPS assembly program that performs the following tasks, in order:

1. Print a description of the program.

Don't use plagiarized sources. Get Your Custom Essay on
MIPS assembly program
Just from $13/Page
Order Essay

2. Prompt the user for two numbers and save these in two registers.

3. Perform several calculations using these two numbers, and save each result in data memory. Results to compute: sum, difference, product, (integer) quotient, and remainder of the two numbers.

4. For each computed result, retrieve it from memory and print it in a nice way.

5. Print a concluding message and exit.

In Task 3, each of the results must be stored to a different location in data memory. In Task 4, these results must each be retrieved from data memory. You should begin by declaring all of the constants and variables you will need in the data segment. Your text segment should be divided into five sections, corresponding to the five tasks. Comments should indicate the sections. This means that you will perform all of the calculations and store all of the results into memory (Section 3) before you retrieve and print each of them (Section 4). At the end of your program you should use the “exit” system call (10) to exit cleanly from your program. Finally, your program must be fully documented. COMMENTS ARE REQUIRED but you should not comment every line. Instead, break it into small, logical chunks that can be succinctly described (e.g. “calculate the difference and save to memory”).

Homework Writing Bay
Calculator

Calculate the price of your paper

Total price:$26
Our features

We've got everything to become your favourite writing service

Need a better grade?
We've got you covered.

Order your paper