TXA / PHA / LDA $D0 / BRANCH somewhere Save X register before loading A and branching somewhere. Nothing copyrightable here.