Question: I want a MIPS code, which can run on MARS4_5. This program will print Enter numbers to ask user to type a decimal number
I want a MIPS code, which can run on MARS4_5.
This program will print "Enter numbers " to ask user to type a decimal number and print its 8-bits binary number, like 15 to 00001111.
Also, the input decimal number should in a range between -128 and 127. If the input is out of range, system should print "out of range"
Here is the output.

Enter Number: -15 Binary Number: 0001 program is finished running (dropped off bottom Enter Number: 12 Binary Number: 0000 1100 program is finished running (dropped off bottom Enter Number: 230 Number out of range! program is finished running (dropped off bottom Enter Number: -150 Number out of range! program is finished running (dropped off bottom Enter Number: 85 Binary Number: 0101 0101 program is finished running (dropped off bottom Enter Number: -85 iary NroD 1010 1011 program is finished running (dropped off bottom)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
