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.

I want a MIPS code, which can run on MARS4_5. This program

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

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!