LDA $61 + BEQ (offset matches) Jump depending whether zeropage variable is 0 or not. Trivial - not copyrightable.