Re: A83: Multiplying


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

Re: A83: Multiplying




On 23-Aug-98, Chris Hiszpanski wrote:

>Is there another method for multiplying rwo numbers together instead of
>using OP1 and OP2?

>From: Chris
>mecad@scv.net

If they're both 8 bits, you can put one in h and the other in l and then call
_htimesl. Result in hl, no overflow possible. If you're multiplying something
with a constant you might optimize a special routine to multiply by that
certain value. There's one in ROM that's called _HLTIMES9 I think.

Linus


References: