The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: ronan_z999 on August 28, 2006, 09:03:00 PM

Title: HELP : how to create a multiplication program?ASAP, creating
Post by: ronan_z999 on August 28, 2006, 09:03:00 PM
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..
Title: Re: HELP : how to create a multiplication program?ASAP, creating
Post by: ninjarider on August 28, 2006, 09:27:46 PM
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.
Title: Re: HELP : how to create a multiplication program?ASAP, creating
Post by: Tedd on August 29, 2006, 12:01:23 PM
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