lda pointer ;a zero-page address that holds the low byte of a pointer variable.
CMP #$FF
BNE .continue
lda pointer+1
RTS ;return without doing anything
.continue