RosettaCodeData/Task/Logical-operations/6502-Assembly/logical-operations-6.6502

10 lines
222 B
Plaintext

LDA flags
LSR ;test the rightmost bit.
BCC .skip
LSR ;test the bit just to the left of the one we tested prior.
BCC .skip
;your code for what happens when both of the bottom 2 bits are 1, goes here.
.skip: