Re: A86: Re: simple math optimization


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

Re: A86: Re: simple math optimization




>> Well if you were doing hl = (16 * e) + d
>>  then you could do:
>>
>> ld h, e
>> ld l, d
>
>
>That would give you hl = 256*e + d.


Ooops your right. That is shifting 8-bits, not 4-bits. Hmm.. For some reason
in my head I was thinking of DE as an 8-bit register... Oh well

Later,
    Matt