STY (short for "STore Y") is the mnemonic for a machine language instruction which stores a copy of the byte held in the Y index register at the RAM or I/O address specified. The contents of the Y index register itself remains unchanged through the operation.
STY supports 3 addressing modes, as shown in the table at right. In the assembler formats listed, nn represents a single-byte (8-bit) figure, and nnnn is a two-byte (16-bit) address.
STY does not affect any of the CPU's status flags.