Question: Write a complete MIPS program to allow the user to check, rest, set, or view any bit of an inputted integer in any order any

Write a complete MIPS program to allow the user to check, rest, 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 31) to one. t: Toggle the indicated bit (0 to 31 inclusive) to the other state. x: View your current integer in hexadecimal (see MIPS book). Your program will prompt the user for an integer first, then loop on your menu until the user enters 'q' for quit.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!