i don't understand how the SHL instruction works. i read masm help but it`s still not clear for me.
Posted on 2005-07-07 07:00:05 by izy
Say eax = 1011 in binary

After shl eax,1

It becomes 10110 in binary. All you do is shift the bits left.
Posted on 2005-07-07 07:27:47 by roticv
If that didn't make sense to you either, add a few leading zeroes and all becomes clear.

0001011, shifted left by one bit, becomes:

Less obviously, shifting left by one bit, we just performed a *2 multiplication.
0001011 in binary is 11 in decimal.
0010110 in binary is 22 in decimal.

Have a nice day :)
Posted on 2005-07-07 08:15:33 by Homer
Thnx for the help :p
Posted on 2005-07-07 08:57:44 by izy
Try this download here:
Posted on 2005-08-10 07:09:31 by Immortal_One