Re: Re: A82: Hmm


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

Re: Re: A82: Hmm




>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

But wouldn't you agree that this also multiplies by 256 (if less than 256)?:
mov eax,0
mov bl,source
mov ah,bl

-- Barubary


Follow-Ups: