Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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