ROM Computer Magazine Archive ROM MAGAZINE ISSUE 4 — FEBRUARY/MARCH 1984 / PAGE 36

6502 COMMAND CODE CHART
By GEOFF CORRY


0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F


0

BRK
1(,)
0

ORA
2(A)
1




ORA
2(E)
5

ASL
2(F)
6


PHP
1(H)
8

ORA
2(I)
9

ASL
1(J)
10



ORA
3(M)
13

ASL
3(N)
14



1

BLP
2(P)
16

ORA
2(Q)
17




ORA
2(U)
21

ASL
2(V)
22


CLC
1(X)
24

ORA
3(Y)
25




ORA
3(=)
29

ASL
3(+)
30



2

JSR
3 SB
32

AND
2 !
33



BIT
2 $
36

AND
2 %
37

ROL
2 &
38


PLP
1 (
40

AND
2 )
41

ROL
1 *
42


BIT
3 ,
44

AND
3 -
45

ROL
3 .
46



3

BMI
1 0
48

AND
2 1
49




AND
2 5
53

ROL
2 6
54


SEC
1 8
56

AND
3 9
57




AND
3 =
61




4

RTI
1 @
64

EOR
2 A
65




EOR
2 E
69

LSR
2 F
70


PHA
1 H
72

EOR
2 I
73

LSR
1 J
74


JMP
3 L
76

EOR
3 M
77

LSR
3 N
78



5

BVC
2 P
80

EOR
2 Q
81




EOR
2 U
85

LSR
2 V
86


CLI
1 X
88

EOR
3 Y
89




EOR
3 ]
93

LSR
3 ^
94



6

RTS
1(.)
96

ADC
2 a
97




ADC
2 @
101

ROR
2 f
102


PLA
1 h
104

ADC
2 i
105

ROR
2 j
106


JMP
3 l
108

ADC
3 m
109

ROR
3 n
110



7

BVS
2 p
112

ADC
2 cq
113




ADC
2 u
117

ROR
2 v
110


SEI
1 x
120

ADC
3 y
121




ADC
3(<)
125

ROR
Note3
126



8


STA
2(A)
129




STY
2(D)
132

STA
2(E)
133

STX
2(F)
134


DEY
1(H)
136


TXA
1(J)
138


STY
3(L)
140

STA
3(M)
141

STX
3(N)
142



9

BCC
2(P)
144

STA
2(Q)
145



STY
2(T)
148

STA
2(U)
149

STX
2(V)
150


TYA
1(X)
152

STA
3(Y)
153

TXS
1(Z)
154



STA
Note4
157




A

LDY
2 SB
160

LDA
2 !
161

LDX
2 "
162


LDY
2 $
164

LDA
2 %
165

LDX
2 &
166


TAY
1 (
168

LDA
2 %
169

TAX
1 *
170


LDY
3 ,
172

LDA
3 -
173

LDX
3 .
174



B

BCS
1 0
176

LDA
2 1
177



LDY
2 4
180

LDA
2 5
181

LDX
2 6
182


CLV
1 8
184

LDA
3 9
185

TSX
1 :
186


LDY
3 <
188

LDA
3 =
189

LDX
3 >
190



C

CPY
2 @
192

CMP
2 A
193



CPY
2 D
196

CMP
2 E
197

DEC
2 F
198


INY
1 H
200

CMP
2 I
201

DEX
1 J
202


CPY
2 L
204

CMP
3 M
205

DEC
3 N
206



D

BNE
2 P
208

CMP
2 Q
209




CMP
2 U
213

DEC
2 V
214


CLD
1 X
216

CMP
3 Y
217




CMP
3 ]
221

DEC
3 ^
222



E

CPX
2(,)
224

SBC
2 a
225



CPX
2 d
228

SBC
2 e
229

INC
2 f
230


INX
1 h
232

SBC
2 i
233

NOP
1 j
234


CPX
3 l
236

SBC
3 m
237

INC
3 n
238



F

BEQ
1 p
240

SBC
2 q
241




SBC
2 u
245

INC
2 v
246


SED
1 x
248

SBC
3 y
249




SBC
Note5
253

INC
Note5
254



NOTES:-

1. The first number under the command code indicates the number of bytes associated with the assembler command.

2. The next symbol under the command code is the ATASCII code for that command. Those with brackets indicate the CTRL fnctn. i.e:- (P) means CTRL(P). Those with underlines indicate inverse video. i.e. D indicates inverse video D.

3. The character used for command code ROR, absolute X mode and size 3 bytes at location 7E(dec. 126) is ESC(bksp).

4. The character used for code STA, absolute 8 Node and size 3 bytes, at hex location 9D(dec. 157) is ESC<insert).

5. The characters required for command codes SBC and INC, both absolute R modes and size 3 bytes at hex locations FD and FE are ESC(ctrl 2) and ESC(ctrl bksp) respectively.

6. The character at location 2  0 is the (space bar). At A  0, the character required for LDY is the inverse(space bar).