Question
NEED URGENT MIPS ASSEMBLY CODE HELP I HAVE NO IDEA HOW TO DO THIS PLEASE BUILD A MIPS ASSEMBLY CODE PROGRAM FOR ME THE FULFILLS
NEED URGENT MIPS ASSEMBLY CODE HELP I HAVE NO IDEA HOW TO DO THIS PLEASE BUILD A MIPS ASSEMBLY CODE PROGRAM FOR ME THE FULFILLS THE FOLLOWING CONDITIONS: 1) MENU : Print a MENU informing the user to enter an 'a to add, 's to subtract or a 'x to exit 2) USER INPUT : Wait for the user to respond. You MUST correctly obtain and interpret a character response (not a number) for the MENU. 3a) FUNCTION FOR ADDITION: If the user entered 'a , jump and link to a function that does ADDITION (you can use the given example code for the implementation). The function should ask the user for two numbers and output the result. THEN, the function should jump return back to, right after, the calling jump and link. The implementation MUST be a function. 3b) FUNCTION FOR SUBTACTION: If the user entered 's , jump and link to a function that does SUBTRACTION (you can modify the given example code for the implementation). The function should ask the user for two numbers and output the result. THEN, the function should jump return back to, right after, the calling jump and link. The implementation MUST be a function. 3c) EXIT: If the user entered 'x, exit the program (optional if you want to first print an exit message or not) 3d) INVALID CHOICE: If the user entered some other character, simply loop back to printing the menu and awaiting a valid response.
Use a switch statement for the menu
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started