Stores the index register Y into memory.
On all processors, the data written to memory is 8-bit. However, for 16-bit processors with the m flag is clear then the data written is 16-bit with the low-order 8-bits at the effective address and the high-order 8-bits at the effective address plus one.
|Syntax||Opcode||Available on:||# of||# of||Addressing Mode|
|STY dp||84||x||x||x||2||31, 2||Direct Page|
|STY dp,X||94||x||x||x||2||41, 2||Direct Page Indexed X|
- 65816: Add 1 cycle if m=0 (16-bit memory/accumulator)
- 65816: Add 1 cycle if low byte of Direct Page register is not 0