Shift Memory or Accumulator Left (ASL)

Function
Shift the contents of the location specified by the operand left one bit. That is, bit one takes on the value originally found in bit zero, bit two takes the value originally in bit one, and so on; bit 7 is transferred into the carry flag; bit 0 is cleared. The arithmetic result of the operation is an unsigned multiplication by two.

Addressing Modes & Opcodes
Addressing Mode Syntax Opcode # of bytes # of cycles
Zero Page ASL ZZ 06 ZZ 2 6
Zero Page, X ASL ZZ, X 16 ZZ 2 6
Absolute ASL hhll 0E ll hh 3 7
Absolute, X ASL hhll, X 1E ll hh 3 7
Accumulator ASL A 0A 1 2
Flags Affected
N V T B D I Z C
N - 0 - - - Z C