Let's say I have a number in binary. 1010 which is 10 in decimal.
I understand that shifting left by 1 bit is essentially multiplying the number by 2.
Theres a line in a textbook that's got me confused.
salq %cl, %rdx
%rdx
is a number and %salq
is a left shift. What I'm confused about is the %cl
.
I've read that CL is 8 bits, does that mean I'm multiplying by 2^8?