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: