We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

STA: Difference between revisions

From SnesLab
Jump to: navigation, search
(linkify admode)
(no flags affected)
Line 101: Line 101:


'''STA''' (Store Accumulator) is a 65x instruction that stores the value of the [[accumulator]].  If the accumulator is 16 bits wide, its low byte is stored at the effective address and its high byte is stored at the effective address plus one.
'''STA''' (Store Accumulator) is a 65x instruction that stores the value of the [[accumulator]].  If the accumulator is 16 bits wide, its low byte is stored at the effective address and its high byte is stored at the effective address plus one.
No flags are affected.


===== Cycle Penalties =====
===== Cycle Penalties =====

Revision as of 23:04, 6 July 2024

Basic Info
Addressing Mode Opcode Length Speed
Absolute 8D 3 bytes 4 cycles*
Absolute Long 8F 4 bytes 5 cycles*
Direct Page 85 2 bytes 3 cycles*
Direct Page Indirect 92 2 bytes 5 cycles*
Direct Page Indirect Long 87 2 bytes 6 cycles*
Absolute Indexed by X 9D 3 bytes 4 cycles*
Absolute Long Indexed by X 9F 4 bytes 5 cycles*
Absolute Indexed by Y 99 3 bytes 4 cycles*
Direct Page Indexed by X 95 2 bytes 4 cycles*
Direct Page Indexed Indirect by X 81 2 bytes 6 cycles*
Direct Page Indirect Indexed by Y 91 2 bytes 5 cycles*
Direct Page Indirect Long Indexed by Y 97 2 bytes 6 cycles*
Stack Relative 83 2 bytes 4 cycles*
Stack Relative Indirect Indexed by Y 93 2 bytes 7 cycles*
Flags Affected
N V M X D I Z C
. . . . . . . .

STA (Store Accumulator) is a 65x instruction that stores the value of the accumulator. If the accumulator is 16 bits wide, its low byte is stored at the effective address and its high byte is stored at the effective address plus one.

No flags are affected.

Cycle Penalties

See Also

External Links