Console Assembly

MIPS assembly code multiply/divide.?
I have to write an unsigned 16-bit software implementation of a multiplier and a divider in MIPS assembly code. Two positive integers are read from the console. The program is supposed to multiply and divide the two integers, outputting the product, quotient and remainder.
Here is an example run:
Enter an integer: 10
Enter an integer: 4
Product is 40
Quotient is 2
Remainder is 2
I can’t use any MIPS multiply/divide instructions either.
CAN SOMEONE PLEASE HELP ME WITH THIS? I’M STILL A BEGINNER WITH MIPS ASSEMBLY LANGUAGE AND WOULD APPRECIATE ANY HELP.
I haven’t written in assembly for some time (and I only did for one class anyway), so I can’t code anything off the top of my head, but here’s the basic idea. Let’s say you have integers X and Y.
MULTIPLY:
Multiplication is just addition of the same number for a specified number of times, right? So, you’ll need to keep a running total. Start your total at 0. Then, loop. Use X as your loop counter. During each iteration of the loop, add Y to the total and subtract one from the counter. When the counter hits 0, you’re done. You’ve added Y to the total X number of times. That’s multiplication!
DIVIDE:
Division is the opposite of multiplication, simply speaking. So, instead of adding Y each time, we’ll subtract it. (I’m going to assume that the integers are both positive and that X is to be divided by Y.) You’ll need to start your quotient at 0 and a “running” divisor at X. Now we loop. For each iteration of the loop, you’ll subtract Y from the divisor and add 1 to the quotient.
The loop will go like this:
Compare divisor to Y. If the divisor is less than Y, exit the loop. What’s left in the divisor is your remainder. If divisor is not less than Y, do your subtracting, add 1 to the quotient, and repeat the loop.
Hopefully that will get you started in the right direction. If you need more help, ask it here (and message me so I know you’ve updated your question).
Classic Console Assembly