The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: Al_Mo3tasm on November 25, 2005, 03:55:07 PM

Title: huge Numbers in 16 bit
Post by: Al_Mo3tasm on November 25, 2005, 03:55:07 PM
Iam very new in assemble and i will be very thankful  :(
if you help me in that matter  :'(
how i can deal with huge numbers in 16 bit processor
how i can Input number as 566565666 and mul it by 75656565878
and output it

-input it
-deal with ia as number
-output it as ascii

Please Please Please >>>>>>>>>>>>>>help   :(

thanks
Title: Re: huge Numbers in 16 bit
Post by: raymond on November 25, 2005, 06:36:59 PM
Have a look at this, then ask for clarifications if need be:

http://www.ray.masmcode.com/BCDtut.html

Raymond
Title: Re: huge Numbers in 16 bit
Post by: Al_Mo3tasm on November 26, 2005, 09:13:03 PM
Thank you very very much Raymond
and iam already strarting in your tutorial and i will return for you  :bg
but i want mention that i already have little knowing
abou bcd and i know that the byte can hold 2
digit but iam serch about method can save memory . some friends told me to store the big Value in array and deal with word after word
but that way give me wrong result and when i tray to convert it to ascii it give me wrong result too .because when i store value as
AAAA AAAA (Dec=2863311530) when i tray to convert it ascii
by divide the first word as they told me by A(dec=10)
the Processor deal with the value as AAAA(dec=43690) as you see it's Wrong way or i can't apply it correctly

and other say to me.........
"No easy answer.  It's called "multiple-precision arithmetic".  Look in
volume 2 of Donald Knuth's classic series of books on computing." :(

i wonder is this matter is very complex ? and how the old programs  deal with this problem
or maybe i unable to ask :red

any way my friend i will good study the tutorial maybe i have answers :boohoo: