News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

huge Numbers in 16 bit

Started by Al_Mo3tasm, November 25, 2005, 03:55:07 PM

Previous topic - Next topic

Al_Mo3tasm

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

raymond

Have a look at this, then ask for clarifications if need be:

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

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

Al_Mo3tasm

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: