How can I multiply and divide a given base 10 input in assembly language
Favorites|Homepage
Subscriptions | sitemap
HOME > > How can I multiply and divide a given base 10 input in assembly language

How can I multiply and divide a given base 10 input in assembly language

[From: ] [author: ] [Date: 13-04-02] [Hit: ]
..from these two input...i need to divide and multiply them by using only these 16 bit registers.......
the required input is two base 10 numbers which is ranging from 000 to 999....
from these two input...
i need to divide and multiply them by using only these 16 bit registers....
ax,bx,cx,dx
i need your help so badly...
xDDD

-
Assembly language usually works with hexadecimal format (base 16) and hexadecimal is easy with 16 bit registers, which will electronically compute in binary. Binary is a whole lot easier to read in the hexadecimal format of assembly language than decimal is.

The key to solving your problem is the conversion of decimal (base 10) to assembly language (base 16) to load these into your registers which handle the numbers in binary (base 2).

I'm including a converter calculator link in the Sources.

===

Well, it looks like you added additional information I didn't see when I wrote my answer. I would suggest that you employ your register flags if you're attempting to do more than just simple multiplication or division. That will allow you to write routines dealing with dividends smaller than the divisor, multiplier overflows ("carrys"), negative number designations and such.
1
keywords: and,assembly,input,base,How,in,can,multiply,given,10,divide,language,How can I multiply and divide a given base 10 input in assembly language
New
Hot
© 2008-2010 http://www.science-mathematics.com . Program by zplan cms. Theme by wukong .