
SAL SHIFT ARITHMETIC LEFT SHL SHIFT LOGICAL LEFT
Operation: | Flags Affected: |
(temp) | CF, OF, PF, SF, ZF. |
do while (temp) =1= 0 | AF undefined |
(CF) |
|
(EA) |
|
(temp) |
|
if COUNT = 1 then |
|
if |
|
then (OF) |
|
else (OF) |
|
else (OF) undefined |
|
Description: |
|
SHL/SAL destination, count |
|
SHL and SAL (Shift Logical Left and Shift Arithmetic Left) perform the same operation and are physically the same instruction. The destination byte or word is shifted left by the number of bits specified in the count operand. Zeros are shifted in on the right. If the sign bit retains its original value, then OF is cleared.