STA STA Store accumulator in memory STA Operation: A -> M N V - B D I Z C . . . . . . . . +----------------+-----------------------+---------+---------+----------+ | Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles| +----------------+-----------------------+---------+---------+----------+ | ZeroPage | STA $FF | $85 | 2 | 3 | | ZeroPage,X | STA $FF,X | $95 | 2 | 4 | | Absolute | STA $FFFF | $8D | 3 | 4 | | Absolute,X | STA $FFFF,X | $9D | 3 | 5 | | Absolute,Y | STA $FFFF,Y | $99 | 3 | 5 | | (Indirect,X) | STA ($FF,X) | $81 | 2 | 6 | | (Indirect),Y | STA ($FF),Y | $91 | 2 | 6 | +----------------+-----------------------+---------+---------+----------+ For penalty cycles on the 65816, check the desired addressing mode. 4510 Versions: +----------------+-----------------------+---------+---------+----------+ | Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles| +----------------+-----------------------+---------+---------+----------+ | (Indirect,X) | STA ($FF,X) | $81 | 2 | ? | | (Indirect,S),Y | STA ($FF,S),Y | $82 | 2 | ? | | ZeroPage | STA $FF | $85 | 2 | ? | | Absolute | STA $FFFF | $8D | 3 | ? | | (Indirect),Y | STA ($FF),Y | $91 | 2 | ? | | (Indirect),Z | STA ($FF),Z | $92 | 2 | ? | | [Indirect 32] | STA [$FF],Z | $EA $92 | 3 | 8ip | | ZeroPage,X | STA $FF,X | $95 | 2 | ? | | Absolute,Y | STA $FFFF,Y | $99 | 3 | ? | | Absolute,X | STA $FFFF,X | $9D | 3 | ? | +----------------+-----------------------+---------+---------+----------+ i Add 1 if clock speed is at 40 MHz p Add 1 if page boundary is crossed 65816 Extensions: +----------------+-----------------------+---------+---------+----------+ | Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles| +----------------+-----------------------+---------+---------+----------+ | AbsoluteLong | STA $FFFFFF | $8F | 4 | 5 | | AbsoluteLong,X | STA $FFFFFF,X | $9F | 4 | 5 | | (Indirect) | STA ($FF) | $92 | 2 | 5 | | [Indirect Long]| STA [$FF] | $87 | 2 | 6 | | [Ind.Long],Y | STA [$FF],Y | $97 | 2 | 6 | | Relative,S | STA $FF,S | $83 | 2 | 4 | | (Indirect,S),Y | STA ($FF,S),Y | $93 | 2 | 7 | +----------------+-----------------------+---------+---------+----------+