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