RosettaCodeData/Task/Bitwise-operations/6502-Assembly/bitwise-operations-7.6502

3 lines
91 B
Plaintext

LDA #$01
ROL ;if the carry was set prior to the ROL, A = 3. If the carry was clear, A = 2.