Table of Contents
Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->ASL
ASL Arithmetic Shift Left
Destination shifted by <count> -> Destination
C <- OPERAND <- 0
X <-
Assembler Syntax: | ASL.L Dx,Dy |
| ASL.L #<data>,Dy |
Dx contains shift count
Immediate shift data may be 1 - 8
Size: Long
Arithmetically shifts the bits of the operand left. The carry bit receives the last bit shifted out of the operand.
Condition Codes:
N Set if most significant bit of result is set, else cleared
Z Set if result zero, else cleared
V Always cleared
C Set according to last bit shifted out of operand, cleared for a shift count of zero
X Set according to last bit shifted out of operand, unaffected by a shift count of zero