CPU > 命令セット > STA

STA (Store Accumulator to Memory)

[アキュームレータの内容をメモリにストア]

6502 のストア命令と同じ。 例外は、16 ビットインデックスレジスタを使う時で (x=0)、 16 ビット幅でデータをストアする。 下位 8 ビットが指定されたアドレスへ、 上位 8 ビットが指定されたアドレス + 1 に入る。 フラグ変化は起こらない。

コード一覧

アドレッシングモード 文法 オペコード バイト数 命令サイクル
Absolute STA addr 8D 3 4 1
Absolute Long STA long 8F 4 5 1
Direct Page STA dp 85 2 3 1,2
Direct Page Indirect STA (dp) 92 2 5 1,2
Direct Page Indirect Long STA [dp] 87 2 6 1,2
Absolute Indexed,X STA addr,X 9D 3 5 1
Absolute Long Indexed,X STA long,X 9F 4 5 1
Absolute Indexed,Y STA addr,Y 99 3 5 1
Direct Page Indexed,X STA dp,X 95 2 4 1,2
Direct Page Indexed Indirect,X STA (dp,X) 81 2 6 1,2
Direct Page Indirect Indexed,Y STA (dp),Y 91 2 6 1,2
Direct Page Indirect Long Indexed,Y STA [dp],Y 97 2 6 1,2
Stack Relative STA sr,S 83 2 4 1
Stack Relative Indirect Indexed,Y STA (sr,S),Y 93 2 7 1
1 : 16 ビットインデックスモードの時、 1 サイクル追加 (x=0)
2 : ダイレクトページレジスタの下位バイトが 0 でない時、 1 サイクル追加
最終更新:2017年02月20日 17:36