Re: A82: hl*16
[Next][Index][Thread]
Re: A82: hl*16
repeated addition is 4 bytes, 44 total clock cycles (11 each !)
ld h, l \ ld l, 0 is 3 bytes, 11 total clock cycles (4 and 7)
you could also shift it 4 times, but I think addition is actually better than
that
~Adamman
In a message dated 11/30/99 1:03:47 PM Eastern Standard Time,
profzoom@hotmail.com writes:
> Is there a better way to multiply hl times 16 than adding it to itself 4
> times?
>
> add hl,hl
> add hl,hl
> add hl,hl
> add hl,hl
>
> Thanks!
> Doug
Follow-Ups: