Debian Codegraph @

docs/sources/ChannelF.tex

raw
1 \label{changelog20200901_nop3}
2
3 \chapter{6502}
4
5 Special-case information, and tips and tricks for the processors supported by \dasm are described here.
6
7 \label{changelog:20200904illegal}
8 \section{Illegal Opcodes}
9
10 The effects of the ``unused'' opcodes on the 6502 are by now relatively well documented. These are variously described as illegal, undocumented, invalid, and unspecified. Modern programs use some of these, as they provide additional capabilities (particularly speed improvements) over the use of the standard opcodes. \dasm explicitly supports some of the commonly used `stable' illegal opcodes.
11
12 \url{http://www.oxyron.de/html/opcodes02.html} was used as a reference for most of the data shown in the following tables. They have been cross-referenced with the \dasm source code to determine what instructions and opcodes are supported.
13
14 \iffalse
15 \subsection{\texttt{ANC}}
16 \begin{usage}
17 ANC
18 \end{usage}
19
20 \begin{table}[H]
21 \begin{tabular}{lr}
22
23 \begin{tabular}{llc}
24
25 \mono{\$0B}&\texttt{ANC }\emph{\#imm}&\mono{A:=A \& \#\{imm\}}\\
26
27 \end{tabular}&
28
29 \tabcolsep=0.1cm
30 \begin{tabular}{|cccccccc|}
31 \hline
32 \scriptsize\mono{N}&
33 \scriptsize\mono{V}&
34 \scriptsize\mono{B}&
35 \scriptsize\mono{D}&
36 \scriptsize\mono{I}&
37 \scriptsize\mono{Z}&
38 \scriptsize\mono{C}&
39 \scriptsize\mono{?}\\
40 \hline
41 \mono{1}&
42 \mono{*}&
43 \mono{*}&
44 \mono{*}&
45 \mono{*}&
46 \mono{*}&
47 \mono{*}&
48 \mono{*}\\
49 \hline
50
51 \end{tabular}
52 \end{tabular}
53 \end{table}
54
55
56 \begin{code}
57 ANC \$0B A:=A\&#\{imm\} * * *
58 ANC \$2B A:=A\&#\{imm\} * * *
59 llegal opcodes:
60 Opcode imp imm zp zpx zpy izx izy abs abx aby ind rel Function N V B D I Z C
61 SLO \$07 \$17 \$03 \$13 \$0F \$1F \$1B \{adr\}:=\{adr\}*2 A:=A or \{adr\} * * *
62 RLA \$27 \$37 \$23 \$33 \$2F \$3F \$3B \{adr\}:=\{adr\}rol A:=A and \{adr\} * * *
63 SRE \$47 \$57 \$43 \$53 \$4F \$5F \$5B \{adr\}:=\{adr\}/2 A:=A exor \{adr\} * * *
64 RRA \$67 \$77 \$63 \$73 \$6F \$7F \$7B \{adr\}:=\{adr\}ror A:=A adc \{adr\} * * * *
65 SAX \$87 \$97 \$83 \$8F \{adr\}:=A\&X
66 LAX \$A7 \$B7 \$A3 \$B3 \$AF \$BF A,X:=\{adr\} * *
67 DCP \$C7 \$D7 \$C3 \$D3 \$CF \$DF \$DB \{adr\}:=\{adr\}-1 A-\{adr\} * * *
68 ISC \$E7 \$F7 \$E3 \$F3 \$EF \$FF \$FB \{adr\}:=\{adr\}+1 A:=A-\{adr\} * * * *
69 ALR \$4B A:=(A\&#\{imm\})/2 * * *
70 ARR \$6B A:=(A\&#\{imm\})/2 * * * *
71 XAA(2) \$8B A:=X\&#\{imm\} * *
72 LAX(2) \$AB A,X:=#\{imm\} * *
73 AXS \$CB X:=A\&X-#\{imm\} * * *
74 SBC \$EB A:=A-\#\{imm\} * * * *
75 AHX(1) \$93 \$9F \{adr\}:=A\&X\&H
76 SHY(1) \$9C \{adr\}:=Y\&H
77 SHX(1) \$9E \{adr\}:=X\&H
78 TAS(1) \$9B S:=A\&X \{adr\}:=S\&H
79 LAS \$BB A,X,S:=\{adr\}\&S * *
80
81
82 (1) = unstable in certain matters
83 (2) = highly unstable (results are not predictable on some machines)
84 A = Accumulator
85 X = X-Register
86 Y = Y-Register
87 S = Stack-Pointer
88 P = Status-Register
89 +(S) = Stack-Pointer relative with pre-increment
90 (S)- = Stack-Pointer relative with post-decrement
91
92
93 Combinations of two operations with the same addressing mode:
94
95 SLO {adr} = ASL {adr} + ORA {adr}
96 RLA {adr} = ROL {adr} + AND {adr}
97 SRE {adr} = LSR {adr} + EOR {adr}
98 RRA {adr} = ROR {adr} + ADC {adr}
99 SAX {adr} = store A\&X into {adr}
100 LAX {adr} = LDA {adr} + LDX {adr}
101 DCP {adr} = DEC {adr} + CMP {adr}
102 ISC {adr} = INC {adr} + SBC {adr}
103
104 note to SAX: the A&X operation is a result of A and X put onto the bus at the same time.
105
106
107 Combinations of an immediate and an implied command:
108
109 ANC \#{imm} = AND \#{imm} + (ASL)
110 ANC \#{imm} = AND \#{imm} + (ROL)
111 ALR \#{imm} = AND \#{imm} + LSR
112 ARR \#{imm} = AND \#{imm} + ROR
113 XAA \#{imm} = TXA + AND \#{imm}
114 LAX \#{imm} = LDA \#{imm} + TAX
115 AXS \#{imm} = A\&X minus #{imm} into X
116 SBC \#{imm} = SBC \#{imm} + NOP
117
118 note to ANC: this command performs an AND operation only, but bit 7 is put into the carry, as if the ASL/ROL would have been executed.
119 note to ARR: part of this command are some ADC mechanisms. following effects appear after AND but before ROR: the V-Flag is set according to (A and \#{imm})+\#{imm}, bit 0 does NOT go into carry, but bit 7 is exchanged with the carry.
120 note to XAA: DO NOT USE!!! Highly unstable!!!
121 note to LAX: DO NOT USE!!! On my C128, this opcode is stable, but on my C64-II it loses bits so that the operation looks like this: ORA \#? AND \#{imm} TAX.
122 note to AXS: performs CMP and DEX at the same time, so that the MINUS sets the flag like CMP, not SBC.
123
124
125 Combinations of STA/STX/STY:
126
127 AHX {adr} = stores A\&X\&H into {adr}
128 SHX {adr} = stores X\&H into {adr}
129 SHY {adr} = stores Y\&H into {adr}
130
131 note: sometimes the \&H drops off. Also page boundary crossing will not work as expected (the bank where the value is stored may be equal to the value stored).
132
133
134 Combinations of STA/TXS and LDA/TSX:
135
136 TAS {adr} = stores A\&X into S and A\&X\&H into {adr}
137 LAS {adr} = stores {adr}\&S into A, X and S
138
139 note to LAS: is called as "propably unreliable" in one source.
140
141
142 Bit configuration does not allow any operation on these ones:
143
144 NOP = has no effects
145 NOP #{imm} = fetches #{imm} but has no effects
146 NOP {adr} = fetches {adr} but has no effects
147
148
149 KIL = halts the CPU. the data bus will be set to \#\$FF
150
151
152 Aliases used in other illegal opcode sources:
153
154 SLO = ASO
155 SRE = LSE
156 ISC = ISB
157 ALR = ASR
158 SHX = A11 (A11 was a result of only having tested this one on adress \$1000)
159 SHY = A11
160 LAS = LAR
161 KIL = JAM, HLT
162
163 \end{code}
164 \fi
165
166 \subsection{Abbreviations and Colours used in Tables}
167 \subsubsection{Addressing Modes}
168
169 \begin{table}[H]
170 \begin{tabularx}{\linewidth}{cll}
171 \toprule
172 Abbreviation&Mode&Example\\
173 \hline
174 \\
175 \emph{abs}&Absolute&\mono{LDA \$F000}\\
176 \emph{abx}&Absolute indexed by X&\mono{LDA \$F000,x}\\
177 \emph{aby}&Absolute indexed by Y&\mono{LDA \$F000,y}\\
178 \emph{idx}&Indexed indirect X&\mono{LDA (\$23,x)}\\
179 \emph{idy}&Indirect Y&\mono{LDA (\$23),y}\\
180 \emph{imm}&Immediate&\mono{LDA \#1}\\
181 \emph{imp}&Implied. Operates on register or flag&\mono{LSR}\\
182 \emph{ind}&Indirect absolute&\mono{JMP (\$F000)}\\
183 \emph{rel}&Relative to PC&\mono{BCS addr}\\
184 \emph{zp}&Zero-page&\mono{LDA 1}\\
185 \emph{zpx}&Zero-page indexed by X&\mono{LDA \$23,x}\\
186 \emph{zpy}&Zero-page indexed by Y&\mono{LAX 0,y}\\
187 \\
188 \bottomrule
189 \end{tabularx}
190 \end{table}
191
192
193 \iffalse
194 #define ASTD AF_BYTEADR|AF_BYTEADRX|AF_WORDADR|AF_WORDADRX|\
195 AF_WORDADRY|AF_INDBYTEX|AF_INDBYTEY
196 \fi
197
198 \subsection{Mnemonics, and Opcodes for Addressing Modes}
199
200 \subsubsection{Opcode Colour Key}
201
202 \begin{table}[H]
203 \begin{tabular}{ll}
204 \cellcolor{illegal}&Stable. Supported by \dasm.\\
205 \cellcolor{missing}&Stable. Not supported.\\
206 \cellcolor{unstablecertain}&Unstable in some situations. Not supported.\\
207 \cellcolor{unimplemented}&Highly unstable. Not supported.\\
208 \end{tabular}
209 \end{table}
210
211 \begin{table}[H]
212 %\def\arraystretch{0.98}
213 \begin{tabularx}{\linewidth}{c|cccccccccccc}
214 %\toprule
215 % \multicolumn{1}{c}{} &
216
217 \mono{}&
218 \emph{imp}&
219 \emph{imm}&
220 \emph{zp}&
221 \emph{zpx}&
222 \emph{abs}&
223 \emph{abx}&
224 \emph{aby}&
225 \emph{idx}&
226 \emph{idy}&
227 \emph{zpy}&
228 \emph{rel}&
229 \emph{ind}\\
230 \hline
231
232 \mono{ADC}&
233 \mono{\color{ghost}\xmark}& % implied
234 \mono{\$69}&
235 \mono{\$65}&
236 \mono{\$75}&
237 \mono{\$6D}&
238 \mono{\$7D}&
239 \mono{\$79}&
240 \mono{\$61}&
241 \mono{\$71}&
242 \mono{\color{ghost}\xmark}& %zp,y
243 \mono{\color{ghost}\xmark} & %rel
244 \mono{\color{ghost}\xmark} %(abs)
245 \\
246
247 \cellcolor{unstablecertain}\mono{AHX}&
248 \mono{\color{ghost}\xmark}& %iMP
249 \mono{\color{ghost}\xmark}& %#
250 \mono{\color{ghost}\xmark}& %zp
251 \mono{\color{ghost}\xmark}& %zp,x
252 \mono{\color{ghost}\xmark}& %abs
253 \mono{\color{ghost}\xmark}& %abs,x
254 \mono{\color{ghost}\xmark}& %abs,y
255 \mono{\color{ghost}\xmark}& %(zp,x)
256 \cellcolor{unstablecertain}\mono{\$93}& %(zp),y
257 \mono{\color{ghost}\xmark}& %zp,y
258 \mono{\color{ghost}\xmark}& %rel
259 \mono{\color{ghost}\xmark} %(abs)
260 \\
261
262
263 \mono{ANC}&
264 \mono{\color{ghost}\xmark}& % implied
265 \cellcolor{illegal}\mono{\$0B}& % immediate
266 \mono{\color{ghost}\xmark}& %zp
267 \mono{\color{ghost}\xmark}& %zp,x
268 \mono{\color{ghost}\xmark}& %abs
269 \mono{\color{ghost}\xmark}& %abs,x
270 \mono{\color{ghost}\xmark}& %abs,y
271 \mono{\color{ghost}\xmark}& %(zp,x)
272 \mono{\color{ghost}\xmark}& %(zp),y
273 \mono{\color{ghost}\xmark}& %zp,y
274 \mono{\color{ghost}\xmark} & %rel
275 \mono{\color{ghost}\xmark} %(abs)
276 \\
277 \mono{}& %ANC#2
278 \mono{}& % implied
279 \cellcolor{missing}\mono{\$2B}& % immediate
280 \mono{}& %zp
281 \mono{}& %zp,x
282 \mono{}& %abs
283 \mono{}& %abs,x
284 \mono{}& %abs,y
285 \mono{}& %(zp,x)
286 \mono{}& %(zp),y
287 \mono{}& %zp,y
288 \mono{} & %rel
289 \mono{} %(abs)
290 \\
291
292 \mono{AND}&
293 \mono{\color{ghost}\xmark}& % implied
294 \mono{\$29}& % immediate
295 \mono{\$25}& %zp
296 \mono{\$35}& %zp,x
297 \mono{\$2D}& %abs
298 \mono{\$3D}& %abs,x
299 \mono{\$39}& %abs,y
300 \mono{\$21}& %(zp,x)
301 \mono{\$31}& %(zp),y
302 \mono{\color{ghost}\xmark}& %zp,y
303 \mono{\color{ghost}\xmark} & %rel
304 \mono{\color{ghost}\xmark} %(abs)
305 \\
306
307 \mono{ANE}&
308 \mono{\color{ghost}\xmark}& %iMP
309 \cellcolor{illegal}\mono{\$8B}&
310 \mono{\color{ghost}\xmark}& %zp
311 \mono{\color{ghost}\xmark}& %zp,x
312 \mono{\color{ghost}\xmark}& %abs
313 \mono{\color{ghost}\xmark}& %abs,x
314 \mono{\color{ghost}\xmark}& %abs,y
315 \mono{\color{ghost}\xmark}& %(zp,x)
316 \mono{\color{ghost}\xmark}& %(zp),y
317 \mono{\color{ghost}\xmark}& %zp,y
318 \mono{\color{ghost}\xmark} & %rel
319 \mono{\color{ghost}\xmark} %(abs)
320 \\
321
322 \mono{ARR}&
323 \mono{\color{ghost}\xmark}& %iMP
324 \cellcolor{illegal}\mono{\$6B}&
325 \mono{\color{ghost}\xmark}& %zp
326 \mono{\color{ghost}\xmark}& %zp,x
327 \mono{\color{ghost}\xmark}& %abs
328 \mono{\color{ghost}\xmark}& %abs,x
329 \mono{\color{ghost}\xmark}& %abs,y
330 \mono{\color{ghost}\xmark}& %(zp,x)
331 \mono{\color{ghost}\xmark}& %(zp),y
332 \mono{\color{ghost}\xmark}& %zp,y
333 \mono{\color{ghost}\xmark} & %rel
334 \mono{\color{ghost}\xmark} %(abs)
335 \\
336
337 \mono{ASL}&
338 \mono{\$0A}&
339 \mono{\color{ghost}\xmark}& % immediate
340 \mono{\$06}&
341 \mono{\$16}&
342 \mono{\$0E}&
343 \mono{\$1E}&
344 \mono{\color{ghost}\xmark}& %abs,y
345 \mono{\color{ghost}\xmark}& %(zp,x)
346 \mono{\color{ghost}\xmark}& %(zp),y
347 \mono{\color{ghost}\xmark}& %zp,y
348 \mono{\color{ghost}\xmark} & %rel
349 \mono{\color{ghost}\xmark} %(abs)
350 \\
351
352 \mono{ASR}&
353 \mono{\color{ghost}\xmark}& %iMP
354 \cellcolor{illegal}\mono{\$4B}&
355 \mono{\color{ghost}\xmark}& %zp
356 \mono{\color{ghost}\xmark}& %zp,x
357 \mono{\color{ghost}\xmark}& %abs
358 \mono{\color{ghost}\xmark}& %abs,x
359 \mono{\color{ghost}\xmark}& %abs,y
360 \mono{\color{ghost}\xmark}& %(zp,x)
361 \mono{\color{ghost}\xmark}& %(zp),y
362 \mono{\color{ghost}\xmark}& %zp,y
363 \mono{\color{ghost}\xmark} & %rel
364 \mono{\color{ghost}\xmark} %(abs)
365 \\
366
367 \cellcolor{missing}\mono{AXS}&
368 \mono{\color{ghost}\xmark}& %iMP
369 \cellcolor{missing}\mono{\$CB}& %imm
370 \mono{\color{ghost}\xmark}& %zp
371 \mono{\color{ghost}\xmark}& %zp,x
372 \mono{\color{ghost}\xmark}& %abs
373 \mono{\color{ghost}\xmark}& %abs,x
374 \mono{\color{ghost}\xmark}& %abs,y
375 \mono{\color{ghost}\xmark}& %(zp,x)
376 \mono{\color{ghost}\xmark}& %(zp),y
377 \mono{\color{ghost}\xmark}& %zp,y
378 \mono{\color{ghost}\xmark} & %rel
379 \mono{\color{ghost}\xmark} %(abs)
380 \\
381
382
383 \mono{BCC}&
384 \mono{\color{ghost}\xmark}& %iMP
385 \mono{\color{ghost}\xmark}&
386 \mono{\color{ghost}\xmark}& %zp
387 \mono{\color{ghost}\xmark}& %zp,x
388 \mono{\color{ghost}\xmark}& %abs
389 \mono{\color{ghost}\xmark}& %abs,x
390 \mono{\color{ghost}\xmark}& %abs,y
391 \mono{\color{ghost}\xmark}& %(zp,x)
392 \mono{\color{ghost}\xmark}& %(zp),y
393 \mono{\color{ghost}\xmark}& %zp,y
394 \mono{\$90}& %rel
395 \mono{\color{ghost}\xmark} %(abs)
396 \\
397
398 \mono{BCS}&
399 \mono{\color{ghost}\xmark}& %iMP
400 \mono{\color{ghost}\xmark}&
401 \mono{\color{ghost}\xmark}& %zp
402 \mono{\color{ghost}\xmark}& %zp,x
403 \mono{\color{ghost}\xmark}& %abs
404 \mono{\color{ghost}\xmark}& %abs,x
405 \mono{\color{ghost}\xmark}& %abs,y
406 \mono{\color{ghost}\xmark}& %(zp,x)
407 \mono{\color{ghost}\xmark}& %(zp),y
408 \mono{\color{ghost}\xmark}& %zp,y
409 \mono{\$B0}& %rel
410 \mono{\color{ghost}\xmark} %(abs)
411 \\
412
413
414 \mono{BEQ}&
415 \mono{\color{ghost}\xmark}& %iMP
416 \mono{\color{ghost}\xmark}&
417 \mono{\color{ghost}\xmark}& %zp
418 \mono{\color{ghost}\xmark}& %zp,x
419 \mono{\color{ghost}\xmark}& %abs
420 \mono{\color{ghost}\xmark}& %abs,x
421 \mono{\color{ghost}\xmark}& %abs,y
422 \mono{\color{ghost}\xmark}& %(zp,x)
423 \mono{\color{ghost}\xmark}& %(zp),y
424 \mono{\color{ghost}\xmark}& %zp,y
425 \mono{\$F0}& %rel
426 \mono{\color{ghost}\xmark} %(abs)
427 \\
428
429 \mono{BIT}&
430 \mono{\color{ghost}\xmark}& %iMP
431 \mono{\color{ghost}\xmark}&
432 \mono{\$24}& %zp
433 \mono{\color{ghost}\xmark}& %zp,x
434 \mono{\$2C}& %abs
435 \mono{\color{ghost}\xmark}& %abs,x
436 \mono{\color{ghost}\xmark}& %abs,y
437 \mono{\color{ghost}\xmark}& %(zp,x)
438 \mono{\color{ghost}\xmark}& %(zp),y
439 \mono{\color{ghost}\xmark}& %zp,y
440 \mono{\color{ghost}\xmark} & %rel
441 \mono{\color{ghost}\xmark} %(abs)
442 \\
443
444 \mono{BMI}&
445 \mono{\color{ghost}\xmark}& %iMP
446 \mono{\color{ghost}\xmark}&
447 \mono{\color{ghost}\xmark}& %zp
448 \mono{\color{ghost}\xmark}& %zp,x
449 \mono{\color{ghost}\xmark}& %abs
450 \mono{\color{ghost}\xmark}& %abs,x
451 \mono{\color{ghost}\xmark}& %abs,y
452 \mono{\color{ghost}\xmark}& %(zp,x)
453 \mono{\color{ghost}\xmark}& %(zp),y
454 \mono{\color{ghost}\xmark}& %zp,y
455 \mono{\$30}& %rel
456 \mono{\color{ghost}\xmark} %(abs)
457 \\
458
459 \mono{BNE}&
460 \mono{\color{ghost}\xmark}& %iMP
461 \mono{\color{ghost}\xmark}&
462 \mono{\color{ghost}\xmark}& %zp
463 \mono{\color{ghost}\xmark}& %zp,x
464 \mono{\color{ghost}\xmark}& %abs
465 \mono{\color{ghost}\xmark}& %abs,x
466 \mono{\color{ghost}\xmark}& %abs,y
467 \mono{\color{ghost}\xmark}& %(zp,x)
468 \mono{\color{ghost}\xmark}& %(zp),y
469 \mono{\color{ghost}\xmark}& %zp,y
470 \mono{\$D0}& %rel
471 \mono{\color{ghost}\xmark} %(abs)
472 \\
473
474
475 \mono{BPL}&
476 \mono{\color{ghost}\xmark}& %iMP
477 \mono{\color{ghost}\xmark}&
478 \mono{\color{ghost}\xmark}& %zp
479 \mono{\color{ghost}\xmark}& %zp,x
480 \mono{\color{ghost}\xmark}& %abs
481 \mono{\color{ghost}\xmark}& %abs,x
482 \mono{\color{ghost}\xmark}& %abs,y
483 \mono{\color{ghost}\xmark}& %(zp,x)
484 \mono{\color{ghost}\xmark}& %(zp),y
485 \mono{\color{ghost}\xmark}& %zp,y
486 \mono{\$10} & %rel
487 \mono{\color{ghost}\xmark} %(abs)
488 \\
489
490 \mono{BRK}&
491 \mono{\$00}& %iMP
492 \mono{\color{ghost}\xmark}&
493 \mono{\color{ghost}\xmark}& %zp
494 \mono{\color{ghost}\xmark}& %zp,x
495 \mono{\color{ghost}\xmark}& %abs
496 \mono{\color{ghost}\xmark}& %abs,x
497 \mono{\color{ghost}\xmark}& %abs,y
498 \mono{\color{ghost}\xmark}& %(zp,x)
499 \mono{\color{ghost}\xmark}& %(zp),y
500 \mono{\color{ghost}\xmark}& %zp,y
501 \mono{\color{ghost}\xmark} & %rel
502 \mono{\color{ghost}\xmark} %(abs)
503 \\
504
505 \mono{BVC}&
506 \mono{\color{ghost}\xmark}& %iMP
507 \mono{\color{ghost}\xmark}&
508 \mono{\color{ghost}\xmark}& %zp
509 \mono{\color{ghost}\xmark}& %zp,x
510 \mono{\color{ghost}\xmark}& %abs
511 \mono{\color{ghost}\xmark}& %abs,x
512 \mono{\color{ghost}\xmark}& %abs,y
513 \mono{\color{ghost}\xmark}& %(zp,x)
514 \mono{\color{ghost}\xmark}& %(zp),y
515 \mono{\color{ghost}\xmark}& %zp,y
516 \mono{\$50} & %rel
517 \mono{\color{ghost}\xmark} %(abs)
518 \\
519
520 \mono{BVS}&
521 \mono{\color{ghost}\xmark}& %iMP
522 \mono{\color{ghost}\xmark}&
523 \mono{\color{ghost}\xmark}& %zp
524 \mono{\color{ghost}\xmark}& %zp,x
525 \mono{\color{ghost}\xmark}& %abs
526 \mono{\color{ghost}\xmark}& %abs,x
527 \mono{\color{ghost}\xmark}& %abs,y
528 \mono{\color{ghost}\xmark}& %(zp,x)
529 \mono{\color{ghost}\xmark}& %(zp),y
530 \mono{\color{ghost}\xmark}& %zp,y
531 \mono{\$70} & %rel
532 \mono{\color{ghost}\xmark} %(abs)
533 \\
534
535 \mono{CLC}&
536 \mono{\$18}& %iMP
537 \mono{\color{ghost}\xmark}&
538 \mono{\color{ghost}\xmark}& %zp
539 \mono{\color{ghost}\xmark}& %zp,x
540 \mono{\color{ghost}\xmark}& %abs
541 \mono{\color{ghost}\xmark}& %abs,x
542 \mono{\color{ghost}\xmark}& %abs,y
543 \mono{\color{ghost}\xmark}& %(zp,x)
544 \mono{\color{ghost}\xmark}& %(zp),y
545 \mono{\color{ghost}\xmark}& %zp,y
546 \mono{\color{ghost}\xmark} & %rel
547 \mono{\color{ghost}\xmark} %(abs)
548 \\
549
550 \mono{CLD}&
551 \mono{\$D8}& %iMP
552 \mono{\color{ghost}\xmark}&
553 \mono{\color{ghost}\xmark}& %zp
554 \mono{\color{ghost}\xmark}& %zp,x
555 \mono{\color{ghost}\xmark}& %abs
556 \mono{\color{ghost}\xmark}& %abs,x
557 \mono{\color{ghost}\xmark}& %abs,y
558 \mono{\color{ghost}\xmark}& %(zp,x)
559 \mono{\color{ghost}\xmark}& %(zp),y
560 \mono{\color{ghost}\xmark}& %zp,y
561 \mono{\color{ghost}\xmark} & %rel
562 \mono{\color{ghost}\xmark} %(abs)
563 \\
564
565 \mono{CLI}&
566 \mono{\$58}& %iMP
567 \mono{\color{ghost}\xmark}&
568 \mono{\color{ghost}\xmark}& %zp
569 \mono{\color{ghost}\xmark}& %zp,x
570 \mono{\color{ghost}\xmark}& %abs
571 \mono{\color{ghost}\xmark}& %abs,x
572 \mono{\color{ghost}\xmark}& %abs,y
573 \mono{\color{ghost}\xmark}& %(zp,x)
574 \mono{\color{ghost}\xmark}& %(zp),y
575 \mono{\color{ghost}\xmark}& %zp,y
576 \mono{\color{ghost}\xmark} & %rel
577 \mono{\color{ghost}\xmark} %(abs)
578 \\
579
580 \mono{CLV}&
581 \mono{\$B8}& %iMP
582 \mono{\color{ghost}\xmark}&
583 \mono{\color{ghost}\xmark}& %zp
584 \mono{\color{ghost}\xmark}& %zp,x
585 \mono{\color{ghost}\xmark}& %abs
586 \mono{\color{ghost}\xmark}& %abs,x
587 \mono{\color{ghost}\xmark}& %abs,y
588 \mono{\color{ghost}\xmark}& %(zp,x)
589 \mono{\color{ghost}\xmark}& %(zp),y
590 \mono{\color{ghost}\xmark}& %zp,y
591 \mono{\color{ghost}\xmark} & %rel
592 \mono{\color{ghost}\xmark} %(abs)
593 \\
594
595 \mono{CMP}&
596 \mono{\color{ghost}\xmark}& %iMP
597 \mono{\$C9}& %IMM
598 \mono{\$C5}& %zp
599 \mono{\$D5}& %zp,x
600 \mono{\$CD}& %abs
601 \mono{\$DD}& %abs,x
602 \mono{\$D9}& %abs,y
603 \mono{\$C1}& %(zp,x)
604 \mono{\$D1}& %(zp),y
605 \mono{\color{ghost}\xmark}& %zp,y
606 \mono{\color{ghost}\xmark} & %rel
607 \mono{\color{ghost}\xmark} %(abs)
608 \\
609
610 \mono{CPX}&
611 \mono{\color{ghost}\xmark}& %iMP
612 \mono{\$E0}& %IMM
613 \mono{\$E4}& %zp
614 \mono{\color{ghost}\xmark}& %zp,x
615 \mono{\$EC}& %abs
616 \mono{\color{ghost}\xmark}& %abs,x
617 \mono{\color{ghost}\xmark}& %abs,y
618 \mono{\color{ghost}\xmark}& %(zp,x)
619 \mono{\color{ghost}\xmark}& %(zp),y
620 \mono{\color{ghost}\xmark}& %zp,y
621 \mono{\color{ghost}\xmark} & %rel
622 \mono{\color{ghost}\xmark} %(abs)
623 \\
624
625 \mono{CPY}&
626 \mono{\color{ghost}\xmark}& %iMP
627 \mono{\$C0}& %IMM
628 \mono{\$C4}& %zp
629 \mono{\color{ghost}\xmark}& %zp,x
630 \mono{\$CC}& %abs
631 \mono{\color{ghost}\xmark}& %abs,x
632 \mono{\color{ghost}\xmark}& %abs,y
633 \mono{\color{ghost}\xmark}& %(zp,x)
634 \mono{\color{ghost}\xmark}& %(zp),y
635 \mono{\color{ghost}\xmark}& %zp,y
636 \mono{\color{ghost}\xmark} & %rel
637 \mono{\color{ghost}\xmark} %(abs)
638 \\
639
640 \mono{DCP}&
641 \mono{\color{ghost}\xmark}& %iMP
642 \mono{\color{ghost}\xmark}& %IMM
643 \cellcolor{illegal}\mono{\$C7}& %zp
644 \cellcolor{illegal}\mono{\$D7}& %zp,x
645 \cellcolor{illegal}\mono{\$CF}& %abs
646 \cellcolor{illegal}\mono{\$DF}& %abs,x
647 \cellcolor{illegal}\mono{\$DB}& %abs,y
648 \cellcolor{illegal}\mono{\$C3}& %(zp,x)
649 \cellcolor{illegal}\mono{\$D3}& %(zp),y
650 \mono{\color{ghost}\xmark}& %zp,y
651 \mono{\color{ghost}\xmark} & %rel
652 \mono{\color{ghost}\xmark} %(abs)
653 \\
654
655 \mono{DEC}&
656 \mono{\color{ghost}\xmark}& %iMP
657 \mono{\color{ghost}\xmark}& %IMM
658 \mono{\$C6}& %zp
659 \mono{\$D6}& %zp,x
660 \mono{\$CE}& %abs
661 \mono{\$DE}& %abs,x
662 \mono{\color{ghost}\xmark}& %abs,y
663 \mono{\color{ghost}\xmark}& %(zp,x)
664 \mono{\color{ghost}\xmark}& %(zp),y
665 \mono{\color{ghost}\xmark}& %zp,y
666 \mono{\color{ghost}\xmark} & %rel
667 \mono{\color{ghost}\xmark} %(abs)
668 \\
669
670 \mono{DEX}&
671 \mono{\$CA}& %iMP
672 \mono{\color{ghost}\xmark}&
673 \mono{\color{ghost}\xmark}& %zp
674 \mono{\color{ghost}\xmark}& %zp,x
675 \mono{\color{ghost}\xmark}& %abs
676 \mono{\color{ghost}\xmark}& %abs,x
677 \mono{\color{ghost}\xmark}& %abs,y
678 \mono{\color{ghost}\xmark}& %(zp,x)
679 \mono{\color{ghost}\xmark}& %(zp),y
680 \mono{\color{ghost}\xmark}& %zp,y
681 \mono{\color{ghost}\xmark} & %rel
682 \mono{\color{ghost}\xmark} %(abs)
683 \\
684
685 \mono{DEY}&
686 \mono{\$88}& %iMP
687 \mono{\color{ghost}\xmark}&
688 \mono{\color{ghost}\xmark}& %zp
689 \mono{\color{ghost}\xmark}& %zp,x
690 \mono{\color{ghost}\xmark}& %abs
691 \mono{\color{ghost}\xmark}& %abs,x
692 \mono{\color{ghost}\xmark}& %abs,y
693 \mono{\color{ghost}\xmark}& %(zp,x)
694 \mono{\color{ghost}\xmark}& %(zp),y
695 \mono{\color{ghost}\xmark}& %zp,y
696 \mono{\color{ghost}\xmark} & %rel
697 \mono{\color{ghost}\xmark} %(abs)
698 \\
699
700 \mono{EOR}&
701 \mono{\color{ghost}\xmark}& %iMP
702 \mono{\$49}& %#
703 \mono{\$45}& %zp
704 \mono{\$55}& %zp,x
705 \mono{\$4D}& %abs
706 \mono{\$5D}& %abs,x
707 \mono{\$59}& %abs,y
708 \mono{\$41}& %(zp,x)
709 \mono{\$51}& %(zp),y
710 \mono{\color{ghost}\xmark}& %zp,y
711 \mono{\color{ghost}\xmark} & %rel
712 \mono{\color{ghost}\xmark} %(abs)
713 \\
714
715 \mono{INC}&
716 \mono{\color{ghost}\xmark}& %iMP
717 \mono{\color{ghost}\xmark}& %#
718 \mono{\$E6}& %zp
719 \mono{\$F6}& %zp,x
720 \mono{\$EE}& %abs
721 \mono{\$FE}& %abs,x
722 \mono{\color{ghost}\xmark}& %abs,y
723 \mono{\color{ghost}\xmark}& %(zp,x)
724 \mono{\color{ghost}\xmark}& %(zp),y
725 \mono{\color{ghost}\xmark}& %zp,y
726 \mono{\color{ghost}\xmark} & %rel
727 \mono{\color{ghost}\xmark} %(abs)
728 \\
729
730 \mono{INX}&
731 \mono{\$E8}& %iMP
732 \mono{\color{ghost}\xmark}& %#
733 \mono{\color{ghost}\xmark}& %zp
734 \mono{\color{ghost}\xmark}& %zp,x
735 \mono{\color{ghost}\xmark}& %abs
736 \mono{\color{ghost}\xmark}& %abs,x
737 \mono{\color{ghost}\xmark}& %abs,y
738 \mono{\color{ghost}\xmark}& %(zp,x)
739 \mono{\color{ghost}\xmark}& %(zp),y
740 \mono{\color{ghost}\xmark}& %zp,y
741 \mono{\color{ghost}\xmark} & %rel
742 \mono{\color{ghost}\xmark} %(abs)
743 \\
744
745 \mono{INY}&
746 \mono{\$C8}& %iMP
747 \mono{\color{ghost}\xmark}& %#
748 \mono{\color{ghost}\xmark}& %zp
749 \mono{\color{ghost}\xmark}& %zp,x
750 \mono{\color{ghost}\xmark}& %abs
751 \mono{\color{ghost}\xmark}& %abs,x
752 \mono{\color{ghost}\xmark}& %abs,y
753 \mono{\color{ghost}\xmark}& %(zp,x)
754 \mono{\color{ghost}\xmark}& %(zp),y
755 \mono{\color{ghost}\xmark}& %zp,y
756 \mono{\color{ghost}\xmark} & %rel
757 \mono{\color{ghost}\xmark} %(abs)
758 \\
759
760 \mono{ISB}&
761 \mono{\color{ghost}\xmark}& %iMP
762 \mono{\color{ghost}\xmark}& %#
763 \cellcolor{illegal}\mono{\$E7}& %zp
764 \cellcolor{illegal}\mono{\$F7}& %zp,x
765 \cellcolor{illegal}\mono{\$EF}& %abs
766 \cellcolor{illegal}\mono{\$FF}& %abs,x
767 \cellcolor{illegal}\mono{\$FB}& %abs,y
768 \cellcolor{illegal}\mono{\$E3}& %(zp,x)
769 \cellcolor{illegal}\mono{\$F3}& %(zp),y
770 \mono{\color{ghost}\xmark}& %zp,y
771 \mono{\color{ghost}\xmark} & %rel
772 \mono{\color{ghost}\xmark} %(abs)
773 \\
774
775 \end{tabularx}
776 \end{table}
777
778 \begin{table}[H]
779 %\def\arraystretch{0.98}
780 \begin{tabularx}{\linewidth}{c|cccccccccccc}
781 %\toprule
782
783 %\cline{2-13}
784 % \multicolumn{1}{c}{} &
785
786 \mono{}&
787 \emph{imp}&
788 \emph{imm}&
789 \emph{zp}&
790 \emph{zpx}&
791 \emph{abs}&
792 \emph{abx}&
793 \emph{aby}&
794 \emph{idx}&
795 \emph{idy}&
796 \emph{zpy}&
797 \emph{rel}&
798 \emph{ind}\\
799 \hline
800 \\
801
802
803 \mono{JMP}&
804 \mono{\color{ghost}\xmark}& %iMP
805 \mono{\color{ghost}\xmark}& %#
806 \mono{\color{ghost}\xmark}& %zp
807 \mono{\color{ghost}\xmark}& %zp,x
808 \mono{\$4C}& %abs
809 \mono{\color{ghost}\xmark}& %abs,x
810 \mono{\color{ghost}\xmark}& %abs,y
811 \mono{\color{ghost}\xmark}& %(zp,x)
812 \mono{\color{ghost}\xmark}& %(zp),y
813 \mono{\color{ghost}\xmark}& %zp,y
814 \mono{\color{ghost}\xmark}& %rel
815 \mono{\$6C} %(abs)
816 \\
817
818 \mono{JSR}&
819 \mono{\color{ghost}\xmark}& %iMP
820 \mono{\color{ghost}\xmark}& %#
821 \mono{\color{ghost}\xmark}& %zp
822 \mono{\color{ghost}\xmark}& %zp,x
823 \mono{\$20}& %abs
824 \mono{\color{ghost}\xmark}& %abs,x
825 \mono{\color{ghost}\xmark}& %abs,y
826 \mono{\color{ghost}\xmark}& %(zp,x)
827 \mono{\color{ghost}\xmark}& %(zp),y
828 \mono{\color{ghost}\xmark}& %zp,y
829 \mono{\color{ghost}\xmark}& %rel
830 \mono{\color{ghost}\xmark} %(abs)
831 \\
832
833 \cellcolor{missing}\mono{KIL}&
834 \mono{\color{ghost}\xmark}& %iMP
835 \mono{\color{ghost}\xmark}& %#
836 \mono{\color{ghost}\xmark}& %zp
837 \mono{\color{ghost}\xmark}& %zp,x
838 \mono{\color{ghost}\xmark}& %abs
839 \mono{\color{ghost}\xmark}& %abs,x
840 \mono{\color{ghost}\xmark}& %abs,y
841 \mono{\color{ghost}\xmark}& %(zp,x)
842 \mono{\color{ghost}\xmark}& %(zp),y
843 \mono{\color{ghost}\xmark}& %zp,y
844 \mono{\color{ghost}\xmark}& %rel
845 \mono{\color{ghost}\xmark} %(abs)
846 \\
847
848
849 \mono{LAS}&
850 \mono{\color{ghost}\xmark}& %iMP
851 \mono{\color{ghost}\xmark}& %#
852 \mono{\color{ghost}\xmark}& %zp
853 \mono{\color{ghost}\xmark}& %zp,x
854 \mono{\color{ghost}\xmark}& %abs
855 \mono{\color{ghost}\xmark}& %abs,x
856 \cellcolor{illegal}\mono{\$BB}& %abs,y
857 \mono{\color{ghost}\xmark}& %(zp,x)
858 \mono{\color{ghost}\xmark}& %(zp),y
859 \mono{\color{ghost}\xmark}& %zp,y
860 \mono{\color{ghost}\xmark}& %rel
861 \mono{\color{ghost}\xmark} %(abs)
862 \\
863
864 \mono{LAX}&
865 \mono{\color{ghost}\xmark}& %iMP
866 \mono{\color{ghost}\xmark}& %#
867 \cellcolor{illegal}\mono{\$A7}& %zp
868 \mono{\color{ghost}\xmark}& %zp,x
869 \cellcolor{illegal}\mono{\$AF}& %abs
870 \mono{\color{ghost}\xmark}& %abs,x
871 \cellcolor{illegal}\mono{\$BF}& %abs,y
872 \cellcolor{illegal}\mono{\$A3}& %(zp,x)
873 \cellcolor{illegal}\mono{\$B3}& %(zp),y
874 \cellcolor{illegal}\mono{\$B7}& %zp,y
875 \mono{\color{ghost}\xmark}& %rel
876 \mono{\color{ghost}\xmark} %(abs)
877 \\
878
879 \mono{LDA}&
880 \mono{\color{ghost}\xmark}& %iMP
881 \mono{\$A9}& %#
882 \mono{\$A5}& %zp
883 \mono{\$B5}& %zp,x
884 \mono{\$AD}& %abs
885 \mono{\$BD}& %abs,x
886 \mono{\$B9}& %abs,y
887 \mono{\$A1}& %(zp,x)
888 \mono{\$B1}& %(zp),y
889 \mono{\color{ghost}\xmark}& %zp,y
890 \mono{\color{ghost}\xmark}& %rel
891 \mono{\color{ghost}\xmark} %(abs)
892 \\
893
894 \mono{LDX}&
895 \mono{\color{ghost}\xmark}& %iMP
896 \mono{\$A2}& %#
897 \mono{\$A6}& %zp
898 \mono{\color{ghost}\xmark}& %zp,x
899 \mono{\$AE}& %abs
900 \mono{\color{ghost}\xmark}& %abs,x
901 \mono{\$BE}& %abs,y
902 \mono{\color{ghost}\xmark}& %(zp,x)
903 \mono{\color{ghost}\xmark}& %(zp),y
904 \mono{\$B6}& %zp,y
905 \mono{\color{ghost}\xmark}& %rel
906 \mono{\color{ghost}\xmark} %(abs)
907 \\
908
909 \mono{LDY}&
910 \mono{\color{ghost}\xmark}& %iMP
911 \mono{\$A0}& %#
912 \mono{\$A4}& %zp
913 \mono{\$B4}& %zp,x
914 \mono{\$AC}& %abs
915 \mono{\$BC}& %abs,x
916 \mono{\color{ghost}\xmark}& %abs,y
917 \mono{\color{ghost}\xmark}& %(zp,x)
918 \mono{\color{ghost}\xmark}& %(zp),y
919 \mono{\color{ghost}\xmark}& %zp,y
920 \mono{\color{ghost}\xmark}& %rel
921 \mono{\color{ghost}\xmark} %(abs)
922 \\
923
924 \mono{LSR}&
925 \mono{\$4A}& %iMP
926 \mono{\color{ghost}\xmark}& %#
927 \mono{\$46}& %zp
928 \mono{\$56}& %zp,x
929 \mono{\$4E}& %abs
930 \mono{\$5E}& %abs,x
931 \mono{\color{ghost}\xmark}& %abs,y
932 \mono{\color{ghost}\xmark}& %(zp,x)
933 \mono{\color{ghost}\xmark}& %(zp),y
934 \mono{\color{ghost}\xmark}& %zp,y
935 \mono{\color{ghost}\xmark}& %rel
936 \mono{\color{ghost}\xmark} %(abs)
937 \\
938
939 \mono{LXA}&
940 \mono{\color{ghost}\xmark}& %iMP
941 \cellcolor{illegal}\mono{\$AB}& %#
942 \mono{\color{ghost}\xmark}& %zp
943 \mono{\color{ghost}\xmark}& %zp,x
944 \mono{\color{ghost}\xmark}& %abs
945 \mono{\color{ghost}\xmark}& %abs,x
946 \mono{\color{ghost}\xmark}& %abs,y
947 \mono{\color{ghost}\xmark}& %(zp,x)
948 \mono{\color{ghost}\xmark}& %(zp),y
949 \mono{\color{ghost}\xmark}& %zp,y
950 \mono{\color{ghost}\xmark}& %rel
951 \mono{\color{ghost}\xmark} %(abs)
952 \\
953
954
955
956 \mono{NOP}&
957 \mono{\$EA}& %iMP
958 \cellcolor{illegal}\mono{\$80}& %#
959 \cellcolor{illegal}\mono{\$04}& %zp
960 \cellcolor{illegal}\mono{\$14}& %zp,x
961 \cellcolor{illegal}\mono{\$0C}& %abs
962 \cellcolor{illegal}\mono{\$1C}& %abs,x
963 \mono{\color{ghost}\xmark}& %abs,y
964 \mono{\color{ghost}\xmark}& %(zp,x)
965 \mono{\color{ghost}\xmark}& %(zp),y
966 \mono{\color{ghost}\xmark}& %zp,y
967 \mono{\color{ghost}\xmark}& %rel
968 \mono{\color{ghost}\xmark} %(abs)
969 \\
970
971 \mono{}& % NOP #2
972 \mono{\cellcolor{missing}\cellcolor{missing}\$1A}& %iMP
973 \mono{}& %#
974 \mono{\cellcolor{missing}\$44}& %zp
975 \mono{\cellcolor{missing}\$34}& %zp,x
976 \mono{}& %abs
977 \mono{\cellcolor{missing}\$3C}& %abs,x
978 \mono{}& %abs,y
979 \mono{}& %(zp,x)
980 \mono{}& %(zp),y
981 \mono{}& %zp,y
982 \mono{}& %rel
983 \mono{} %(abs)
984 \\
985
986 \mono{}& % NOP #3
987 \mono{\cellcolor{missing}\$3A}& %iMP
988 \mono{}& %#
989 \mono{\cellcolor{missing}\$64}& %zp
990 \mono{\cellcolor{missing}\$54}& %zp,x
991 \mono{}& %abs
992 \mono{\cellcolor{missing}\$5C}& %abs,x
993 \mono{}& %abs,y
994 \mono{}& %(zp,x)
995 \mono{}& %(zp),y
996 \mono{}& %zp,y
997 \mono{}& %rel
998 \mono{} %(abs)
999 \\
1000
1001 \mono{}& % NOP #4
1002 \mono{\cellcolor{missing}\$5A}& %iMP
1003 \mono{}& %#
1004 \mono{}& %zp
1005 \mono{\cellcolor{missing}\$74}& %zp,x
1006 \mono{}& %abs
1007 \mono{\cellcolor{missing}\$7C}& %abs,x
1008 \mono{}& %abs,y
1009 \mono{}& %(zp,x)
1010 \mono{}& %(zp),y
1011 \mono{}& %zp,y
1012 \mono{}& %rel
1013 \mono{} %(abs)
1014 \\
1015
1016 \mono{}& % NOP #5
1017 \mono{\cellcolor{missing}\$7A}& %iMP
1018 \mono{}& %#
1019 \mono{}& %zp
1020 \mono{\cellcolor{missing}\$D4}& %zp,x
1021 \mono{}& %abs
1022 \mono{\cellcolor{missing}\$DC}& %abs,x
1023 \mono{}& %abs,y
1024 \mono{}& %(zp,x)
1025 \mono{}& %(zp),y
1026 \mono{}& %zp,y
1027 \mono{}& %rel
1028 \mono{} %(abs)
1029 \\
1030
1031 \mono{}& % NOP #6
1032 \mono{\cellcolor{missing}\$82}& %iMP
1033 \mono{}& %#
1034 \mono{}& %zp
1035 \mono{\cellcolor{missing}\$F4}& %zp,x
1036 \mono{}& %abs
1037 \mono{\cellcolor{missing}\$FC}& %abs,x
1038 \mono{}& %abs,y
1039 \mono{}& %(zp,x)
1040 \mono{}& %(zp),y
1041 \mono{}& %zp,y
1042 \mono{}& %rel
1043 \mono{} %(abs)
1044 \\
1045
1046 \mono{}& % NOP #7
1047 \mono{\cellcolor{missing}\$89}& %iMP
1048 \mono{}& %#
1049 \mono{}& %zp
1050 \mono{}& %zp,x
1051 \mono{}& %abs
1052 \mono{}& %abs,x
1053 \mono{}& %abs,y
1054 \mono{}& %(zp,x)
1055 \mono{}& %(zp),y
1056 \mono{}& %zp,y
1057 \mono{}& %rel
1058 \mono{} %(abs)
1059 \\
1060
1061 \mono{}& % NOP #8
1062 \mono{\cellcolor{missing}\$C2}& %iMP
1063 \mono{}& %#
1064 \mono{}& %zp
1065 \mono{}& %zp,x
1066 \mono{}& %abs
1067 \mono{}& %abs,x
1068 \mono{}& %abs,y
1069 \mono{}& %(zp,x)
1070 \mono{}& %(zp),y
1071 \mono{}& %zp,y
1072 \mono{}& %rel
1073 \mono{} %(abs)
1074 \\
1075
1076 \mono{}& % NOP #9
1077 \mono{\cellcolor{missing}\$DA}& %iMP
1078 \mono{}& %#
1079 \mono{}& %zp
1080 \mono{}& %zp,x
1081 \mono{}& %abs
1082 \mono{}& %abs,x
1083 \mono{}& %abs,y
1084 \mono{}& %(zp,x)
1085 \mono{}& %(zp),y
1086 \mono{}& %zp,y
1087 \mono{}& %rel
1088 \mono{} %(abs)
1089 \\
1090
1091 \mono{}& % NOP #10
1092 \mono{\cellcolor{missing}\$E2}& %iMP
1093 \mono{}& %#
1094 \mono{}& %zp
1095 \mono{}& %zp,x
1096 \mono{}& %abs
1097 \mono{}& %abs,x
1098 \mono{}& %abs,y
1099 \mono{}& %(zp,x)
1100 \mono{}& %(zp),y
1101 \mono{}& %zp,y
1102 \mono{}& %rel
1103 \mono{} %(abs)
1104 \\
1105
1106 \mono{}& % NOP #11
1107 \mono{\cellcolor{missing}\$FA}& %iMP
1108 \mono{}& %#
1109 \mono{}& %zp
1110 \mono{}& %zp,x
1111 \mono{}& %abs
1112 \mono{}& %abs,x
1113 \mono{}& %abs,y
1114 \mono{}& %(zp,x)
1115 \mono{}& %(zp),y
1116 \mono{}& %zp,y
1117 \mono{}& %rel
1118 \mono{} %(abs)
1119 \\
1120
1121
1122
1123 \mono{ORA}&
1124 \mono{\color{ghost}\xmark}& %iMP
1125 \mono{\$09}& %#
1126 \mono{\$05}& %zp
1127 \mono{\$15}& %zp,x
1128 \mono{\$0D}& %abs
1129 \mono{\$1D}& %abs,x
1130 \mono{\$19}& %abs,y
1131 \mono{\$01}& %(zp,x)
1132 \mono{\$11}& %(zp),y
1133 \mono{\color{ghost}\xmark}& %zp,y
1134 \mono{\color{ghost}\xmark}& %rel
1135 \mono{\color{ghost}\xmark} %(abs)
1136 \\
1137
1138 \mono{PHA}&
1139 \mono{\$48}& %iMP
1140 \mono{\color{ghost}\xmark}& %#
1141 \mono{\color{ghost}\xmark}& %zp
1142 \mono{\color{ghost}\xmark}& %zp,x
1143 \mono{\color{ghost}\xmark}& %abs
1144 \mono{\color{ghost}\xmark}& %abs,x
1145 \mono{\color{ghost}\xmark}& %abs,y
1146 \mono{\color{ghost}\xmark}& %(zp,x)
1147 \mono{\color{ghost}\xmark}& %(zp),y
1148 \mono{\color{ghost}\xmark}& %zp,y
1149 \mono{\color{ghost}\xmark}& %rel
1150 \mono{\color{ghost}\xmark} %(abs)
1151 \\
1152
1153 \mono{PHP}&
1154 \mono{\$08}& %iMP
1155 \mono{\color{ghost}\xmark}& %#
1156 \mono{\color{ghost}\xmark}& %zp
1157 \mono{\color{ghost}\xmark}& %zp,x
1158 \mono{\color{ghost}\xmark}& %abs
1159 \mono{\color{ghost}\xmark}& %abs,x
1160 \mono{\color{ghost}\xmark}& %abs,y
1161 \mono{\color{ghost}\xmark}& %(zp,x)
1162 \mono{\color{ghost}\xmark}& %(zp),y
1163 \mono{\color{ghost}\xmark}& %zp,y
1164 \mono{\color{ghost}\xmark}& %rel
1165 \mono{\color{ghost}\xmark} %(abs)
1166 \\
1167
1168 \mono{PLA}&
1169 \mono{\$68}& %iMP
1170 \mono{\color{ghost}\xmark}& %#
1171 \mono{\color{ghost}\xmark}& %zp
1172 \mono{\color{ghost}\xmark}& %zp,x
1173 \mono{\color{ghost}\xmark}& %abs
1174 \mono{\color{ghost}\xmark}& %abs,x
1175 \mono{\color{ghost}\xmark}& %abs,y
1176 \mono{\color{ghost}\xmark}& %(zp,x)
1177 \mono{\color{ghost}\xmark}& %(zp),y
1178 \mono{\color{ghost}\xmark}& %zp,y
1179 \mono{\color{ghost}\xmark}& %rel
1180 \mono{\color{ghost}\xmark} %(abs)
1181 \\
1182
1183 \mono{PLP}&
1184 \mono{\$28}& %iMP
1185 \mono{\color{ghost}\xmark}& %#
1186 \mono{\color{ghost}\xmark}& %zp
1187 \mono{\color{ghost}\xmark}& %zp,x
1188 \mono{\color{ghost}\xmark}& %abs
1189 \mono{\color{ghost}\xmark}& %abs,x
1190 \mono{\color{ghost}\xmark}& %abs,y
1191 \mono{\color{ghost}\xmark}& %(zp,x)
1192 \mono{\color{ghost}\xmark}& %(zp),y
1193 \mono{\color{ghost}\xmark}& %zp,y
1194 \mono{\color{ghost}\xmark}& %rel
1195 \mono{\color{ghost}\xmark} %(abs)
1196 \\
1197
1198 \mono{RLA}&
1199 \mono{\color{ghost}\xmark}& %iMP
1200 \mono{\color{ghost}\xmark}& %#
1201 \cellcolor{illegal}\mono{\$27}& %zp
1202 \cellcolor{illegal}\mono{\$37}& %zp,x
1203 \cellcolor{illegal}\mono{\$2F}& %abs
1204 \cellcolor{illegal}\mono{\$3F}& %abs,x
1205 \cellcolor{illegal}\mono{\$3B}& %abs,y
1206 \cellcolor{illegal}\mono{\$23}& %(zp,x)
1207 \cellcolor{illegal}\mono{\$33}& %(zp),y
1208 \mono{\color{ghost}\xmark}& %zp,y
1209 \mono{\color{ghost}\xmark}& %rel
1210 \mono{\color{ghost}\xmark} %(abs)
1211 \\
1212
1213 \mono{ROL}&
1214 \mono{\$2A}& %iMP
1215 \mono{\color{ghost}\xmark}& %#
1216 \mono{\$26}& %zp
1217 \mono{\$36}& %zp,x
1218 \mono{\$2E}& %abs
1219 \mono{\$3E}& %abs,x
1220 \mono{\color{ghost}\xmark}& %abs,y
1221 \mono{\color{ghost}\xmark}& %(zp,x)
1222 \mono{\color{ghost}\xmark}& %(zp),y
1223 \mono{\color{ghost}\xmark}& %zp,y
1224 \mono{\color{ghost}\xmark}& %rel
1225 \mono{\color{ghost}\xmark} %(abs)
1226 \\
1227
1228 \mono{ROR}&
1229 \mono{\$6A}& %iMP
1230 \mono{\color{ghost}\xmark}& %#
1231 \mono{\$66}& %zp
1232 \mono{\$76}& %zp,x
1233 \mono{\$6E}& %abs
1234 \mono{\$7E}& %abs,x
1235 \mono{\color{ghost}\xmark}& %abs,y
1236 \mono{\color{ghost}\xmark}& %(zp,x)
1237 \mono{\color{ghost}\xmark}& %(zp),y
1238 \mono{\color{ghost}\xmark}& %zp,y
1239 \mono{\color{ghost}\xmark}& %rel
1240 \mono{\color{ghost}\xmark} %(abs)
1241 \\
1242
1243 \mono{RRA}&
1244 \mono{\color{ghost}\xmark}& %iMP
1245 \mono{\color{ghost}\xmark}& %#
1246 \cellcolor{illegal}\mono{\$67}& %zp
1247 \cellcolor{illegal}\mono{\$77}& %zp,x
1248 \cellcolor{illegal}\mono{\$6F}& %abs
1249 \cellcolor{illegal}\mono{\$7F}& %abs,x
1250 \cellcolor{illegal}\mono{\$7B}& %abs,y
1251 \cellcolor{illegal}\mono{\$63}& %(zp,x)
1252 \cellcolor{illegal}\mono{\$73}& %(zp),y
1253 \mono{\color{ghost}\xmark}& %zp,y
1254 \mono{\color{ghost}\xmark}& %rel
1255 \mono{\color{ghost}\xmark} %(abs)
1256 \\
1257
1258 \mono{RTI}&
1259 \mono{\$40}& %iMP
1260 \mono{\color{ghost}\xmark}& %#
1261 \mono{\color{ghost}\xmark}& %zp
1262 \mono{\color{ghost}\xmark}& %zp,x
1263 \mono{\color{ghost}\xmark}& %abs
1264 \mono{\color{ghost}\xmark}& %abs,x
1265 \mono{\color{ghost}\xmark}& %abs,y
1266 \mono{\color{ghost}\xmark}& %(zp,x)
1267 \mono{\color{ghost}\xmark}& %(zp),y
1268 \mono{\color{ghost}\xmark}& %zp,y
1269 \mono{\color{ghost}\xmark}& %rel
1270 \mono{\color{ghost}\xmark} %(abs)
1271 \\
1272
1273 \mono{RTS}&
1274 \mono{\$60}& %iMP
1275 \mono{\color{ghost}\xmark}& %#
1276 \mono{\color{ghost}\xmark}& %zp
1277 \mono{\color{ghost}\xmark}& %zp,x
1278 \mono{\color{ghost}\xmark}& %abs
1279 \mono{\color{ghost}\xmark}& %abs,x
1280 \mono{\color{ghost}\xmark}& %abs,y
1281 \mono{\color{ghost}\xmark}& %(zp,x)
1282 \mono{\color{ghost}\xmark}& %(zp),y
1283 \mono{\color{ghost}\xmark}& %zp,y
1284 \mono{\color{ghost}\xmark}& %rel
1285 \mono{\color{ghost}\xmark} %(abs)
1286 \\
1287
1288 \mono{SAX}&
1289 \mono{\color{ghost}\xmark}& %iMP
1290 \mono{\color{ghost}\xmark}& %#
1291 \cellcolor{illegal}\mono{\$87}& %zp
1292 \mono{\color{ghost}\xmark}& %zp,x
1293 \cellcolor{illegal}\mono{\$8F}& %abs
1294 \mono{\color{ghost}\xmark}& %abs,x
1295 \mono{\color{ghost}\xmark}& %abs,y
1296 \cellcolor{illegal}\mono{\$83}& %(zp,x)
1297 \mono{\color{ghost}\xmark}& %(zp),y
1298 \cellcolor{illegal}\mono{\$97}& %zp,y
1299 \mono{\color{ghost}\xmark}& %rel
1300 \mono{\color{ghost}\xmark} %(abs)
1301 \\
1302
1303 \mono{SBC}&
1304 \mono{\color{ghost}\xmark}& %iMP
1305 \mono{\$E9}& %#
1306 \mono{\$E5}& %zp
1307 \mono{\$F5}& %zp,x
1308 \mono{\$ED}& %abs
1309 \mono{\$FD}& %abs,x
1310 \mono{\$F9}& %abs,y
1311 \mono{\$E1}& %(zp,x)
1312 \mono{\$F1}& %(zp),y
1313 \mono{\color{ghost}\xmark}& %zp,y
1314 \mono{\color{ghost}\xmark}& %rel
1315 \mono{\color{ghost}\xmark} %(abs)
1316 \\
1317 \mono{}& %2
1318 \mono{}& %iMP
1319 \mono{\cellcolor{missing}\$EB}& %#
1320 \mono{}& %zp
1321 \mono{}& %zp,x
1322 \mono{}& %abs
1323 \mono{}& %abs,x
1324 \mono{}& %abs,y
1325 \mono{}& %(zp,x)
1326 \mono{}& %(zp),y
1327 \mono{}& %zp,y
1328 \mono{}& %rel
1329 \mono{} %(abs)
1330 \\
1331
1332 \end{tabularx}
1333 \end{table}
1334
1335 \begin{table}[H]
1336 %\def\arraystretch{0.98}
1337 \begin{tabularx}{\linewidth}{c|cccccccccccc}
1338 %\toprule
1339
1340 %\cline{2-13}
1341 % \multicolumn{1}{c}{} &
1342
1343 \mono{}&
1344 \emph{imp}&
1345 \emph{imm}&
1346 \emph{zp}&
1347 \emph{zpx}&
1348 \emph{abs}&
1349 \emph{abx}&
1350 \emph{aby}&
1351 \emph{idx}&
1352 \emph{idy}&
1353 \emph{zpy}&
1354 \emph{rel}&
1355 \emph{ind}\\
1356 \hline
1357 \\
1358
1359
1360 \mono{SBX}&
1361 \mono{\color{ghost}\xmark}& %iMP
1362 \cellcolor{illegal}\mono{\$CB}& %#
1363 \mono{\color{ghost}\xmark}& %zp
1364 \mono{\color{ghost}\xmark}& %zp,x
1365 \mono{\color{ghost}\xmark}& %abs
1366 \mono{\color{ghost}\xmark}& %abs,x
1367 \mono{\color{ghost}\xmark}& %abs,y
1368 \mono{\color{ghost}\xmark}& %(zp,x)
1369 \mono{\color{ghost}\xmark}& %(zp),y
1370 \mono{\color{ghost}\xmark}& %zp,y
1371 \mono{\color{ghost}\xmark}& %rel
1372 \mono{\color{ghost}\xmark} %(abs)
1373 \\
1374
1375 \mono{SEC}&
1376 \mono{\$38}& %iMP
1377 \mono{\color{ghost}\xmark}& %#
1378 \mono{\color{ghost}\xmark}& %zp
1379 \mono{\color{ghost}\xmark}& %zp,x
1380 \mono{\color{ghost}\xmark}& %abs
1381 \mono{\color{ghost}\xmark}& %abs,x
1382 \mono{\color{ghost}\xmark}& %abs,y
1383 \mono{\color{ghost}\xmark}& %(zp,x)
1384 \mono{\color{ghost}\xmark}& %(zp),y
1385 \mono{\color{ghost}\xmark}& %zp,y
1386 \mono{\color{ghost}\xmark}& %rel
1387 \mono{\color{ghost}\xmark} %(abs)
1388 \\
1389
1390 \mono{SED}&
1391 \mono{\$F8}& %iMP
1392 \mono{\color{ghost}\xmark}& %#
1393 \mono{\color{ghost}\xmark}& %zp
1394 \mono{\color{ghost}\xmark}& %zp,x
1395 \mono{\color{ghost}\xmark}& %abs
1396 \mono{\color{ghost}\xmark}& %abs,x
1397 \mono{\color{ghost}\xmark}& %abs,y
1398 \mono{\color{ghost}\xmark}& %(zp,x)
1399 \mono{\color{ghost}\xmark}& %(zp),y
1400 \mono{\color{ghost}\xmark}& %zp,y
1401 \mono{\color{ghost}\xmark}& %rel
1402 \mono{\color{ghost}\xmark} %(abs)
1403 \\
1404
1405 \mono{SEI}&
1406 \mono{\$78}& %iMP
1407 \mono{\color{ghost}\xmark}& %#
1408 \mono{\color{ghost}\xmark}& %zp
1409 \mono{\color{ghost}\xmark}& %zp,x
1410 \mono{\color{ghost}\xmark}& %abs
1411 \mono{\color{ghost}\xmark}& %abs,x
1412 \mono{\color{ghost}\xmark}& %abs,y
1413 \mono{\color{ghost}\xmark}& %(zp,x)
1414 \mono{\color{ghost}\xmark}& %(zp),y
1415 \mono{\color{ghost}\xmark}& %zp,y
1416 \mono{\color{ghost}\xmark}& %rel
1417 \mono{\color{ghost}\xmark} %(abs)
1418 \\
1419
1420 \mono{SHA}&
1421 \mono{\color{ghost}\xmark}& %iMP
1422 \mono{\color{ghost}\xmark}& %#
1423 \mono{\color{ghost}\xmark}& %zp
1424 \mono{\color{ghost}\xmark}& %zp,x
1425 \mono{\color{ghost}\xmark}& %abs
1426 \mono{\color{ghost}\xmark}& %abs,x
1427 \cellcolor{illegal}\mono{\$9F}& %abs,y
1428 \mono{\color{ghost}\xmark}& %(zp,x)
1429 \cellcolor{illegal}\mono{\$93}& %(zp),y
1430 \mono{\color{ghost}\xmark}& %zp,y
1431 \mono{\color{ghost}\xmark}& %rel
1432 \mono{\color{ghost}\xmark} %(abs)
1433 \\
1434
1435 \mono{SHS}&
1436 \mono{\color{ghost}\xmark}& %iMP
1437 \mono{\color{ghost}\xmark}& %#
1438 \mono{\color{ghost}\xmark}& %zp
1439 \mono{\color{ghost}\xmark}& %zp,x
1440 \mono{\color{ghost}\xmark}& %abs
1441 \mono{\color{ghost}\xmark}& %abs,x
1442 \cellcolor{illegal}\mono{\$9B}& %abs,y
1443 \mono{\color{ghost}\xmark}& %(zp,x)
1444 \mono{\color{ghost}\xmark}& %(zp),y
1445 \mono{\color{ghost}\xmark}& %zp,y
1446 \mono{\color{ghost}\xmark}& %rel
1447 \mono{\color{ghost}\xmark} %(abs)
1448 \\
1449
1450 \mono{SHX}&
1451 \mono{\color{ghost}\xmark}& %iMP
1452 \mono{\color{ghost}\xmark}& %#
1453 \mono{\color{ghost}\xmark}& %zp
1454 \mono{\color{ghost}\xmark}& %zp,x
1455 \mono{\color{ghost}\xmark}& %abs
1456 \mono{\color{ghost}\xmark}& %abs,x
1457 \cellcolor{illegal}\mono{\$9E}& %abs,y
1458 \mono{\color{ghost}\xmark}& %(zp,x)
1459 \mono{\color{ghost}\xmark}& %(zp),y
1460 \mono{\color{ghost}\xmark}& %zp,y
1461 \mono{\color{ghost}\xmark}& %rel
1462 \mono{\color{ghost}\xmark} %(abs)
1463 \\
1464
1465 \mono{SHY}&
1466 \mono{\color{ghost}\xmark}& %iMP
1467 \mono{\color{ghost}\xmark}& %#
1468 \mono{\color{ghost}\xmark}& %zp
1469 \mono{\color{ghost}\xmark}& %zp,x
1470 \mono{\color{ghost}\xmark}& %abs
1471 \cellcolor{illegal}\mono{\$9C}& %abs,x
1472 \mono{\color{ghost}\xmark}& %abs,y
1473 \mono{\color{ghost}\xmark}& %(zp,x)
1474 \mono{\color{ghost}\xmark}& %(zp),y
1475 \mono{\color{ghost}\xmark}& %zp,y
1476 \mono{\color{ghost}\xmark}& %rel
1477 \mono{\color{ghost}\xmark} %(abs)
1478 \\
1479
1480 \mono{SLO}&
1481 \mono{\color{ghost}\xmark}& %iMP
1482 \mono{\color{ghost}\xmark}& %#
1483 \cellcolor{illegal}\mono{\$07}& %zp
1484 \cellcolor{illegal}\mono{\$17}& %zp,x
1485 \cellcolor{illegal}\mono{\$0F}& %abs
1486 \cellcolor{illegal}\mono{\$1F}& %abs,x
1487 \cellcolor{illegal}\mono{\$1B}& %abs,y
1488 \cellcolor{illegal}\mono{\$03}& %(zp,x)
1489 \cellcolor{illegal}\mono{\$13}& %(zp),y
1490 \mono{\color{ghost}\xmark}& %zp,y
1491 \mono{\color{ghost}\xmark}& %rel
1492 \mono{\color{ghost}\xmark} %(abs)
1493 \\
1494
1495 \mono{SRE}&
1496 \mono{\color{ghost}\xmark}& %iMP
1497 \mono{\color{ghost}\xmark}& %#
1498 \cellcolor{illegal}\mono{\$47}& %zp
1499 \cellcolor{illegal}\mono{\$57}& %zp,x
1500 \cellcolor{illegal}\mono{\$4F}& %abs
1501 \cellcolor{illegal}\mono{\$5F}& %abs,x
1502 \cellcolor{illegal}\mono{\$5B}& %abs,y
1503 \cellcolor{illegal}\mono{\$43}& %(zp,x)
1504 \cellcolor{illegal}\mono{\$53}& %(zp),y
1505 \mono{\color{ghost}\xmark}& %zp,y
1506 \mono{\color{ghost}\xmark}& %rel
1507 \mono{\color{ghost}\xmark} %(abs)
1508 \\
1509
1510 \mono{STA}&
1511 \mono{\color{ghost}\xmark}& %iMP
1512 \mono{\color{ghost}\xmark}& %#
1513 \mono{\$85}& %zp
1514 \mono{\$95}& %zp,x
1515 \mono{\$8D}& %abs
1516 \mono{\$9D}& %abs,x
1517 \mono{\$99}& %abs,y
1518 \mono{\$81}& %(zp,x)
1519 \mono{\$91}& %(zp),y
1520 \mono{\color{ghost}\xmark}& %zp,y
1521 \mono{\color{ghost}\xmark}& %rel
1522 \mono{\color{ghost}\xmark} %(abs)
1523 \\
1524
1525 \mono{STX}&
1526 \mono{\color{ghost}\xmark}& %iMP
1527 \mono{\color{ghost}\xmark}& %#
1528 \mono{\$86}& %zp
1529 \mono{\color{ghost}\xmark}& %zp,x
1530 \mono{\$8E}& %abs
1531 \mono{\color{ghost}\xmark}& %abs,x
1532 \mono{\color{ghost}\xmark}& %abs,y
1533 \mono{\color{ghost}\xmark}& %(zp,x)
1534 \mono{\color{ghost}\xmark}& %(zp),y
1535 \mono{\$96}& %zp,y
1536 \mono{\color{ghost}\xmark}& %rel
1537 \mono{\color{ghost}\xmark} %(abs)
1538 \\
1539
1540 \mono{STY}&
1541 \mono{\color{ghost}\xmark}& %iMP
1542 \mono{\color{ghost}\xmark}& %#
1543 \mono{\$84}& %zp
1544 \mono{\$94}& %zp,x
1545 \mono{\$8C}& %abs
1546 \mono{\color{ghost}\xmark}& %abs,x
1547 \mono{\color{ghost}\xmark}& %abs,y
1548 \mono{\color{ghost}\xmark}& %(zp,x)
1549 \mono{\color{ghost}\xmark}& %(zp),y
1550 \mono{\color{ghost}\xmark}& %zp,y
1551 \mono{\color{ghost}\xmark}& %rel
1552 \mono{\color{ghost}\xmark} %(abs)
1553 \\
1554
1555 \mono{TAX}&
1556 \mono{\$AA}& %iMP
1557 \mono{\color{ghost}\xmark}& %#
1558 \mono{\color{ghost}\xmark}& %zp
1559 \mono{\color{ghost}\xmark}& %zp,x
1560 \mono{\color{ghost}\xmark}& %abs
1561 \mono{\color{ghost}\xmark}& %abs,x
1562 \mono{\color{ghost}\xmark}& %abs,y
1563 \mono{\color{ghost}\xmark}& %(zp,x)
1564 \mono{\color{ghost}\xmark}& %(zp),y
1565 \mono{\color{ghost}\xmark}& %zp,y
1566 \mono{\color{ghost}\xmark}& %rel
1567 \mono{\color{ghost}\xmark} %(abs)
1568 \\
1569
1570 \mono{TAY}&
1571 \mono{\$A8}& %iMP
1572 \mono{\color{ghost}\xmark}& %#
1573 \mono{\color{ghost}\xmark}& %zp
1574 \mono{\color{ghost}\xmark}& %zp,x
1575 \mono{\color{ghost}\xmark}& %abs
1576 \mono{\color{ghost}\xmark}& %abs,x
1577 \mono{\color{ghost}\xmark}& %abs,y
1578 \mono{\color{ghost}\xmark}& %(zp,x)
1579 \mono{\color{ghost}\xmark}& %(zp),y
1580 \mono{\color{ghost}\xmark}& %zp,y
1581 \mono{\color{ghost}\xmark}& %rel
1582 \mono{\color{ghost}\xmark} %(abs)
1583 \\
1584
1585 \mono{TSX}&
1586 \mono{\$BA}& %iMP
1587 \mono{\color{ghost}\xmark}& %#
1588 \mono{\color{ghost}\xmark}& %zp
1589 \mono{\color{ghost}\xmark}& %zp,x
1590 \mono{\color{ghost}\xmark}& %abs
1591 \mono{\color{ghost}\xmark}& %abs,x
1592 \mono{\color{ghost}\xmark}& %abs,y
1593 \mono{\color{ghost}\xmark}& %(zp,x)
1594 \mono{\color{ghost}\xmark}& %(zp),y
1595 \mono{\color{ghost}\xmark}& %zp,y
1596 \mono{\color{ghost}\xmark}& %rel
1597 \mono{\color{ghost}\xmark} %(abs)
1598 \\
1599
1600 \mono{TXA}&
1601 \mono{\$8A}& %iMP
1602 \mono{\color{ghost}\xmark}& %#
1603 \mono{\color{ghost}\xmark}& %zp
1604 \mono{\color{ghost}\xmark}& %zp,x
1605 \mono{\color{ghost}\xmark}& %abs
1606 \mono{\color{ghost}\xmark}& %abs,x
1607 \mono{\color{ghost}\xmark}& %abs,y
1608 \mono{\color{ghost}\xmark}& %(zp,x)
1609 \mono{\color{ghost}\xmark}& %(zp),y
1610 \mono{\color{ghost}\xmark}& %zp,y
1611 \mono{\color{ghost}\xmark}& %rel
1612 \mono{\color{ghost}\xmark} %(abs)
1613 \\
1614
1615 \mono{TXS}&
1616 \mono{\$9A}& %iMP
1617 \mono{\color{ghost}\xmark}& %#
1618 \mono{\color{ghost}\xmark}& %zp
1619 \mono{\color{ghost}\xmark}& %zp,x
1620 \mono{\color{ghost}\xmark}& %abs
1621 \mono{\color{ghost}\xmark}& %abs,x
1622 \mono{\color{ghost}\xmark}& %abs,y
1623 \mono{\color{ghost}\xmark}& %(zp,x)
1624 \mono{\color{ghost}\xmark}& %(zp),y
1625 \mono{\color{ghost}\xmark}& %zp,y
1626 \mono{\color{ghost}\xmark}& %rel
1627 \mono{\color{ghost}\xmark} %(abs)
1628 \\
1629
1630
1631 \mono{TYA}&
1632 \mono{\$98}& %iMP
1633 \mono{\color{ghost}\xmark}& %#
1634 \mono{\color{ghost}\xmark}& %zp
1635 \mono{\color{ghost}\xmark}& %zp,x
1636 \mono{\color{ghost}\xmark}& %abs
1637 \mono{\color{ghost}\xmark}& %abs,x
1638 \mono{\color{ghost}\xmark}& %abs,y
1639 \mono{\color{ghost}\xmark}& %(zp,x)
1640 \mono{\color{ghost}\xmark}& %(zp),y
1641 \mono{\color{ghost}\xmark}& %zp,y
1642 \mono{\color{ghost}\xmark}& %rel
1643 \mono{\color{ghost}\xmark} %(abs)
1644 \\
1645
1646 \end{tabularx}
1647 \end{table}
1648
1649
1650 \begin{landscape}
1651
1652 \subsection{Opcode Mnemonics}
1653 \index{Processor!6502!Opcode Mnemonics}
1654 \def\arraystretch{0.95}
1655 \begin{table}[H]
1656 %\tabcolsep=0.085cm
1657 \begin{tabular}{c|ccccccccccccccccc}
1658 %ccc!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}}
1659 %\toprule
1660 %\cline{2-13}
1661 % \multicolumn{1}{c}{} &
1662 \mono{}&&\mono{\${\color{ghost}x}0}&\mono{\${\color{ghost}x}1}&\mono{\${\color{ghost}x}2}&\mono{\${\color{ghost}x}3}&\mono{\${\color{ghost}x}4}&\mono{\${\color{ghost}x}5}&\mono{\${\color{ghost}x}6}&\mono{\${\color{ghost}x}7}&\mono{\${\color{ghost}x}8}&\mono{\${\color{ghost}x}9}&\mono{\${\color{ghost}x}A}&\mono{\${\color{ghost}x}B}&\mono{\${\color{ghost}x}C}&\mono{\${\color{ghost}x}D}&\mono{\${\color{ghost}x}E}&\mono{\${\color{ghost}x}F}\\
1663 \hline
1664 \\
1665 \mono{\$0{\color{ghost}x}}&&
1666 \mono{BRK}&
1667 \mono{ORA}&
1668 \cellcolor{missing}\mono{KIL}&
1669 \cellcolor{illegal}\mono{SLO}&
1670 \cellcolor{illegal}\mono{NOP}&
1671 \mono{ORA}&
1672 \mono{ASL}&
1673 \cellcolor{illegal}\mono{SLO}&
1674 \mono{PHP}&
1675 \mono{ORA}&
1676 \mono{ASL}&
1677 \cellcolor{illegal}\mono{ANC}&
1678 \cellcolor{illegal}\mono{NOP}&
1679 \mono{ORA}&
1680 \mono{ASL}&
1681 \cellcolor{illegal}\mono{SLO}
1682 \\
1683 %\arrayrulecolor{ghost2}\hline
1684
1685 \mono{\$1{\color{ghost}x}}&&
1686 \mono{BPL}&
1687 \mono{ORA}&
1688 \cellcolor{missing}\mono{KIL}&
1689 \cellcolor{illegal}\mono{SLO}&
1690 \cellcolor{illegal}\mono{NOP}&
1691 \mono{ORA}&
1692 \mono{ASL}&
1693 \cellcolor{illegal}\mono{SLO}&
1694 \mono{CLC}&
1695 \mono{ORA}&
1696 \cellcolor{missing}\mono{NOP}&
1697 \cellcolor{illegal}\mono{SLO}&
1698 \cellcolor{illegal}\mono{NOP}&
1699 \mono{ORA}&
1700 \mono{ASL}&
1701 \cellcolor{illegal}\mono{SLO}
1702 \\
1703 %\hline
1704
1705 \mono{\$2{\color{ghost}x}}&&
1706 \mono{JSR}&
1707 \mono{AND}&
1708 \cellcolor{missing}\mono{KIL}&
1709 \cellcolor{illegal}\mono{RLA}&
1710 \mono{BIT}&
1711 \mono{AND}&
1712 \mono{ROL}&
1713 \cellcolor{illegal}\mono{RLA}&
1714 \mono{PLP}&
1715 \mono{AND}&
1716 \mono{ROL}&
1717 \cellcolor{missing}\mono{ANC}&
1718 \mono{BIT}&
1719 \mono{AND}&
1720 \mono{ROL}&
1721 \cellcolor{illegal}\mono{RLA}
1722 \\
1723 %\hline
1724
1725 \mono{\$3{\color{ghost}x}}&&
1726 \mono{BMI}&
1727 \mono{AND}&
1728 \cellcolor{missing}\mono{KIL}&
1729 \cellcolor{illegal}\mono{RLA}&
1730 \cellcolor{missing}\mono{NOP}&
1731 \mono{AND}&
1732 \mono{ROL}&
1733 \cellcolor{illegal}\mono{RLA}&
1734 \mono{SEC}&
1735 \mono{AND}&
1736 \cellcolor{missing}\mono{NOP}&
1737 \cellcolor{illegal}\mono{RLA}&
1738 \cellcolor{missing}\mono{NOP}&
1739 \mono{AND}&
1740 \mono{ROL}&
1741 \cellcolor{illegal}\mono{RLA}
1742 \\
1743 %\hline
1744
1745 \mono{\$4{\color{ghost}x}}&&
1746 \mono{RTI}&
1747 \mono{EOR}&
1748 \cellcolor{missing}\mono{KIL}&
1749 \cellcolor{illegal}\mono{SRE}&
1750 \cellcolor{missing}\mono{NOP}&
1751 \mono{EOR}&
1752 \mono{LSR}&
1753 \cellcolor{illegal}\mono{SRE}&
1754 \mono{PHA}&
1755 \mono{EOR}&
1756 \mono{LSR}&
1757 \cellcolor{illegal}\mono{ALR}&
1758 \mono{JMP}&
1759 \mono{EOR}&
1760 \mono{LSR}&
1761 \cellcolor{illegal}\mono{SRE}
1762 \\
1763 %\hline
1764
1765 \mono{\$5{\color{ghost}x}}&&
1766 \mono{BVC}&
1767 \mono{EOR}&
1768 \cellcolor{missing}\mono{KIL}&
1769 \cellcolor{illegal}\mono{SRE}&
1770 \cellcolor{missing}\mono{NOP}&
1771 \mono{EOR}&
1772 \mono{LSR}&
1773 \cellcolor{illegal}\mono{SRE}&
1774 \mono{CLI}&
1775 \mono{EOR}&
1776 \cellcolor{missing}\mono{NOP}&
1777 \cellcolor{illegal}\mono{SRE}&
1778 \cellcolor{missing}\mono{NOP}&
1779 \mono{EOR}&
1780 \mono{LSR}&
1781 \cellcolor{illegal}\mono{SRE}
1782 \\
1783 %\hline
1784
1785 \mono{\$6{\color{ghost}x}}&&
1786 \mono{RTS}&
1787 \mono{ADC}&
1788 \cellcolor{missing}\mono{KIL}&
1789 \cellcolor{illegal}\mono{RRA}&
1790 \cellcolor{missing}\mono{NOP}&
1791 \mono{ADC}&
1792 \mono{ROR}&
1793 \cellcolor{illegal}\mono{RRA}&
1794 \mono{PLA}&
1795 \mono{ADC}&
1796 \mono{ROR}&
1797 \cellcolor{illegal}\mono{ARR}&
1798 \mono{JMP}&
1799 \mono{ADC}&
1800 \mono{ROR}&
1801 \cellcolor{illegal}\mono{RRA}
1802 \\
1803 %\hline
1804
1805
1806 \mono{\$7{\color{ghost}x}}&&
1807 \mono{BVS}&
1808 \mono{ADC}&
1809 \cellcolor{missing}\mono{KIL}&
1810 \cellcolor{illegal}\mono{RRA}&
1811 \cellcolor{missing}\mono{NOP}&
1812 \mono{ADC}&
1813 \mono{ROR}&
1814 \cellcolor{illegal}\mono{RRA}&
1815 \mono{SEI}&
1816 \mono{ADC}&
1817 \cellcolor{missing}\mono{NOP}&
1818 \cellcolor{illegal}\mono{RRA}&
1819 \cellcolor{missing}\mono{NOP}&
1820 \mono{ADC}&
1821 \mono{ROR}&
1822 \cellcolor{illegal}\mono{RRA}
1823 \\
1824 %\hline
1825
1826
1827 \mono{\$8{\color{ghost}x}}&&
1828 \cellcolor{illegal}\mono{NOP}&
1829 \mono{STA}&
1830 \cellcolor{missing}\mono{NOP}&
1831 \cellcolor{illegal}\mono{SAX}&
1832 \mono{STY}&
1833 \mono{STA}&
1834 \mono{STX}&
1835 \cellcolor{illegal}\mono{SAX}&
1836 \mono{DEY}&
1837 \cellcolor{missing}\mono{NOP}&
1838 \mono{TXA}&
1839 \cellcolor{unimplemented}\mono{XAA}&
1840 \mono{STY}&
1841 \mono{STA}&
1842 \mono{STX}&
1843 \cellcolor{illegal}\mono{SAX}
1844 \\
1845 %\hline
1846
1847
1848 \mono{\$9{\color{ghost}x}}&&
1849 \mono{BCC}&
1850 \mono{STA}&
1851 \cellcolor{missing}\mono{KIL}&
1852 \cellcolor{unstablecertain}\mono{AHX}&
1853 \mono{STY}&
1854 \mono{STA}&
1855 \mono{STX}&
1856 \cellcolor{illegal}\mono{SAX}&
1857 \mono{TYA}&
1858 \mono{STA}&
1859 \mono{TXS}&
1860 \cellcolor{unstablecertain}\mono{TAS}&
1861 \cellcolor{unstablecertain}\mono{SHY}&
1862 \mono{STA}&
1863 \cellcolor{unstablecertain}\mono{SHX}&
1864 \cellcolor{unstablecertain}\mono{AHX}
1865 \\
1866 %\hline
1867
1868
1869 \mono{\$A{\color{ghost}x}}&&
1870 \mono{LDY}&
1871 \mono{LDA}&
1872 \mono{LDX}&
1873 \cellcolor{illegal}\mono{LAX}&
1874 \mono{LDY}&
1875 \mono{LDA}&
1876 \mono{LDX}&
1877 \cellcolor{illegal}\mono{LAX}&
1878 \mono{TAY}&
1879 \mono{LDA}&
1880 \mono{TAX}&
1881 \cellcolor{unimplemented}\mono{LAX}&
1882 \mono{LDY}&
1883 \mono{LDA}&
1884 \mono{LDX}&
1885 \cellcolor{illegal}\mono{LAX}
1886 \\
1887 %\hline
1888
1889
1890 \mono{\$B{\color{ghost}x}}&&
1891 \mono{BCS}&
1892 \mono{LDA}&
1893 \cellcolor{missing}\mono{KIL}&
1894 \cellcolor{illegal}\mono{LAX}&
1895 \mono{LDY}&
1896 \mono{LDA}&
1897 \mono{LDX}&
1898 \cellcolor{illegal}\mono{LAX}&
1899 \mono{CLV}&
1900 \mono{LDA}&
1901 \mono{TSX}&
1902 \cellcolor{illegal}\mono{LAS}&
1903 \mono{LDY}&
1904 \mono{LDA}&
1905 \mono{LDX}&
1906 \cellcolor{illegal}\mono{LAX}
1907 \\
1908 %\hline
1909
1910
1911 \mono{\$C{\color{ghost}x}}&&
1912 \mono{CPY}&
1913 \mono{CMP}&
1914 \cellcolor{missing}\mono{NOP}&
1915 \cellcolor{illegal}\mono{DCP}&
1916 \mono{CPY}&
1917 \mono{CMP}&
1918 \mono{DEC}&
1919 \cellcolor{illegal}\mono{DCP}&
1920 \mono{INY}&
1921 \mono{CMP}&
1922 \mono{DEX}&
1923 \cellcolor{missing}\mono{AXS}&
1924 \mono{CPY}&
1925 \mono{CMP}&
1926 \mono{DEC}&
1927 \cellcolor{illegal}\mono{DCP}
1928 \\
1929 %\hline
1930
1931
1932 \mono{\$D{\color{ghost}x}}&&
1933 \mono{BNE}&
1934 \mono{CMP}&
1935 \cellcolor{missing}\mono{KIL}&
1936 \cellcolor{illegal}\mono{DCP}&
1937 \cellcolor{missing}\mono{NOP}&
1938 \mono{CMP}&
1939 \mono{DEC}&
1940 \cellcolor{illegal}\mono{DCP}&
1941 \mono{CLD}&
1942 \mono{CMP}&
1943 \cellcolor{missing}\mono{NOP}&
1944 \cellcolor{illegal}\mono{DCP}&
1945 \cellcolor{missing}\mono{NOP}&
1946 \mono{CMP}&
1947 \mono{DEC}&
1948 \cellcolor{illegal}\mono{DCP}
1949 \\
1950 %\hline
1951
1952
1953 \mono{\$E{\color{ghost}x}}&&
1954 \mono{CPX}&
1955 \mono{SBC}&
1956 \cellcolor{missing}\mono{NOP}&
1957 \cellcolor{illegal}\mono{ISC}&
1958 \mono{CPX}&
1959 \mono{SBC}&
1960 \mono{INC}&
1961 \cellcolor{illegal}\mono{ISC}&
1962 \mono{INX}&
1963 \mono{SBC}&
1964 \mono{NOP}&
1965 \cellcolor{missing}\mono{SBC}&
1966 \mono{CPX}&
1967 \mono{SBC}&
1968 \mono{INC}&
1969 \cellcolor{illegal}\mono{ISC}
1970 \\
1971 %\hline%
1972
1973
1974 \mono{\$F{\color{ghost}x}}&&
1975 \mono{BEQ}&
1976 \mono{SBC}&
1977 \cellcolor{missing}\mono{KIL}&
1978 \cellcolor{illegal}\mono{ISC}&
1979 \cellcolor{missing}\mono{NOP}&
1980 \mono{SBC}&
1981 \mono{INC}&
1982 \cellcolor{illegal}\mono{ISC}&
1983 \mono{SED}&
1984 \mono{SBC}&
1985 \cellcolor{missing}\mono{NOP}&
1986 \cellcolor{illegal}\mono{ISC}&
1987 \cellcolor{missing}\mono{NOP}&
1988 \mono{SBC}&
1989 \mono{INC}&
1990 \cellcolor{illegal}\mono{ISC}
1991 \\
1992
1993
1994 \end{tabular}
1995 \end{table}
1996 \begin{table}[H]
1997 \begin{tabular}{ll}
1998 \begin{tabular}{ll}
1999 \end{tabular}&
2000 \begin{tabular}{ll}
2001 \cellcolor{illegal}&Stable. Supported by \dasm.\\
2002 \cellcolor{missing}&Stable. Not supported.\\
2003 \cellcolor{unstablecertain}&Unstable in some situations. Not supported.\\
2004 \cellcolor{unimplemented}&Highly unstable. Not supported.\\
2005 \end{tabular}
2006 \end{tabular}
2007
2008 \end{table}
2009 \end{landscape}
2010
2011
2012 \begin{landscape}
2013
2014 \subsection{Instruction Cycle Counts}
2015 \index{Processor!6502!Instruction Cycle Timing}
2016 \def\arraystretch{0.98}
2017 \begin{table}[H]
2018 %\tabcolsep=0.085cm
2019 \begin{tabular}{c|ccccccccccccccccc}
2020 %\begin{tabular}{c|c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}c!{\color{ghost2}\vrule}}
2021 %\toprule
2022 %\cline{2-13}
2023 % \multicolumn{1}{c}{} &
2024 \mono{}&&\mono{\${\color{ghost}x}0}&\mono{\${\color{ghost}x}1}&\mono{\${\color{ghost}x}2}&\mono{\${\color{ghost}x}3}&\mono{\${\color{ghost}x}4}&\mono{\${\color{ghost}x}5}&\mono{\${\color{ghost}x}6}&\mono{\${\color{ghost}x}7}&\mono{\${\color{ghost}x}8}&\mono{\${\color{ghost}x}9}&\mono{\${\color{ghost}x}A}&\mono{\${\color{ghost}x}B}&\mono{\${\color{ghost}x}C}&\mono{\${\color{ghost}x}D}&\mono{\${\color{ghost}x}E}&\mono{\${\color{ghost}x}F}\\
2025 \hline
2026 \\
2027 \mono{\$0{\color{ghost}x}}&&
2028 \mono{7}&
2029 \mono{6}&
2030 $\infty$&
2031 \mono{8}&
2032 \mono{3}&
2033 \mono{3}&
2034 \mono{5}&
2035 \mono{5}&
2036 \mono{3}&
2037 \mono{2}&
2038 \mono{2}&
2039 \mono{2}&
2040 \mono{4}&
2041 \mono{4}&
2042 \mono{6}&
2043 \mono{6}
2044 \\
2045 %\arrayrulecolor{ghost2}\hline
2046
2047 \mono{\$1{\color{ghost}x}}&&
2048 \mono{ 2+}&
2049 \mono{ 5+}&
2050 $\infty$&
2051 \mono{8}&
2052 \mono{4}&
2053 \mono{4}&
2054 \mono{6}&
2055 \mono{6}&
2056 \mono{2}&
2057 \mono{ 4+}&
2058 \mono{2}&
2059 \mono{7}&
2060 \mono{ 4+}&
2061 \mono{ 4+}&
2062 \mono{7}&
2063 \mono{7}
2064 \\
2065 %\hline
2066
2067 \mono{\$2{\color{ghost}x}}&&
2068 \mono{6}&
2069 \mono{6}&
2070 $\infty$&
2071 \mono{8}&
2072 \mono{3}&
2073 \mono{3}&
2074 \mono{5}&
2075 \mono{5}&
2076 \mono{4}&
2077 \mono{2}&
2078 \mono{2}&
2079 \mono{2}&
2080 \mono{4}&
2081 \mono{4}&
2082 \mono{6}&
2083 \mono{6}
2084 \\
2085 %\hline
2086
2087 \mono{\$3{\color{ghost}x}}&&
2088 \mono{ 2+}&
2089 \mono{ 5+}&
2090 $\infty$&
2091 \mono{8}&
2092 \mono{4}&
2093 \mono{4}&
2094 \mono{6}&
2095 \mono{6}&
2096 \mono{2}&
2097 \mono{ 4+}&
2098 \mono{2}&
2099 \mono{7}&
2100 \mono{ 4+}&
2101 \mono{ 4+}&
2102 \mono{7}&
2103 \mono{7}
2104 \\
2105 %\hline
2106
2107 \mono{\$4{\color{ghost}x}}&&
2108 \mono{6}&
2109 \mono{6}&
2110 $\infty$&
2111 \mono{8}&
2112 \mono{3}&
2113 \mono{3}&
2114 \mono{5}&
2115 \mono{5}&
2116 \mono{3}&
2117 \mono{2}&
2118 \mono{2}&
2119 \mono{2}&
2120 \mono{3}&
2121 \mono{4}&
2122 \mono{6}&
2123 \mono{6}
2124 \\
2125 %\hline
2126
2127 \mono{\$5{\color{ghost}x}}&&
2128 \mono{ 2+}&
2129 \mono{ 5+}&
2130 $\infty$&
2131 \mono{8}&
2132 \mono{4}&
2133 \mono{4}&
2134 \mono{6}&
2135 \mono{6}&
2136 \mono{2}&
2137 \mono{ 4+}&
2138 \mono{2}&
2139 \mono{7}&
2140 \mono{ 4+}&
2141 \mono{ 4+}&
2142 \mono{7}&
2143 \mono{7}
2144 \\
2145 %\hline
2146
2147
2148 \mono{\$6{\color{ghost}x}}&&
2149 \mono{6}&
2150 \mono{6}&
2151 $\infty$&
2152 \mono{8}&
2153 \mono{3}&
2154 \mono{3}&
2155 \mono{5}&
2156 \mono{5}&
2157 \mono{4}&
2158 \mono{3}&
2159 \mono{3}&
2160 \mono{3}&
2161 \mono{5}&
2162 \mono{4}&
2163 \mono{6}&
2164 \mono{6}
2165 \\
2166 %\hline
2167
2168
2169 \mono{\$7{\color{ghost}x}}&&
2170 \mono{ 2+}&
2171 \mono{ 5+}&
2172 $\infty$&
2173 \mono{8}&
2174 \mono{4}&
2175 \mono{4}&
2176 \mono{6}&
2177 \mono{6}&
2178 \mono{2}&
2179 \mono{ 4+}&
2180 \mono{2}&
2181 \mono{7}&
2182 \mono{ 4+}&
2183 \mono{ 4+}&
2184 \mono{7}&
2185 \mono{7}
2186 \\
2187 %\hline
2188
2189
2190 \mono{\$8{\color{ghost}x}}&&
2191 \mono{2}&
2192 \mono{6}&
2193 \mono{2}&
2194 \mono{6}&
2195 \mono{3}&
2196 \mono{3}&
2197 \mono{3}&
2198 \mono{3}&
2199 \mono{2}&
2200 \mono{2}&
2201 \mono{2}&
2202 \mono{2}&
2203 \mono{4}&
2204 \mono{4}&
2205 \mono{4}&
2206 \mono{4}
2207 \\
2208 %\hline
2209
2210
2211 \mono{\$9{\color{ghost}x}}&&
2212 \mono{ 2+}&
2213 \mono6{}&
2214 $\infty$&
2215 \mono{6}&
2216 \mono{4}&
2217 \mono{4}&
2218 \mono{4}&
2219 \mono{4}&
2220 \mono{2}&
2221 \mono{5}&
2222 \mono{2}&
2223 \mono{5}&
2224 \mono{5}&
2225 \mono{5}&
2226 \mono{5}&
2227 \mono{5}
2228 \\
2229 %\hline
2230
2231
2232 \mono{\$A{\color{ghost}x}}&&
2233 \mono{2}&
2234 \mono{6}&
2235 \mono{2}&
2236 \mono{6}&
2237 \mono{3}&
2238 \mono{3}&
2239 \mono{3}&
2240 \mono{3}&
2241 \mono{2}&
2242 \mono{2}&
2243 \mono{2}&
2244 \mono{2}&
2245 \mono{4}&
2246 \mono{4}&
2247 \mono{4}&
2248 \mono{4}
2249 \\
2250 %\hline
2251
2252
2253 \mono{\$B{\color{ghost}x}}&&
2254 \mono{ 2+}&
2255 \mono{ 5+}&
2256 $\infty$&
2257 \mono{ 5+}&
2258 \mono{4}&
2259 \mono{4}&
2260 \mono{4}&
2261 \mono{4}&
2262 \mono{2}&
2263 \mono{ 4+}&
2264 \mono{2}&
2265 \mono{ 4+}&
2266 \mono{ 4+}&
2267 \mono{ 4+}&
2268 \mono{ 4+}&
2269 \mono{ 4+}
2270 \\
2271 %\hline
2272
2273
2274 \mono{\$C{\color{ghost}x}}&&
2275 \mono{2}&
2276 \mono{6}&
2277 \mono{2}&
2278 \mono{8}&
2279 \mono{3}&
2280 \mono{3}&
2281 \mono{5}&
2282 \mono{5}&
2283 \mono{2}&
2284 \mono{2}&
2285 \mono{2}&
2286 \mono{2}&
2287 \mono{4}&
2288 \mono{4}&
2289 \mono{6}&
2290 \mono{6}
2291 \\
2292 %\hline
2293
2294
2295 \mono{\$D{\color{ghost}x}}&&
2296 \mono{ 2+}&
2297 \mono{ 5+}&
2298 $\infty$&
2299 \mono{8}&
2300 \mono{4}&
2301 \mono{4}&
2302 \mono{6}&
2303 \mono{6}&
2304 \mono{2}&
2305 \mono{ 4+}&
2306 \mono{2}&
2307 \mono{7}&
2308 \mono{ 4+}&
2309 \mono{ 4+}&
2310 \mono{7}&
2311 \mono{7}
2312 \\
2313 %\hline
2314
2315
2316 \mono{\$E{\color{ghost}x}}&&
2317 \mono{2}&
2318 \mono{6}&
2319 \mono{2}&
2320 \mono{8}&
2321 \mono{3}&
2322 \mono{3}&
2323 \mono{5}&
2324 \mono{5}&
2325 \mono{2}&
2326 \mono{2}&
2327 \mono{2}&
2328 \mono{2}&
2329 \mono{4}&
2330 \mono{4}&
2331 \mono{6}&
2332 \mono{6}
2333 \\
2334 %\hline
2335
2336
2337 \mono{\$F{\color{ghost}x}}&&
2338 \mono{ 2+}&
2339 \mono{ 5+}&
2340 $\infty$&
2341 \mono{8}&
2342 \mono{4}&
2343 \mono{4}&
2344 \mono{6}&
2345 \mono{6}&
2346 \mono{2}&
2347 \mono{ 4+}&
2348 \mono{2}&
2349 \mono{7}&
2350 \mono{ 4+}&
2351 \mono{ 4+}&
2352 \mono{7}&
2353 \mono{7}
2354 \\
2355
2356 \end{tabular}
2357 \end{table}
2358
2359 \begin{table}[H]
2360 \begin{tabular}{ll}
2361 \begin{tabular}{ll}
2362 %\cellcolor{illegal}&Illegal, but supported by \dasm.\\
2363 %\cellcolor{unimplemented}&Highly unstable. Not supported.\\
2364 %\cellcolor{unstable}&Unstable and/or not supported.\\
2365 %\cellcolor{missing}&Illegal but stable, and missing from \dasm.\\
2366 %&Use \mono{.byte} to insert opcode, operand(s) into code\\
2367 \end{tabular}&
2368 \begin{tabular}{l}
2369 (+) add 1 cycle if branch instruction performed\\
2370 (+) add 1 cycle if page boundary is crossed\\
2371 \\
2372 $\infty$ = Instruction never completes\\
2373 \end{tabular}
2374
2375 \\
2376 \end{tabular}
2377 \end{table}
2378 \end{landscape}
2379
2380
2381
2382 \iffalse
2383
2384
2385 \mono{}&
2386 \mono{\color{ghost}\xmark}& %iMP
2387 \mono{\color{ghost}\xmark}& %#
2388 \mono{\color{ghost}\xmark}& %zp
2389 \mono{\color{ghost}\xmark}& %zp,x
2390 \mono{\color{ghost}\xmark}& %abs
2391 \mono{\color{ghost}\xmark}& %abs,x
2392 \mono{\color{ghost}\xmark}& %abs,y
2393 \mono{\color{ghost}\xmark}& %(zp,x)
2394 \mono{\color{ghost}\xmark}& %(zp),y
2395 \mono{\color{ghost}\xmark}& %zp,y
2396 \mono{\color{ghost}\xmark}& %rel
2397 \mono{\color{ghost}\xmark} %(abs)
2398 \\
2399
2400 \fi
2401
2402
2403
2404
2405 \chapter{The Machines}
2406
2407 \dasm supports specific machines and processors through the provision of companion source-code files that can assist with programming each platform. These files are located in the \mono{machines} subdirectory. Support is provided for...
2408
2409 \begin{itemize}
2410 \item \nameref{machine:atari2600}
2411 \item Atari 7800
2412 \item Channel F
2413 \item 68hc11
2414 \item 68hc908
2415 \end{itemize}
2416
2417
2418 \section{Atari 2600}
2419 \label{machine:atari2600}
2420
2421 The Atari 2600 is a game console from 1978 that uses a 6507 processor. This processor is similar to the 6502 processor (supported by \dasm). The difference in the processors is the number of hardware address lines on the chips; these being 16 on the 6502, and 12 on the 6507. Thus, the 6502 can directly address 64K of memory and the 6507 only 4K of memory. From the point of view of \dasm, the machines are identical, as the 6502 and 6507 share a common instruction set.
2422
2423 For programming the Atari 2600, use \mono{PROCESSOR 6502} at the start of your program.
2424
2425 \subsection{Support Files}
2426
2427 The Atari 2600 is explicitly supported with two files generally included in most programs for that machine.
2428
2429 \subsubsection{\mono{vcs.h}}
2430
2431 Contains the standardised register definitions for the \mono{RIOT} and \mono{TIA} chips, defined with uninitialised segments. The implementation allows relocation of the \mono{TIA} base address to a shadow register address.
2432
2433 \subsubsection{\mono{macro.h}}
2434 \label{support6502}
2435
2436 Contains some useful macros.
2437
2438 \section{HD6303}
2439
2440 \subsection{Broken Opcodes Bug}
2441 \label{changelog:20200903bug}
2442 The \mono{AIM}, \mono{OIM}, \mono{EIM}, and \mono{TIM} opcodes are broken. These instructions are \textbf{three} bytes long according to the data sheets, yet in \dasm they are
2443 treated as \textbf{two} byte instructions.
2444
2445 These instructions are supposed
2446 to work as follows:
2447
2448 \begin{code}
2449 tim #$10,$C2
2450 tim #$80,$00,x
2451 \end{code}
2452
2453 So there's an immediate value \textbf{and} a zero-page address
2454 for these instructions! \dasm, however, only accepts these:
2455
2456 \begin{code}
2457 tim $10
2458 tim $10,x
2459 \end{code}
2460
2461 These opcodes simply don't fit into the "regular pattern" of 8-bit CPUs
2462 we deal with in \dasm. Fixing this will require changes to
2463 \dasm beyond just fixing the instruction table, and the parser code is not even remotely ready for this.
2464
2465 The "workaround" for now is to use macros instead of the
2466 actual instructions, see \mono{../test/broken6303hack.asm} for
2467 details.
2468