A86: Re: simple math optimization
[Prev][Next][Index][Thread]
A86: Re: simple math optimization
>What's the fastest way to do
>
>hl = (16 * d) + e
Well if you were doing hl = (16 * e) + d
then you could do:
ld h, e
ld l, d
But if you have to do it that way I guess you can do:
sla d
sla d
sla d
sla d
ld l, e
This would seem logical. But then again, I could be wrong
Later,
Matt
>The code I have is chunky, and I need to optimize it. I'm still new at
this
>stuff, so I don't really know what I'm doing before I actually try it. =)
Follow-Ups: