Question: Write a complete MIPS program to allow the user to check, reset, set, or view any bit of an inputted integer in any order any
Write a complete MIPS program to allow the user to check, reset, set, or view any bit of an inputted integer in any order any number of times with other user commands being "start over and quit (once). The user commands are one lowercase letter. Menu options and meanings: a: Allow the user to start over with a new integer d: View your current integer in decimal q: Quit (once, of course) r: Set the indicated bit (0 to 31 inclusive) to zero s: Set the indicated bit (0 to 31inclusive) to one t: Toggle the indicated bit (0 to 31 inclusive) to the other state Your program will prompt the user for an integer first, then loop on your menu until the user enters 'q' to quit. For example: Your integer: 12345 Menu options: a, d, q, r, s, t Option: s bit: 7 Menu options: a, d, q, r, s, t Option: t bit: 6 Menu options: a, d, q, r, s, t Option: d Current integer 12537 Menu options: a, d, q, r, s, t Option: q bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
