Answered step by step
Verified Expert Solution
Link Copied!

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 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Which kind of lens is used to make a magnifying glass?

Answered: 1 week ago