Ex6502.CPU.Executor.ASL (ex6502 v0.1.0) View Source
Shift the accumlator or address 1 bit left
Bit 0 is always 0 and bit 7 pre-shift enters the carry flag.
Operation
C <- M7...M0 <- 0
Table
ASL Shift Left One Bit (Memory or Accumulator)
C <- [76543210] <- 0 N Z C I D V
+ + + - - -addressing assembler opc bytes cyles
accumulator ASL A 0A 1 2 zeropage ASL oper 06 2 5 zeropage,X ASL oper,X 16 2 6 absolute ASL oper 0E 3 6 absolute,X ASL oper,X 1E 3 7
Flags
- Carry: 1 if bit 7 was 1; 0 if bit 7 was 0
- Zero: 1 if accumulator is zero; 0 otherwise
- Negative: 1 if bit 7 of accumulator is set; 0 otherwise