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
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.
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.