The assignment is to create a MIPS program that does an integer multiply using adds and shifts. The program is to input two positive integers between 0 and 32767 (the program must verify that the numbers are in this range and if not, print and error message and then ask the user to reinput the number). The program will then use shifts and adds to do an integer multiply. The program’s output will be the answer to the problem (the product). The numbers are restricted to the given range so that you do not have to worry about negative numbers or overflow in the 32 bit registers you have to work with. Make certain to have a prompt before the input, so that the user will know what to do. Also have a message stating what the output is. Note: As always with assembly language, have a lot of comments in your code and make it neat.
The assignment is to create a MIPS
Note: As always with assembly language, have a lot of comments in your code and make it neat.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps