TXS TXS Transfer index X to stack pointer TXS
Operation: X -> S N V - B D I Z C
. . . . . . . .
+----------------+-----------------------+---------+---------+----------+
| Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles|
+----------------+-----------------------+---------+---------+----------+
| Implied | TXS | $9A | 1 | 2 |
+----------------+-----------------------+---------+---------+----------+
What it does: Transfers the byte in X Register into the Stack Pointer.
Major uses: Alters where, in the stack, the current "here's storage space" is pointed to. There are no common uses for this instruction.