CPY $D3 + BNE (offset matches) Decision based on a fact whether CPU register is equal to zeropage variable. Trivial - not copyrightable.