CMP #$0D / BNE / JMP somewhere Jump to a routine based on whether A has a given value. Nothing creative or copyrightable here.