division program in 8086 microprocessor

Thread Starter

nazia briti

Joined May 30, 2009
1
could anyone plz tell me that i have a homework from my teacher which is a program in assembly language of 8086 microprocessor, a division of 48bit number of hexadecimal by 16bit hex .plz help me if u can.itz urgent.
 

Mark44

Joined Nov 26, 2007
628
My guess is that this isn't floating point division, but integer division, with the dividend being 48 bits and the divisor being 16 bits.

Before attempting to code this in 8086 assembly, make sure you understand the algorithm you are trying to implement in code. Take a piece of paper and do a few division problems, such as 123400000000 divided by 1234 (these are both hex numbers).

You can use the integer division ops, which take up to 32 bit dividends and 16 bit divisors. You'll need to do the division at least a couple of times, because your dividend is 48 bits, so you'll need to save the quotient and the remainder.

When you get your algorithm coded, post it and we'll take a look and give some guidance.
 
Top