Re: A86: 8-bit multiply routine


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

Re: A86: 8-bit multiply routine




its only faster if b is a very small number, i.e. < 20 or so

Tercero wrote:
> 
> I'm going add a little more redundancy.
> 
> Here's a routine that I made that's not 8x8 but it might be faster
> than both of the routines earlier mentioned. (I didn't check)
> 
> ;       syntax:  de * b -> hl
> Small_Mult:
>         ld hl, 0                ;10
> Multloop:
>         add hl, de              ;11
>         djnz Multloop           ;13/8
>         ret                     ;10
> 
> Tercero
> 
> Joshua Grams wrote:
> >
> > Sorry about the redundant multiply routine. I didn't see Dan's message.
> > Mine is the same as his, except he unrolled the loop and takes A and L as
> > inputs instead of H and L.
> >
> > --Joshua

-- 

=====================================
=                                   =
=   Kirk Meyer (mailto:_@ibm.net)   =
= http://www.bigfoot.com/~kirkmeyer =
=                                   =
=   "Set your affection on things   =
=    above, not on things on the    =
=      earth."  Colossians 3:2      =
=                                   =
=====================================


References: