Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 zero as an input.
Store the integer into register $ and print the value. Then, multiply the number by using shift operations
Do not use multiplication and print the result.
Print the values of bit number to of $The rightmost bit is bit # Bit # 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 :
The bits are: 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 zero as an input.
Store the integer into register $t and print the value. Then, multiply the number by using shift operations Do not use multiplication and print the result.
Print the values of bit number to of $tThe rightmost bit is bit # Bit # 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 :
The bits are: 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started