Question: Write a code in MIPS to add two numbers and print the result. 1. Prompt the user to enter the first number. 2. Get
Write a code in MIPS to add two numbers and print the result. 1. Prompt the user to enter the first number. 2. Get the first number from the user and save it in $t0. 3. Prompt the user to enter the second number. 4. Get the first number from the user and save it in $t1. 5. Add $t0 and $t1 and save the result in $t2. 6. Print "The answer is = ". 7. Print the value in $t0 as the answer.
Step by Step Solution
There are 3 Steps involved in it
It looks like the question contains a mistake as step 7 mentions printing the value in t0 as the ans... View full answer
Get step-by-step solutions from verified subject matter experts
