HELP : how to create a multiplication program?ASAP, creating

Started by ronan_z999, August 28, 2006, 09:03:00 PM

Previous topic - Next topic

ronan_z999

i was ask by our assembly instructor to create a multiplication program where in you enter two 2-digit numbers and the product will come out..

(THIS IS FOR MASM 6.11 version).. pls help me with the source codes.. pls. keep it simple..
----------------------

ex.  29
    x 29
   ------------
      841

help.. need it badly..

ninjarider

no one will do you homework for you here. more than willing to point you in the direction you need to go.
start with converting the numbers to binary, and then converting number back to decimal.

Tedd

1. Create a program which asks you to enter a single 2-digit number - save the input.
2. Take the input (two decimal digits) and convert it into its value.
3. Extend the program to ask for two numbers - convert and save both inputs.
4. Take both values and use the MUL instruction to calculate the answer.
5. Print the result.

If you need help in any step you can ask here. But you must have a program for us to help with, we will not write it for you :P
No snowflake in an avalanche feels responsible.