Re: Re: A82: Hmm


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

Re: Re: A82: Hmm




At 14:48 1997-12-16 -0700, you wrote:
>
> [snip]
>
>To do a multiply by 256, we use the same trick as the
>257 one but don't write to the same register.  This is
>a simplified version of the code I pasted:

To multiply/divide with a power of two you shift left/right!

To multiply with 256 you use:

mov eax, SOURCE
mov cl, 8
shl eax, cl


Regards,
                     -/- David Eriksson -/-

2 G o o D   P r o d u c t i o n s  ->  http://www.2goodsoft.com/


References: