Login
Plus/4 EncyclopediaFirstBackNextLast

ASL
Category
Reference/6502 Programming/Assembly

Topic
ASL (Arithmetic Shift Left)
ASL shifts all bits left one position. 0 is shifted into bit 0 and the original bit 7 is shifted into the Carry.

Affects flags: S Z C

Addressing mode Syntax Opcode Bytes Cycles
Accumulator ASL A $0A 1 2
Zero Page ASL $44 $06 2 5
Zero Page,X ASL $44,X $16 2 6
Absolute ASL $4400 $0E 3 6
Absolute,X ASL $4400,X $1E 3 7


Example
LDA #$43
ASL A at this point, A=$86 ($43 * 2).

See also
ROL



Copyright © Plus/4 World Team, 2001-2024