Re: A82: hl*16


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

Re: A82: hl*16




If there's an upper bound on the value l can have at that point in the
program that is <= 127 it is faster (but will cost you an extra byte) to
sll l. In the general case, 4 adds looks pretty tight. 

-Jeremy

On Tue, 30 Nov 1999, Doug Torrance wrote:

> 
> 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
> 
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 



Follow-Ups: References: