If i have a binary value of 10000001 in cl and i execute the following command shl cl,2
(x86) will the carry flag be set to 1 or 0?
im a little confused since the last number to "fall off" was a 0 however we are losing data.
If i have a binary value of 10000001 in cl and i execute the following command shl cl,2
(x86) will the carry flag be set to 1 or 0?
im a little confused since the last number to "fall off" was a 0 however we are losing data.
The manual explicitly says:
At the end of the shift operation, the CF flag contains the last bit shifted out of the destination operand.
The other bits don't matter. They're just gone.