Question: In MIPS language, Please make sure it is working corectly. Will vote! You ( probably ) used syscalls 3 5 and 3 4 in the
In MIPS language, Please make sure it is working corectly. Will vote!
You probably used syscalls and in the last lab. Libraries and operating systems
have many functions like these or syscall or etc Someone had to write it Today you are that someone. The old someone was up too late and our multiply instruction broke. Write a replacement, and make sure its not slow.
Prgm Prompt the user to enter base numbers and save them to data memory.
Then using addshift method, multiply the two numbers together. You CANT use mul
directly. Output the result using syscall to the screen. There is no credit if your code
will do more than iterations for some input ie no slow, nm
nnnnnnnnnnnnnnnnnnnnnn
Prgm Print the answer from Prgm in base Stick to using only the tregisters when you can. If you use an integer to ASCII character mapping that we learned in the previous lecture, you will be able to easily implement this function.
Notes:
By base I mean like hex base but with groups of bits instead of from Least
Significant Bit LSB so we use letters up to V Start by thinking about how you would do
syscall or
For example, in bit
Grouping bits from LSB
Conversion into base E H A H S
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
