Question: Prgm) Prompt the user to enter 2 decimal numbers (remember the newline) and save them to data memory. Then using add/shift method, multiply the two

Prgm) Prompt the user to enter 2 decimal numbers (remember the newline) and save them to data memory. Then using add/shift method, multiply the two numbers together. You CANT use mul directly. Output the result using syscall 1 to the screen. There is no credit if your code will do more than 32 iterations for some input (i.e. no slow, n*m = n+n+n+n+n+n+n+n+n+n+n+n+n+n+n+n+n+n+n+n+n+n+...).

Then also print the answer in base-32 on a new line. Do not use div/mul/rem or similar. Also save this output to an output file called Lab3.txt Then your program should start over again for two new numbers. I should not have to click anything to restart.

Stick to using only the t-registers when you can.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!