Code: Select all
LDY #$04
CPY #$04
BPL label
Now, a similar question with a two's complement twist:
Code: Select all
LDY #$84
CPY #$04
BPL label
Finally, a slightly related question on absolute indexed addressing:
Code: Select all
LDY #$80
LDA DATA, Y