division program in 8086 microprocessor

Discussion in 'Programmer's Corner' started by nazia briti, May 30, 2009.

  1. nazia briti

    Thread Starter New Member

    May 30, 2009
    1
    0
    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.
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
  3. Mark44

    Well-Known Member

    Nov 26, 2007
    626
    1
    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.
     
Loading...