Question: solve it in MARS MIPS Implement the following assembly program in Mars MIPS that performs the following tasks in sequence: Print an introduction that includes:
solve it in MARS MIPS
Implement the following assembly program in Mars MIPS that performs the following tasks in sequence:
- Print an introduction that includes: your name and a short description of the program.
- Ask the user to enter two integers and save these in two registers.
- Perform addition, subtraction, multiplication and division (integer quotient) on two integers.
- Display the results of addition, subtraction, multiplication and division.
- Print Thank You! in the end.
Output
| Your name This program will perform simple arithmetic on two integers inputted by user.
Enter first Number: 9 Enter second number: 3 Sum = 12 Difference = 6 Product = 27 Quotient = 3
Thank You! |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
