SAL
Operands:
memory, immediate
REG, immediate
memory, CL
REG, CL
Shift Arithmetic operand1 Left. The number of shifts is set by operand2.
Algorithm:
Shift all bits left, the bit that goes off is set to CF.
Zero bit is inserted to the right-most position.
Example:
MOV AL, 0E0h ; AL = 11100000b
SAL AL, 1 ; AL = 11000000b, CF=1.
RET
Flags:
C O
r r
OF=0 if first operand keeps original sign.