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
(added group 1 category)
(added basic info)
Line 1: Line 1:
'''STA''' (Store Accumulator) is a 65x instruction that stores the value of the [[accumulator]].
'''STA''' (Store Accumulator) is a 65x instruction that stores the value of the [[accumulator]].
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="8"|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
|}


{| class="wikitable" style="float:right;clear:right;width:30%"
{| class="wikitable" style="float:right;clear:right;width:30%"

Revision as of 19:00, 2 May 2023

STA (Store Accumulator) is a 65x instruction that stores the value of the accumulator.

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 Clobbered
N V M X D I Z C
. . . . . . . .

See Also