•Shift to the left:
•11111111 ->
11111110 ; shift by 1
•11111110 ->
11110000 ; shift by 3
•shl
mem/reg, imm/reg
•shl eax, 1
•shl byte ptr [eax], ecx
•Shift to the right:
•11111111 ->
01111111 ; shift by 1
•01111111 ->
00001111 ; shift by 3
•shr mem/reg, imm/reg
•shr eax, 1
•shr byte ptr [eax], ecx
•
•