Re: A82: fast multiply...


[Prev][Next][Index][Thread]

Re: A82: fast multiply...



Lars Ahlzen wrote:

> >   ;HL=L*E
> >    ld B, 8
> >   MULT:
> >    add HL, HL
> >    jr nc, NOADD
> >    add HL, DE
> >   NOADD:
> >    djnz MULT

One thing that was forgotten in this -- D must be loaded with zero at
the beginning, otherwise, it could get messed up.
    Sam

--
Sam Davies <sdavies@mail.trilogy.net>



References: