Richard Munn wrote:
>
> Hello MORB
>
> On 04-Aug-00, you wrote:
>
> > Hi,
> >
> > for my current vmu project, I need to divide a 24 bits number by a 16
> > bits number (otherwise, it's too imprecise and gives crapy results), and
> > I wonder how to do this by using the DIV instruction (which divides a 16
> > bits number by a 8 bits number)...
> >
> > I figured easily how to do multiplications of 16 bits (or more) values,
> > because I remember how to do a multiplication by hand, but I can't
> > remember at all how division works :(
> >
> > If somebody could help...
>
> I have no idea if this will be of any help to you, but as you said you
> managed to program long multiplication since you remembered how to do it
> manually, then maybe it will be useful
Thanks. Anyway, one of my colleague have explained me the division in
the meantime :) In fact, despite you can easily split an addition or a
multiplication into several multiplications/additions, it's not so easy
with divisions... I will have to do it completely 'by hand', or find
wome workaround to have good looking results...
--
Antoine 'MORB' Chavasse / CdBS Software