Question: Your MIPS program should be able to KEEP TAKING integer values from user input until you type in a zero an input. The program should

Your MIPS program should be able to KEEP TAKING integer values from user input until you type in a zero
an input. The program should prompt "Enter a number:" to get the user input. Your program should finish th
execution properly when you enter 0(zero) as an input.
Store the integer into register $t1 and print the value. Then, multiply the number by 8 using shift operations
(Do not use multiplication) and print the result.
Print the values of bit number 1 to 4 of $1.(The rightmost bit is bit #0. Bit #4 should be the first one to be
printed). You should use the bit manipulation instructions like AND, OR, or NOT instruction and you need tc
use a loop to print the bit values.
You need to give detailed comments to explain what is happening in the code. The level of detail will be
graded.
You need to show the result screens for at least five numbers including negative numbers.
You need to use the newlines spaces properly so that the output prints in an orderly manner. Your output
should look like:
The number you entered:
After it is multiplied by 8 :
The bits [4-1] are: 0001(This is just an example. There should be one space between each bit value)
You need to submit your source program (.asm file) and screenshots of execution results (.pdf file) separately.
Your source program should include your name and class name.
Your MIPS program should be able to KEEP TAKING integer values from user input until you type in a zero as an input. The program should prompt "Enter a number:" to get the user input. Your program should finish the execution properly when you enter 0(zero) as an input.
Store the integer into register $t1 and print the value. Then, multiply the number by 8 using shift operations (Do not use multiplication) and print the result.
Print the values of bit number 1 to 4 of $t1.(The rightmost bit is bit #0. Bit #4 should be the first one to be printed). You should use the bit manipulation instructions like AND, OR, or NOT instruction and you need to use a loop to print the bit values.
You need to give detailed comments to explain what is happening in the code. The level of detail will be graded.
You need to show the result screens for at least five numbers including negative numbers.
You need to use the newlines spaces properly so that the output prints in an orderly manner. Your output should look like:
The number you entered:
After it is multiplied by 8:
The bits [4-1] are: 0001(This is just an example. There should be one space between each bit value)
You need to submit your source program (.asm file) and screenshots of execution results (.pdf file) separately. Your source program should include your name and class name.
 Your MIPS program should be able to KEEP TAKING integer values

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!