6502_opcodes02.html 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <META HTTP-EQUIV="content-type" CONTENT="text/html;charset=iso-8859-1">
  5. <META NAME="keywords" CONTENT="6502, 6510, 8500, 8502, opcodes, illegal opcodes, processor, mos, c64, c128, plus4, c16, c116, commodore, atari">
  6. <META NAME="author" CONTENT="Graham">
  7. <TITLE>6502/6510/8500/8502 Opcodes</TITLE>
  8. </HEAD>
  9. <BODY BGCOLOR="#FFFFFF" LINK="#4040FF">
  10. <P><FONT SIZE="+3">6502/6510/8500/8502 Opcode matrix:</FONT></P>
  11. <FONT SIZE="-1">
  12. imm = #$00<BR>
  13. zp = $00<BR>
  14. zpx = $00,X<BR>
  15. zpy = $00,Y<BR>
  16. izx = ($00,X)<BR>
  17. izy = ($00),Y<BR>
  18. abs = $0000<BR>
  19. abx = $0000,X<BR>
  20. aby = $0000,Y<BR>
  21. ind = ($0000)<BR>
  22. rel = $0000 (PC-relative)
  23. <BR><BR></FONT>
  24. <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2>
  25. <TR>
  26. <TD>&nbsp;</TD>
  27. <TD WIDTH="36"><B><FONT SIZE="+1">x0</FONT></B></TD>
  28. <TD WIDTH="36"><B><FONT SIZE="+1">x1</FONT></B></TD>
  29. <TD WIDTH="36"><B><FONT SIZE="+1">x2</FONT></B></TD>
  30. <TD WIDTH="36"><B><FONT SIZE="+1">x3</FONT></B></TD>
  31. <TD WIDTH="36"><B><FONT SIZE="+1">x4</FONT></B></TD>
  32. <TD WIDTH="36"><B><FONT SIZE="+1">x5</FONT></B></TD>
  33. <TD WIDTH="36"><B><FONT SIZE="+1">x6</FONT></B></TD>
  34. <TD WIDTH="36"><B><FONT SIZE="+1">x7</FONT></B></TD>
  35. <TD WIDTH="36"><B><FONT SIZE="+1">x8</FONT></B></TD>
  36. <TD WIDTH="36"><B><FONT SIZE="+1">x9</FONT></B></TD>
  37. <TD WIDTH="36"><B><FONT SIZE="+1">xA</FONT></B></TD>
  38. <TD WIDTH="36"><B><FONT SIZE="+1">xB</FONT></B></TD>
  39. <TD WIDTH="36"><B><FONT SIZE="+1">xC</FONT></B></TD>
  40. <TD WIDTH="36"><B><FONT SIZE="+1">xD</FONT></B></TD>
  41. <TD WIDTH="36"><B><FONT SIZE="+1">xE</FONT></B></TD>
  42. <TD WIDTH="36"><B><FONT SIZE="+1">xF</FONT></B></TD>
  43. </TR>
  44. <TR>
  45. <TD><B><FONT SIZE="+1">0x</FONT></B></TD>
  46. <TD><B><FONT SIZE="-1">BRK<BR>7</FONT></B></TD>
  47. <TD><B><FONT SIZE="-1">ORA<BR>izx 6</FONT></B></TD>
  48. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  49. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SLO<BR>izx 8</FONT></B></TD>
  50. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>zp 3</FONT></B></TD>
  51. <TD><B><FONT SIZE="-1">ORA<BR>zp 3</FONT></B></TD>
  52. <TD><B><FONT SIZE="-1">ASL<BR>zp 5</FONT></B></TD>
  53. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SLO<BR>zp 5</FONT></B></TD>
  54. <TD><B><FONT SIZE="-1">PHP<BR>3</FONT></B></TD>
  55. <TD><B><FONT SIZE="-1">ORA<BR>imm 2</FONT></B></TD>
  56. <TD><B><FONT SIZE="-1">ASL<BR>2</FONT></B></TD>
  57. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ANC<BR>imm 2</FONT></B></TD>
  58. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>abs 4</FONT></B></TD>
  59. <TD><B><FONT SIZE="-1">ORA<BR>abs 4</FONT></B></TD>
  60. <TD><B><FONT SIZE="-1">ASL<BR>abs 6</FONT></B></TD>
  61. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SLO<BR>abs 6</FONT></B></TD>
  62. </TR>
  63. <TR>
  64. <TD><B><FONT SIZE="+1">1x</FONT></B></TD>
  65. <TD><B><FONT SIZE="-1">BPL<BR>rel 2*</FONT></B></TD>
  66. <TD><B><FONT SIZE="-1">ORA<BR>izy 5*</FONT></B></TD>
  67. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  68. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SLO<BR>izy 8</FONT></B></TD>
  69. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>zpx 4</FONT></B></TD>
  70. <TD><B><FONT SIZE="-1">ORA<BR>zpx 4</FONT></B></TD>
  71. <TD><B><FONT SIZE="-1">ASL<BR>zpx 6</FONT></B></TD>
  72. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SLO<BR>zpx 6</FONT></B></TD>
  73. <TD><B><FONT SIZE="-1">CLC<BR>2</FONT></B></TD>
  74. <TD><B><FONT SIZE="-1">ORA<BR>aby 4*</FONT></B></TD>
  75. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>2</FONT></B></TD>
  76. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SLO<BR>aby 7</FONT></B></TD>
  77. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>abx 4*</FONT></B></TD>
  78. <TD><B><FONT SIZE="-1">ORA<BR>abx 4*</FONT></B></TD>
  79. <TD><B><FONT SIZE="-1">ASL<BR>abx 7</FONT></B></TD>
  80. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SLO<BR>abx 7</FONT></B></TD>
  81. </TR>
  82. <TR>
  83. <TD><B><FONT SIZE="+1">2x</FONT></B></TD>
  84. <TD><B><FONT SIZE="-1">JSR<BR>abs 6</FONT></B></TD>
  85. <TD><B><FONT SIZE="-1">AND<BR>izx 6</FONT></B></TD>
  86. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  87. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RLA<BR>izx 8</FONT></B></TD>
  88. <TD><B><FONT SIZE="-1">BIT<BR>zp 3</FONT></B></TD>
  89. <TD><B><FONT SIZE="-1">AND<BR>zp 3</FONT></B></TD>
  90. <TD><B><FONT SIZE="-1">ROL<BR>zp 5</FONT></B></TD>
  91. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RLA<BR>zp 5</FONT></B></TD>
  92. <TD><B><FONT SIZE="-1">PLP<BR>4</FONT></B></TD>
  93. <TD><B><FONT SIZE="-1">AND<BR>imm 2</FONT></B></TD>
  94. <TD><B><FONT SIZE="-1">ROL<BR>2</FONT></B></TD>
  95. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ANC<BR>imm 2</FONT></B></TD>
  96. <TD><B><FONT SIZE="-1">BIT<BR>abs 4</FONT></B></TD>
  97. <TD><B><FONT SIZE="-1">AND<BR>abs 4</FONT></B></TD>
  98. <TD><B><FONT SIZE="-1">ROL<BR>abs 6</FONT></B></TD>
  99. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RLA<BR>abs 6</FONT></B></TD>
  100. </TR>
  101. <TR>
  102. <TD><B><FONT SIZE="+1">3x</FONT></B></TD>
  103. <TD><B><FONT SIZE="-1">BMI<BR>rel 2*</FONT></B></TD>
  104. <TD><B><FONT SIZE="-1">AND<BR>izy 5*</FONT></B></TD>
  105. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  106. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RLA<BR>izy 8</FONT></B></TD>
  107. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>zpx 4</FONT></B></TD>
  108. <TD><B><FONT SIZE="-1">AND<BR>zpx 4</FONT></B></TD>
  109. <TD><B><FONT SIZE="-1">ROL<BR>zpx 6</FONT></B></TD>
  110. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RLA<BR>zpx 6</FONT></B></TD>
  111. <TD><B><FONT SIZE="-1">SEC<BR>2</FONT></B></TD>
  112. <TD><B><FONT SIZE="-1">AND<BR>aby 4*</FONT></B></TD>
  113. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>2</FONT></B></TD>
  114. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RLA<BR>aby 7</FONT></B></TD>
  115. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>abx 4*</FONT></B></TD>
  116. <TD><B><FONT SIZE="-1">AND<BR>abx 4*</FONT></B></TD>
  117. <TD><B><FONT SIZE="-1">ROL<BR>abx 7</FONT></B></TD>
  118. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RLA<BR>abx 7</FONT></B></TD>
  119. </TR>
  120. <TR>
  121. <TD><B><FONT SIZE="+1">4x</FONT></B></TD>
  122. <TD><B><FONT SIZE="-1">RTI<BR>6</FONT></B></TD>
  123. <TD><B><FONT SIZE="-1">EOR<BR>izx 6</FONT></B></TD>
  124. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  125. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SRE<BR>izx 8</FONT></B></TD>
  126. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>zp 3</FONT></B></TD>
  127. <TD><B><FONT SIZE="-1">EOR<BR>zp 3</FONT></B></TD>
  128. <TD><B><FONT SIZE="-1">LSR<BR>zp 5</FONT></B></TD>
  129. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SRE<BR>zp 5</FONT></B></TD>
  130. <TD><B><FONT SIZE="-1">PHA<BR>3</FONT></B></TD>
  131. <TD><B><FONT SIZE="-1">EOR<BR>imm 2</FONT></B></TD>
  132. <TD><B><FONT SIZE="-1">LSR<BR>2</FONT></B></TD>
  133. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ALR<BR>imm 2</FONT></B></TD>
  134. <TD><B><FONT SIZE="-1">JMP<BR>abs 3</FONT></B></TD>
  135. <TD><B><FONT SIZE="-1">EOR<BR>abs 4</FONT></B></TD>
  136. <TD><B><FONT SIZE="-1">LSR<BR>abs 6</FONT></B></TD>
  137. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SRE<BR>abs 6</FONT></B></TD>
  138. </TR>
  139. <TR>
  140. <TD><B><FONT SIZE="+1">5x</FONT></B></TD>
  141. <TD><B><FONT SIZE="-1">BVC<BR>rel 2*</FONT></B></TD>
  142. <TD><B><FONT SIZE="-1">EOR<BR>izy 5*</FONT></B></TD>
  143. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  144. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SRE<BR>izy 8</FONT></B></TD>
  145. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>zpx 4</FONT></B></TD>
  146. <TD><B><FONT SIZE="-1">EOR<BR>zpx 4</FONT></B></TD>
  147. <TD><B><FONT SIZE="-1">LSR<BR>zpx 6</FONT></B></TD>
  148. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SRE<BR>zpx 6</FONT></B></TD>
  149. <TD><B><FONT SIZE="-1">CLI<BR>2</FONT></B></TD>
  150. <TD><B><FONT SIZE="-1">EOR<BR>aby 4*</FONT></B></TD>
  151. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>2</FONT></B></TD>
  152. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SRE<BR>aby 7</FONT></B></TD>
  153. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>abx 4*</FONT></B></TD>
  154. <TD><B><FONT SIZE="-1">EOR<BR>abx 4*</FONT></B></TD>
  155. <TD><B><FONT SIZE="-1">LSR<BR>abx 7</FONT></B></TD>
  156. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SRE<BR>abx 7</FONT></B></TD>
  157. </TR>
  158. <TR>
  159. <TD><B><FONT SIZE="+1">6x</FONT></B></TD>
  160. <TD><B><FONT SIZE="-1">RTS<BR>6</FONT></B></TD>
  161. <TD><B><FONT SIZE="-1">ADC<BR>izx 6</FONT></B></TD>
  162. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  163. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RRA<BR>izx 8</FONT></B></TD>
  164. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>zp 3</FONT></B></TD>
  165. <TD><B><FONT SIZE="-1">ADC<BR>zp 3</FONT></B></TD>
  166. <TD><B><FONT SIZE="-1">ROR<BR>zp 5</FONT></B></TD>
  167. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RRA<BR>zp 5</FONT></B></TD>
  168. <TD><B><FONT SIZE="-1">PLA<BR>4</FONT></B></TD>
  169. <TD><B><FONT SIZE="-1">ADC<BR>imm 2</FONT></B></TD>
  170. <TD><B><FONT SIZE="-1">ROR<BR>2</FONT></B></TD>
  171. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ARR<BR>imm 2</FONT></B></TD>
  172. <TD><B><FONT SIZE="-1">JMP<BR>ind 5</FONT></B></TD>
  173. <TD><B><FONT SIZE="-1">ADC<BR>abs 4</FONT></B></TD>
  174. <TD><B><FONT SIZE="-1">ROR<BR>abs 6</FONT></B></TD>
  175. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RRA<BR>abs 6</FONT></B></TD>
  176. </TR>
  177. <TR>
  178. <TD><B><FONT SIZE="+1">7x</FONT></B></TD>
  179. <TD><B><FONT SIZE="-1">BVS<BR>rel 2*</FONT></B></TD>
  180. <TD><B><FONT SIZE="-1">ADC<BR>izy 5*</FONT></B></TD>
  181. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  182. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RRA<BR>izy 8</FONT></B></TD>
  183. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>zpx 4</FONT></B></TD>
  184. <TD><B><FONT SIZE="-1">ADC<BR>zpx 4</FONT></B></TD>
  185. <TD><B><FONT SIZE="-1">ROR<BR>zpx 6</FONT></B></TD>
  186. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RRA<BR>zpx 6</FONT></B></TD>
  187. <TD><B><FONT SIZE="-1">SEI<BR>2</FONT></B></TD>
  188. <TD><B><FONT SIZE="-1">ADC<BR>aby 4*</FONT></B></TD>
  189. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>2</FONT></B></TD>
  190. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RRA<BR>aby 7</FONT></B></TD>
  191. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>abx 4*</FONT></B></TD>
  192. <TD><B><FONT SIZE="-1">ADC<BR>abx 4*</FONT></B></TD>
  193. <TD><B><FONT SIZE="-1">ROR<BR>abx 7</FONT></B></TD>
  194. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">RRA<BR>abx 7</FONT></B></TD>
  195. </TR>
  196. <TR>
  197. <TD><B><FONT SIZE="+1">8x</FONT></B></TD>
  198. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>imm 2</FONT></B></TD>
  199. <TD><B><FONT SIZE="-1">STA<BR>izx 6</FONT></B></TD>
  200. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>imm 2</FONT></B></TD>
  201. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SAX<BR>izx 6</FONT></B></TD>
  202. <TD><B><FONT SIZE="-1">STY<BR>zp 3</FONT></B></TD>
  203. <TD><B><FONT SIZE="-1">STA<BR>zp 3</FONT></B></TD>
  204. <TD><B><FONT SIZE="-1">STX<BR>zp 3</FONT></B></TD>
  205. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SAX<BR>zp 3</FONT></B></TD>
  206. <TD><B><FONT SIZE="-1">DEY<BR>2</FONT></B></TD>
  207. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>imm 2</FONT></B></TD>
  208. <TD><B><FONT SIZE="-1">TXA<BR>2</FONT></B></TD>
  209. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1" COLOR="#FF0000"><I>XAA<BR>imm 2</I></FONT></B></TD>
  210. <TD><B><FONT SIZE="-1">STY<BR>abs 4</FONT></B></TD>
  211. <TD><B><FONT SIZE="-1">STA<BR>abs 4</FONT></B></TD>
  212. <TD><B><FONT SIZE="-1">STX<BR>abs 4</FONT></B></TD>
  213. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SAX<BR>abs 4</FONT></B></TD>
  214. </TR>
  215. <TR>
  216. <TD><B><FONT SIZE="+1">9x</FONT></B></TD>
  217. <TD><B><FONT SIZE="-1">BCC<BR>rel 2*</FONT></B></TD>
  218. <TD><B><FONT SIZE="-1">STA<BR>izy 6</FONT></B></TD>
  219. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  220. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1" COLOR="#0000FF"><I>AHX<BR>izy 6</I></FONT></B></TD>
  221. <TD><B><FONT SIZE="-1">STY<BR>zpx 4</FONT></B></TD>
  222. <TD><B><FONT SIZE="-1">STA<BR>zpx 4</FONT></B></TD>
  223. <TD><B><FONT SIZE="-1">STX<BR>zpy 4</FONT></B></TD>
  224. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SAX<BR>zpy 4</FONT></B></TD>
  225. <TD><B><FONT SIZE="-1">TYA<BR>2</FONT></B></TD>
  226. <TD><B><FONT SIZE="-1">STA<BR>aby 5</FONT></B></TD>
  227. <TD><B><FONT SIZE="-1">TXS<BR>2</FONT></B></TD>
  228. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1" COLOR="#0000FF"><I>TAS<BR>aby 5</I></FONT></B></TD>
  229. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1" COLOR="#0000FF"><I>SHY<BR>abx 5</I></FONT></B></TD>
  230. <TD><B><FONT SIZE="-1">STA<BR>abx 5</FONT></B></TD>
  231. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1" COLOR="#0000FF"><I>SHX<BR>aby 5</I></FONT></B></TD>
  232. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1" COLOR="#0000FF"><I>AHX<BR>aby 5</I></FONT></B></TD>
  233. </TR>
  234. <TR>
  235. <TD><B><FONT SIZE="+1">Ax</FONT></B></TD>
  236. <TD><B><FONT SIZE="-1">LDY<BR>imm 2</FONT></B></TD>
  237. <TD><B><FONT SIZE="-1">LDA<BR>izx 6</FONT></B></TD>
  238. <TD><B><FONT SIZE="-1">LDX<BR>imm 2</FONT></B></TD>
  239. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">LAX<BR>izx 6</FONT></B></TD>
  240. <TD><B><FONT SIZE="-1">LDY<BR>zp 3</FONT></B></TD>
  241. <TD><B><FONT SIZE="-1">LDA<BR>zp 3</FONT></B></TD>
  242. <TD><B><FONT SIZE="-1">LDX<BR>zp 3</FONT></B></TD>
  243. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">LAX<BR>zp 3</FONT></B></TD>
  244. <TD><B><FONT SIZE="-1">TAY<BR>2</FONT></B></TD>
  245. <TD><B><FONT SIZE="-1">LDA<BR>imm 2</FONT></B></TD>
  246. <TD><B><FONT SIZE="-1">TAX<BR>2</FONT></B></TD>
  247. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1" COLOR="#FF0000"><I>LAX<BR>imm 2</I></FONT></B></TD>
  248. <TD><B><FONT SIZE="-1">LDY<BR>abs 4</FONT></B></TD>
  249. <TD><B><FONT SIZE="-1">LDA<BR>abs 4</FONT></B></TD>
  250. <TD><B><FONT SIZE="-1">LDX<BR>abs 4</FONT></B></TD>
  251. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">LAX<BR>abs 4</FONT></B></TD>
  252. </TR>
  253. <TR>
  254. <TD><B><FONT SIZE="+1">Bx</FONT></B></TD>
  255. <TD><B><FONT SIZE="-1">BCS<BR>rel 2*</FONT></B></TD>
  256. <TD><B><FONT SIZE="-1">LDA<BR>izy 5*</FONT></B></TD>
  257. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  258. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">LAX<BR>izy 5*</FONT></B></TD>
  259. <TD><B><FONT SIZE="-1">LDY<BR>zpx 4</FONT></B></TD>
  260. <TD><B><FONT SIZE="-1">LDA<BR>zpx 4</FONT></B></TD>
  261. <TD><B><FONT SIZE="-1">LDX<BR>zpy 4</FONT></B></TD>
  262. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">LAX<BR>zpy 4</FONT></B></TD>
  263. <TD><B><FONT SIZE="-1">CLV<BR>2</FONT></B></TD>
  264. <TD><B><FONT SIZE="-1">LDA<BR>aby 4*</FONT></B></TD>
  265. <TD><B><FONT SIZE="-1">TSX<BR>2</FONT></B></TD>
  266. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">LAS<BR>aby 4*</FONT></B></TD>
  267. <TD><B><FONT SIZE="-1">LDY<BR>abx 4*</FONT></B></TD>
  268. <TD><B><FONT SIZE="-1">LDA<BR>abx 4*</FONT></B></TD>
  269. <TD><B><FONT SIZE="-1">LDX<BR>aby 4*</FONT></B></TD>
  270. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">LAX<BR>aby 4*</FONT></B></TD>
  271. </TR>
  272. <TR>
  273. <TD><B><FONT SIZE="+1">Cx</FONT></B></TD>
  274. <TD><B><FONT SIZE="-1">CPY<BR>imm 2</FONT></B></TD>
  275. <TD><B><FONT SIZE="-1">CMP<BR>izx 6</FONT></B></TD>
  276. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>imm 2</FONT></B></TD>
  277. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">DCP<BR>izx 8</FONT></B></TD>
  278. <TD><B><FONT SIZE="-1">CPY<BR>zp 3</FONT></B></TD>
  279. <TD><B><FONT SIZE="-1">CMP<BR>zp 3</FONT></B></TD>
  280. <TD><B><FONT SIZE="-1">DEC<BR>zp 5</FONT></B></TD>
  281. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">DCP<BR>zp 5</FONT></B></TD>
  282. <TD><B><FONT SIZE="-1">INY<BR>2</FONT></B></TD>
  283. <TD><B><FONT SIZE="-1">CMP<BR>imm 2</FONT></B></TD>
  284. <TD><B><FONT SIZE="-1">DEX<BR>2</FONT></B></TD>
  285. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">AXS<BR>imm 2</FONT></B></TD>
  286. <TD><B><FONT SIZE="-1">CPY<BR>abs 4</FONT></B></TD>
  287. <TD><B><FONT SIZE="-1">CMP<BR>abs 4</FONT></B></TD>
  288. <TD><B><FONT SIZE="-1">DEC<BR>abs 6</FONT></B></TD>
  289. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">DCP<BR>abs 6</FONT></B></TD>
  290. </TR>
  291. <TR>
  292. <TD><B><FONT SIZE="+1">Dx</FONT></B></TD>
  293. <TD><B><FONT SIZE="-1">BNE<BR>rel 2*</FONT></B></TD>
  294. <TD><B><FONT SIZE="-1">CMP<BR>izy 5*</FONT></B></TD>
  295. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  296. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">DCP<BR>izy 8</FONT></B></TD>
  297. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>zpx 4</FONT></B></TD>
  298. <TD><B><FONT SIZE="-1">CMP<BR>zpx 4</FONT></B></TD>
  299. <TD><B><FONT SIZE="-1">DEC<BR>zpx 6</FONT></B></TD>
  300. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">DCP<BR>zpx 6</FONT></B></TD>
  301. <TD><B><FONT SIZE="-1">CLD<BR>2</FONT></B></TD>
  302. <TD><B><FONT SIZE="-1">CMP<BR>aby 4*</FONT></B></TD>
  303. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>2</FONT></B></TD>
  304. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">DCP<BR>aby 7</FONT></B></TD>
  305. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>abx 4*</FONT></B></TD>
  306. <TD><B><FONT SIZE="-1">CMP<BR>abx 4*</FONT></B></TD>
  307. <TD><B><FONT SIZE="-1">DEC<BR>abx 7</FONT></B></TD>
  308. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">DCP<BR>abx 7</FONT></B></TD>
  309. </TR>
  310. <TR>
  311. <TD><B><FONT SIZE="+1">Ex</FONT></B></TD>
  312. <TD><B><FONT SIZE="-1">CPX<BR>imm 2</FONT></B></TD>
  313. <TD><B><FONT SIZE="-1">SBC<BR>izx 6</FONT></B></TD>
  314. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>imm 2</FONT></B></TD>
  315. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ISC<BR>izx 8</FONT></B></TD>
  316. <TD><B><FONT SIZE="-1">CPX<BR>zp 3</FONT></B></TD>
  317. <TD><B><FONT SIZE="-1">SBC<BR>zp 3</FONT></B></TD>
  318. <TD><B><FONT SIZE="-1">INC<BR>zp 5</FONT></B></TD>
  319. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ISC<BR>zp 5</FONT></B></TD>
  320. <TD><B><FONT SIZE="-1">INX<BR>2</FONT></B></TD>
  321. <TD><B><FONT SIZE="-1">SBC<BR>imm 2</FONT></B></TD>
  322. <TD><B><FONT SIZE="-1">NOP<BR>2</FONT></B></TD>
  323. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">SBC<BR>imm 2</FONT></B></TD>
  324. <TD><B><FONT SIZE="-1">CPX<BR>abs 4</FONT></B></TD>
  325. <TD><B><FONT SIZE="-1">SBC<BR>abs 4</FONT></B></TD>
  326. <TD><B><FONT SIZE="-1">INC<BR>abs 6</FONT></B></TD>
  327. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ISC<BR>abs 6</FONT></B></TD>
  328. </TR>
  329. <TR>
  330. <TD><B><FONT SIZE="+1">Fx</FONT></B></TD>
  331. <TD><B><FONT SIZE="-1">BEQ<BR>rel 2*</FONT></B></TD>
  332. <TD><B><FONT SIZE="-1">SBC<BR>izy 5*</FONT></B></TD>
  333. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">KIL</FONT></B></TD>
  334. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ISC<BR>izy 8</FONT></B></TD>
  335. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>zpx 4</FONT></B></TD>
  336. <TD><B><FONT SIZE="-1">SBC<BR>zpx 4</FONT></B></TD>
  337. <TD><B><FONT SIZE="-1">INC<BR>zpx 6</FONT></B></TD>
  338. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ISC<BR>zpx 6</FONT></B></TD>
  339. <TD><B><FONT SIZE="-1">SED<BR>2</FONT></B></TD>
  340. <TD><B><FONT SIZE="-1">SBC<BR>aby 4*</FONT></B></TD>
  341. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>2</FONT></B></TD>
  342. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ISC<BR>aby 7</FONT></B></TD>
  343. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">NOP<BR>abx 4*</FONT></B></TD>
  344. <TD><B><FONT SIZE="-1">SBC<BR>abx 4*</FONT></B></TD>
  345. <TD><B><FONT SIZE="-1">INC<BR>abx 7</FONT></B></TD>
  346. <TD BGCOLOR="#E0E0E0"><B><FONT SIZE="-1">ISC<BR>abx 7</FONT></B></TD>
  347. </TR>
  348. </TABLE>
  349. <FONT SIZE="-1"><BR>
  350. "*" : add 1 cycle if page boundary is crossed.<BR>
  351. add 1 cycle on branches if taken.<BR>
  352. <BR>
  353. <BR></FONT>
  354. <FONT SIZE="+3">Logical and arithmetic commands:</FONT>
  355. <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2>
  356. <TR>
  357. <TD WIDTH="48"><FONT SIZE="-1">Opcode</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">imp</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">imm</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">zp</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">zpx</FONT></TD>
  358. <TD WIDTH="28"><FONT SIZE="-1">zpy</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">izx</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">izy</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">abs</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">abx</FONT></TD>
  359. <TD WIDTH="28"><FONT SIZE="-1">aby</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">ind</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">rel</FONT></TD><TD WIDTH=176><FONT SIZE="-1">Function</FONT></TD>
  360. <TD WIDTH="9"><FONT SIZE="-1">N</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">V</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">B</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">D</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">I</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">Z</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">C</FONT></TD>
  361. </TR>
  362. <TR>
  363. <TD><FONT SIZE="-1">ORA</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$09</FONT></TD><TD><FONT SIZE="-1">$05</FONT></TD><TD><FONT SIZE="-1">$15</FONT></TD>
  364. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$01</FONT></TD><TD><FONT SIZE="-1">$11</FONT></TD><TD><FONT SIZE="-1">$0D</FONT></TD><TD><FONT SIZE="-1">$1D</FONT></TD>
  365. <TD><FONT SIZE="-1">$19</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=A or {adr}</FONT></TD>
  366. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  367. </TR>
  368. <TR>
  369. <TD><FONT SIZE="-1">AND</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$29</FONT></TD><TD><FONT SIZE="-1">$25</FONT></TD><TD><FONT SIZE="-1">$35</FONT></TD>
  370. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$21</FONT></TD><TD><FONT SIZE="-1">$31</FONT></TD><TD><FONT SIZE="-1">$2D</FONT></TD><TD><FONT SIZE="-1">$3D</FONT></TD>
  371. <TD><FONT SIZE="-1">$39</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=A&{adr}</FONT></TD>
  372. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  373. </TR>
  374. <TR>
  375. <TD><FONT SIZE="-1">EOR</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$49</FONT></TD><TD><FONT SIZE="-1">$45</FONT></TD><TD><FONT SIZE="-1">$55</FONT></TD>
  376. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$41</FONT></TD><TD><FONT SIZE="-1">$51</FONT></TD><TD><FONT SIZE="-1">$4D</FONT></TD><TD><FONT SIZE="-1">$5D</FONT></TD>
  377. <TD><FONT SIZE="-1">$59</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=A exor {adr}</FONT></TD>
  378. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  379. </TR>
  380. <TR>
  381. <TD><FONT SIZE="-1">ADC</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$69</FONT></TD><TD><FONT SIZE="-1">$65</FONT></TD><TD><FONT SIZE="-1">$75</FONT></TD>
  382. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$61</FONT></TD><TD><FONT SIZE="-1">$71</FONT></TD><TD><FONT SIZE="-1">$6D</FONT></TD><TD><FONT SIZE="-1">$7D</FONT></TD>
  383. <TD><FONT SIZE="-1">$79</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=A+{adr}</FONT></TD>
  384. <TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  385. </TR>
  386. <TR>
  387. <TD><FONT SIZE="-1">SBC</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$E9</FONT></TD><TD><FONT SIZE="-1">$E5</FONT></TD><TD><FONT SIZE="-1">$F5</FONT></TD>
  388. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$E1</FONT></TD><TD><FONT SIZE="-1">$F1</FONT></TD><TD><FONT SIZE="-1">$ED</FONT></TD><TD><FONT SIZE="-1">$FD</FONT></TD>
  389. <TD><FONT SIZE="-1">$F9</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=A-{adr}</FONT></TD>
  390. <TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  391. </TR>
  392. <TR>
  393. <TD><FONT SIZE="-1">CMP</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$C9</FONT></TD><TD><FONT SIZE="-1">$C5</FONT></TD><TD><FONT SIZE="-1">$D5</FONT></TD>
  394. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$C1</FONT></TD><TD><FONT SIZE="-1">$D1</FONT></TD><TD><FONT SIZE="-1">$CD</FONT></TD><TD><FONT SIZE="-1">$DD</FONT></TD>
  395. <TD><FONT SIZE="-1">$D9</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A-{adr}</FONT></TD>
  396. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  397. </TR>
  398. <TR>
  399. <TD><FONT SIZE="-1">CPX</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$E0</FONT></TD><TD><FONT SIZE="-1">$E4</FONT></TD><TD>&nbsp;</TD>
  400. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$EC</FONT></TD><TD>&nbsp;</TD>
  401. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">X-{adr}</FONT></TD>
  402. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  403. </TR>
  404. <TR>
  405. <TD><FONT SIZE="-1">CPY</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$C0</FONT></TD><TD><FONT SIZE="-1">$C4</FONT></TD><TD>&nbsp;</TD>
  406. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$CC</FONT></TD><TD>&nbsp;</TD>
  407. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">Y-{adr}</FONT></TD>
  408. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  409. </TR>
  410. <TR>
  411. <TD><FONT SIZE="-1">DEC</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$C6</FONT></TD><TD><FONT SIZE="-1">$D6</FONT></TD>
  412. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$CE</FONT></TD><TD><FONT SIZE="-1">$DE</FONT></TD>
  413. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}-1</FONT></TD>
  414. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  415. </TR>
  416. <TR>
  417. <TD><FONT SIZE="-1">DEX</FONT></TD><TD><FONT SIZE="-1">$CA</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  418. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  419. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">X:=X-1</FONT></TD>
  420. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  421. </TR>
  422. <TR>
  423. <TD><FONT SIZE="-1">DEY</FONT></TD><TD><FONT SIZE="-1">$88</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  424. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  425. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">Y:=Y-1</FONT></TD>
  426. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  427. </TR>
  428. <TR>
  429. <TD><FONT SIZE="-1">INC</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$E6</FONT></TD><TD><FONT SIZE="-1">$F6</FONT></TD>
  430. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$EE</FONT></TD><TD><FONT SIZE="-1">$FE</FONT></TD>
  431. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}+1</FONT></TD>
  432. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  433. </TR>
  434. <TR>
  435. <TD><FONT SIZE="-1">INX</FONT></TD><TD><FONT SIZE="-1">$E8</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  436. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  437. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">X:=X+1</FONT></TD>
  438. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  439. </TR>
  440. <TR>
  441. <TD><FONT SIZE="-1">INY</FONT></TD><TD><FONT SIZE="-1">$C8</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  442. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  443. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">Y:=Y+1</FONT></TD>
  444. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  445. </TR>
  446. <TR>
  447. <TD><FONT SIZE="-1">ASL</FONT></TD><TD><FONT SIZE="-1">$0A</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$06</FONT></TD><TD><FONT SIZE="-1">$16</FONT></TD>
  448. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$0E</FONT></TD><TD><FONT SIZE="-1">$1E</FONT></TD>
  449. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}*2</FONT></TD>
  450. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  451. </TR>
  452. <TR>
  453. <TD><FONT SIZE="-1">ROL</FONT></TD><TD><FONT SIZE="-1">$2A</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$26</FONT></TD><TD><FONT SIZE="-1">$36</FONT></TD>
  454. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$2E</FONT></TD><TD><FONT SIZE="-1">$3E</FONT></TD>
  455. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}*2+C</FONT></TD>
  456. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  457. </TR>
  458. <TR>
  459. <TD><FONT SIZE="-1">LSR</FONT></TD><TD><FONT SIZE="-1">$4A</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$46</FONT></TD><TD><FONT SIZE="-1">$56</FONT></TD>
  460. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$4E</FONT></TD><TD><FONT SIZE="-1">$5E</FONT></TD>
  461. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}/2</FONT></TD>
  462. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  463. </TR>
  464. <TR>
  465. <TD><FONT SIZE="-1">ROR</FONT></TD><TD><FONT SIZE="-1">$6A</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$66</FONT></TD><TD><FONT SIZE="-1">$76</FONT></TD>
  466. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$6E</FONT></TD><TD><FONT SIZE="-1">$7E</FONT></TD>
  467. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}/2+C*128</FONT></TD>
  468. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  469. </TR>
  470. </TABLE>
  471. <BR><BR>
  472. <FONT SIZE="+3">Move commands:</FONT>
  473. <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2>
  474. <TR>
  475. <TD WIDTH="48"><FONT SIZE="-1">Opcode</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">imp</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">imm</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">zp</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">zpx</FONT></TD>
  476. <TD WIDTH="28"><FONT SIZE="-1">zpy</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">izx</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">izy</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">abs</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">abx</FONT></TD>
  477. <TD WIDTH="28"><FONT SIZE="-1">aby</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">ind</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">rel</FONT></TD><TD WIDTH=176><FONT SIZE="-1">Function</FONT></TD>
  478. <TD WIDTH="9"><FONT SIZE="-1">N</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">V</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">B</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">D</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">I</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">Z</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">C</FONT></TD>
  479. </TR>
  480. <TR>
  481. <TD><FONT SIZE="-1">LDA</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$A9</FONT></TD><TD><FONT SIZE="-1">$A5</FONT></TD><TD><FONT SIZE="-1">$B5</FONT></TD>
  482. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$A1</FONT></TD><TD><FONT SIZE="-1">$B1</FONT></TD><TD><FONT SIZE="-1">$AD</FONT></TD><TD><FONT SIZE="-1">$BD</FONT></TD>
  483. <TD><FONT SIZE="-1">$B9</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:={adr}</FONT></TD>
  484. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  485. </TR>
  486. <TR>
  487. <TD><FONT SIZE="-1">STA</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$85</FONT></TD><TD><FONT SIZE="-1">$95</FONT></TD>
  488. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$81</FONT></TD><TD><FONT SIZE="-1">$91</FONT></TD><TD><FONT SIZE="-1">$8D</FONT></TD><TD><FONT SIZE="-1">$9D</FONT></TD>
  489. <TD><FONT SIZE="-1">$99</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:=A</FONT></TD>
  490. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  491. </TR>
  492. <TR>
  493. <TD><FONT SIZE="-1">LDX</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$A2</FONT></TD><TD><FONT SIZE="-1">$A6</FONT></TD><TD>&nbsp;</TD>
  494. <TD><FONT SIZE="-1">$B6</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$AE</FONT></TD><TD>&nbsp;</TD>
  495. <TD><FONT SIZE="-1">$BE</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">X:={adr}</FONT></TD>
  496. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  497. </TR>
  498. <TR>
  499. <TD><FONT SIZE="-1">STX</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$86</FONT></TD><TD>&nbsp;</TD>
  500. <TD><FONT SIZE="-1">$96</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$8E</FONT></TD><TD>&nbsp;</TD>
  501. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:=X</FONT></TD>
  502. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  503. </TR>
  504. <TR>
  505. <TD><FONT SIZE="-1">LDY</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$A0</FONT></TD><TD><FONT SIZE="-1">$A4</FONT></TD><TD><FONT SIZE="-1">$B4</FONT></TD>
  506. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$AC</FONT></TD><TD><FONT SIZE="-1">$BC</FONT></TD>
  507. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">Y:={adr}</FONT></TD>
  508. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  509. </TR>
  510. <TR>
  511. <TD><FONT SIZE="-1">STY</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$84</FONT></TD><TD><FONT SIZE="-1">$94</FONT></TD>
  512. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$8C</FONT></TD><TD>&nbsp;</TD>
  513. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:=Y</FONT></TD>
  514. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  515. </TR>
  516. <TR>
  517. <TD><FONT SIZE="-1">TAX</FONT></TD><TD><FONT SIZE="-1">$AA</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  518. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  519. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">X:=A</FONT></TD>
  520. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  521. </TR>
  522. <TR>
  523. <TD><FONT SIZE="-1">TXA</FONT></TD><TD><FONT SIZE="-1">$8A</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  524. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  525. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=X</FONT></TD>
  526. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  527. </TR>
  528. <TR>
  529. <TD><FONT SIZE="-1">TAY</FONT></TD><TD><FONT SIZE="-1">$A8</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  530. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  531. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">Y:=A</FONT></TD>
  532. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  533. </TR>
  534. <TR>
  535. <TD><FONT SIZE="-1">TYA</FONT></TD><TD><FONT SIZE="-1">$98</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  536. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  537. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=Y</FONT></TD>
  538. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  539. </TR>
  540. <TR>
  541. <TD><FONT SIZE="-1">TSX</FONT></TD><TD><FONT SIZE="-1">$BA</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  542. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  543. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">X:=S</FONT></TD>
  544. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  545. </TR>
  546. <TR>
  547. <TD><FONT SIZE="-1">TXS</FONT></TD><TD><FONT SIZE="-1">$9A</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  548. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  549. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">S:=X</FONT></TD>
  550. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  551. </TR>
  552. <TR>
  553. <TD><FONT SIZE="-1">PLA</FONT></TD><TD><FONT SIZE="-1">$68</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  554. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  555. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=+(S)</FONT></TD>
  556. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  557. </TR>
  558. <TR>
  559. <TD><FONT SIZE="-1">PHA</FONT></TD><TD><FONT SIZE="-1">$48</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  560. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  561. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">(S)-:=A</FONT></TD>
  562. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  563. </TR>
  564. <TR>
  565. <TD><FONT SIZE="-1">PLP</FONT></TD><TD><FONT SIZE="-1">$28</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  566. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  567. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">P:=+(S)</FONT></TD>
  568. <TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  569. </TR>
  570. <TR>
  571. <TD><FONT SIZE="-1">PHP</FONT></TD><TD><FONT SIZE="-1">$08</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  572. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  573. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">(S)-:=P</FONT></TD>
  574. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  575. </TR>
  576. </TABLE>
  577. <BR><BR>
  578. <FONT SIZE="+3">Jump/Flag commands:</FONT>
  579. <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2>
  580. <TR>
  581. <TD WIDTH="48"><FONT SIZE="-1">Opcode</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">imp</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">imm</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">zp</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">zpx</FONT></TD>
  582. <TD WIDTH="28"><FONT SIZE="-1">zpy</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">izx</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">izy</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">abs</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">abx</FONT></TD>
  583. <TD WIDTH="28"><FONT SIZE="-1">aby</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">ind</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">rel</FONT></TD><TD WIDTH=176><FONT SIZE="-1">Function</FONT></TD>
  584. <TD WIDTH="9"><FONT SIZE="-1">N</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">V</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">B</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">D</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">I</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">Z</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">C</FONT></TD>
  585. </TR>
  586. <TR>
  587. <TD><FONT SIZE="-1">BPL</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  588. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  589. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$10</FONT></TD><TD><FONT SIZE="-1">branch on N=0</FONT></TD>
  590. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  591. </TR>
  592. <TR>
  593. <TD><FONT SIZE="-1">BMI</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  594. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  595. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$30</FONT></TD><TD><FONT SIZE="-1">branch on N=1</FONT></TD>
  596. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  597. </TR>
  598. <TR>
  599. <TD><FONT SIZE="-1">BVC</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  600. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  601. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$50</FONT></TD><TD><FONT SIZE="-1">branch on V=0</FONT></TD>
  602. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  603. </TR>
  604. <TR>
  605. <TD><FONT SIZE="-1">BVS</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  606. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  607. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$70</FONT></TD><TD><FONT SIZE="-1">branch on V=1</FONT></TD>
  608. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  609. </TR>
  610. <TR>
  611. <TD><FONT SIZE="-1">BCC</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  612. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  613. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$90</FONT></TD><TD><FONT SIZE="-1">branch on C=0</FONT></TD>
  614. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  615. </TR>
  616. <TR>
  617. <TD><FONT SIZE="-1">BCS</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  618. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  619. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$B0</FONT></TD><TD><FONT SIZE="-1">branch on C=1</FONT></TD>
  620. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  621. </TR>
  622. <TR>
  623. <TD><FONT SIZE="-1">BNE</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  624. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  625. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$D0</FONT></TD><TD><FONT SIZE="-1">branch on Z=0</FONT></TD>
  626. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  627. </TR>
  628. <TR>
  629. <TD><FONT SIZE="-1">BEQ</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  630. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  631. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$F0</FONT></TD><TD><FONT SIZE="-1">branch on Z=1</FONT></TD>
  632. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  633. </TR>
  634. <TR>
  635. <TD><FONT SIZE="-1">BRK</FONT></TD><TD><FONT SIZE="-1">$00</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  636. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  637. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">(S)-:=PC,P PC:=($FFFE)</FONT></TD>
  638. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">1</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">1</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  639. </TR>
  640. <TR>
  641. <TD><FONT SIZE="-1">RTI</FONT></TD><TD><FONT SIZE="-1">$40</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  642. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  643. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">P,PC:=+(S)</FONT></TD>
  644. <TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  645. </TR>
  646. <TR>
  647. <TD><FONT SIZE="-1">JSR</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  648. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$20</FONT></TD><TD>&nbsp;</TD>
  649. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">(S)-:=PC PC:={adr}</FONT></TD>
  650. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  651. </TR>
  652. <TR>
  653. <TD><FONT SIZE="-1">RTS</FONT></TD><TD><FONT SIZE="-1">$60</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  654. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  655. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">PC:=+(S)</FONT></TD>
  656. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  657. </TR>
  658. <TR>
  659. <TD><FONT SIZE="-1">JMP</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  660. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$4C</FONT></TD><TD>&nbsp;</TD>
  661. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$6C</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">PC:={adr}</FONT></TD>
  662. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  663. </TR>
  664. <TR>
  665. <TD><FONT SIZE="-1">BIT</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$24</FONT></TD><TD>&nbsp;</TD>
  666. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$2C</FONT></TD><TD>&nbsp;</TD>
  667. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">N:=b7 V:=b6 Z:=A&{adr}</FONT></TD>
  668. <TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  669. </TR>
  670. <TR>
  671. <TD><FONT SIZE="-1">CLC</FONT></TD><TD><FONT SIZE="-1">$18</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  672. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  673. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">C:=0</FONT></TD>
  674. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">0</FONT></TD>
  675. </TR>
  676. <TR>
  677. <TD><FONT SIZE="-1">SEC</FONT></TD><TD><FONT SIZE="-1">$38</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  678. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  679. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">C:=1</FONT></TD>
  680. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">1</FONT></TD>
  681. </TR>
  682. <TR>
  683. <TD><FONT SIZE="-1">CLD</FONT></TD><TD><FONT SIZE="-1">$D8</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  684. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  685. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">D:=0</FONT></TD>
  686. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">0</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  687. </TR>
  688. <TR>
  689. <TD><FONT SIZE="-1">SED</FONT></TD><TD><FONT SIZE="-1">$F8</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  690. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  691. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">D:=1</FONT></TD>
  692. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">1</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  693. </TR>
  694. <TR>
  695. <TD><FONT SIZE="-1">CLI</FONT></TD><TD><FONT SIZE="-1">$58</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  696. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  697. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">I:=0</FONT></TD>
  698. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">0</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  699. </TR>
  700. <TR>
  701. <TD><FONT SIZE="-1">SEI</FONT></TD><TD><FONT SIZE="-1">$78</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  702. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  703. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">I:=1</FONT></TD>
  704. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">1</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  705. </TR>
  706. <TR>
  707. <TD><FONT SIZE="-1">CLV</FONT></TD><TD><FONT SIZE="-1">$B8</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  708. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  709. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">V:=0</FONT></TD>
  710. <TD>&nbsp;</TD><TD><FONT SIZE="-1">0</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  711. </TR>
  712. <TR>
  713. <TD><FONT SIZE="-1">NOP</FONT></TD><TD><FONT SIZE="-1">$EA</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  714. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  715. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  716. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  717. </TR>
  718. </TABLE>
  719. <BR><BR>
  720. <FONT SIZE="+3">Flags of the status register:</FONT><BR>
  721. <BR>
  722. The processor status register has 8 bits, where 7 are used as flags:<BR>
  723. <BR>
  724. N = negative flag (1 when result is negative)<BR>
  725. V = overflow flag (1 on signed overflow)<BR>
  726. # = unused (always 1)<BR>
  727. B = break flag (1 when interupt was caused by a BRK)<BR>
  728. D = decimal flag (1 when CPU in BCD mode)<BR>
  729. I = IRQ flag (when 1, no interupts will occur (exceptions are IRQs forced by BRK and NMIs))<BR>
  730. Z = zero flag (1 when all bits of a result are 0)<BR>
  731. C = carry flag (1 on unsigned overflow)<BR>
  732. <BR><BR>
  733. <FONT SIZE="+3">Hardware vectors:</FONT><BR>
  734. <FONT SIZE="-1"><BR>
  735. $FFFA = NMI vector (NMI=not maskable interupts)<BR>
  736. $FFFC = Reset vector<BR>
  737. $FFFE = IRQ vector<BR>
  738. <BR><BR></FONT>
  739. <FONT SIZE="+3">Illegal opcodes:</FONT>
  740. <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2>
  741. <TR>
  742. <TD WIDTH="48"><FONT SIZE="-1">Opcode</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">imp</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">imm</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">zp</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">zpx</FONT></TD>
  743. <TD WIDTH="28"><FONT SIZE="-1">zpy</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">izx</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">izy</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">abs</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">abx</FONT></TD>
  744. <TD WIDTH="28"><FONT SIZE="-1">aby</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">ind</FONT></TD><TD WIDTH="28"><FONT SIZE="-1">rel</FONT></TD><TD WIDTH=176><FONT SIZE="-1">Function</FONT></TD>
  745. <TD WIDTH="9"><FONT SIZE="-1">N</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">V</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">B</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">D</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">I</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">Z</FONT></TD><TD WIDTH="9"><FONT SIZE="-1">C</FONT></TD>
  746. </TR>
  747. <TR>
  748. <TD><FONT SIZE="-1">SLO</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$07</FONT></TD><TD><FONT SIZE="-1">$17</FONT></TD>
  749. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$03</FONT></TD><TD><FONT SIZE="-1">$13</FONT></TD><TD><FONT SIZE="-1">$0F</FONT></TD><TD><FONT SIZE="-1">$1F</FONT></TD>
  750. <TD><FONT SIZE="-1">$1B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}*2 A:=A or {adr}</FONT></TD>
  751. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  752. </TR>
  753. <TR>
  754. <TD><FONT SIZE="-1">RLA</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$27</FONT></TD><TD><FONT SIZE="-1">$37</FONT></TD>
  755. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$23</FONT></TD><TD><FONT SIZE="-1">$33</FONT></TD><TD><FONT SIZE="-1">$2F</FONT></TD><TD><FONT SIZE="-1">$3F</FONT></TD>
  756. <TD><FONT SIZE="-1">$3B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}rol A:=A and {adr}</FONT></TD>
  757. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  758. </TR>
  759. <TR>
  760. <TD><FONT SIZE="-1">SRE</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$47</FONT></TD><TD><FONT SIZE="-1">$57</FONT></TD>
  761. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$43</FONT></TD><TD><FONT SIZE="-1">$53</FONT></TD><TD><FONT SIZE="-1">$4F</FONT></TD><TD><FONT SIZE="-1">$5F</FONT></TD>
  762. <TD><FONT SIZE="-1">$5B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}/2 A:=A exor {adr}</FONT></TD>
  763. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  764. </TR>
  765. <TR>
  766. <TD><FONT SIZE="-1">RRA</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$67</FONT></TD><TD><FONT SIZE="-1">$77</FONT></TD>
  767. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$63</FONT></TD><TD><FONT SIZE="-1">$73</FONT></TD><TD><FONT SIZE="-1">$6F</FONT></TD><TD><FONT SIZE="-1">$7F</FONT></TD>
  768. <TD><FONT SIZE="-1">$7B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}ror A:=A adc {adr}</FONT></TD>
  769. <TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  770. </TR>
  771. <TR>
  772. <TD><FONT SIZE="-1">SAX</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$87</FONT></TD><TD>&nbsp;</TD>
  773. <TD><FONT SIZE="-1">$97</FONT></TD><TD><FONT SIZE="-1">$83</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$8F</FONT></TD><TD>&nbsp;</TD>
  774. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:=A&amp;X</FONT></TD>
  775. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  776. </TR>
  777. <TR>
  778. <TD><FONT SIZE="-1">LAX</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$A7</FONT></TD><TD>&nbsp;</TD>
  779. <TD><FONT SIZE="-1">$B7</FONT></TD><TD><FONT SIZE="-1">$A3</FONT></TD><TD><FONT SIZE="-1">$B3</FONT></TD><TD><FONT SIZE="-1">$AF</FONT></TD><TD>&nbsp;</TD>
  780. <TD><FONT SIZE="-1">$BF</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A,X:={adr}</FONT></TD>
  781. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  782. </TR>
  783. <TR>
  784. <TD><FONT SIZE="-1">DCP</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$C7</FONT></TD><TD><FONT SIZE="-1">$D7</FONT></TD>
  785. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$C3</FONT></TD><TD><FONT SIZE="-1">$D3</FONT></TD><TD><FONT SIZE="-1">$CF</FONT></TD><TD><FONT SIZE="-1">$DF</FONT></TD>
  786. <TD><FONT SIZE="-1">$DB</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}-1 A-{adr}</FONT></TD>
  787. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  788. </TR>
  789. <TR>
  790. <TD><FONT SIZE="-1">ISC</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$E7</FONT></TD><TD><FONT SIZE="-1">$F7</FONT></TD>
  791. <TD>&nbsp;</TD><TD><FONT SIZE="-1">$E3</FONT></TD><TD><FONT SIZE="-1">$F3</FONT></TD><TD><FONT SIZE="-1">$EF</FONT></TD><TD><FONT SIZE="-1">$FF</FONT></TD>
  792. <TD><FONT SIZE="-1">$FB</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:={adr}+1 A:=A-{adr}</FONT></TD>
  793. <TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  794. </TR>
  795. <TR>
  796. <TD><FONT SIZE="-1">ANC</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$0B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  797. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  798. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=A&amp;#{imm}</FONT></TD>
  799. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  800. </TR>
  801. <TR>
  802. <TD><FONT SIZE="-1">ANC</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$2B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  803. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  804. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=A&amp;#{imm}</FONT></TD>
  805. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  806. </TR>
  807. <TR>
  808. <TD><FONT SIZE="-1">ALR</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$4B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  809. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  810. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=(A&amp;#{imm})/2</FONT></TD>
  811. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  812. </TR>
  813. <TR>
  814. <TD><FONT SIZE="-1">ARR</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$6B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  815. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  816. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=(A&amp;#{imm})/2</FONT></TD>
  817. <TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  818. </TR>
  819. <TR>
  820. <TD><FONT SIZE="-1">XAA²</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$8B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  821. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  822. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=X&amp;#{imm}</FONT></TD>
  823. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  824. </TR>
  825. <TR>
  826. <TD><FONT SIZE="-1">LAX²</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$AB</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  827. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  828. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A,X:=#{imm}</FONT></TD>
  829. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  830. </TR>
  831. <TR>
  832. <TD><FONT SIZE="-1">AXS</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$CB</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  833. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  834. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">X:=A&amp;X-#{imm}</FONT></TD>
  835. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  836. </TR>
  837. <TR>
  838. <TD><FONT SIZE="-1">SBC</FONT></TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$EB</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  839. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  840. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A:=A-#{imm}</FONT></TD>
  841. <TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD><FONT SIZE="-1">*</FONT></TD>
  842. </TR>
  843. <TR>
  844. <TD><FONT SIZE="-1">AHX¹</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  845. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$93</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  846. <TD><FONT SIZE="-1">$9F</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:=A&amp;X&amp;H</FONT></TD>
  847. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  848. </TR>
  849. <TR>
  850. <TD><FONT SIZE="-1">SHY¹</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  851. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">$9C</FONT></TD>
  852. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:=Y&amp;H</FONT></TD>
  853. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  854. </TR>
  855. <TR>
  856. <TD><FONT SIZE="-1">SHX¹</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  857. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  858. <TD><FONT SIZE="-1">$9E</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">{adr}:=X&amp;H</FONT></TD>
  859. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  860. </TR>
  861. <TR>
  862. <TD><FONT SIZE="-1">TAS¹</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  863. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  864. <TD><FONT SIZE="-1">$9B</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">S:=A&amp;X {adr}:=S&amp;H</FONT></TD>
  865. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  866. </TR>
  867. <TR>
  868. <TD><FONT SIZE="-1">LAS</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  869. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  870. <TD><FONT SIZE="-1">$BB</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">A,X,S:={adr}&amp;S</FONT></TD>
  871. <TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT SIZE="-1">*</FONT></TD><TD>&nbsp;</TD>
  872. </TR>
  873. </TABLE>
  874. <FONT SIZE="-1"><BR><BR>
  875. <TT>¹ = unstable in certain matters<BR>
  876. ² = highly unstable (results are not predictable on some machines)<BR>
  877. A = Akkumulator<BR>
  878. X = X-Register<BR>
  879. Y = Y-Register<BR>
  880. S = Stack-Pointer<BR>
  881. P = Status-Register<BR>
  882. +(S) = Stack-Pointer relative with pre-increment<BR>
  883. (S)- = Stack-Pointer relative with post-decrement</TT><BR>
  884. <BR><BR>
  885. Combinations of two operations with the same addressing mode:<BR>
  886. <BR>
  887. <TT>SLO {adr} = ASL {adr} + ORA {adr}<BR>
  888. RLA {adr} = ROL {adr} + AND {adr}<BR>
  889. SRE {adr} = LSR {adr} + EOR {adr}<BR>
  890. RRA {adr} = ROR {adr} + ADC {adr}<BR>
  891. SAX {adr} = store A&amp;X into {adr}<BR>
  892. LAX {adr} = LDA {adr} + LDX {adr}<BR>
  893. DCP {adr} = DEC {adr} + CMP {adr}<BR>
  894. ISC {adr} = INC {adr} + SBC {adr}</TT><BR>
  895. <BR>
  896. note to SAX: the A&amp;X operation is a result of A and X put onto the bus at the same time.<BR>
  897. <BR><BR>
  898. Combinations of an immediate and an implied command:<BR>
  899. <BR>
  900. <TT>ANC #{imm} = AND #{imm} + (ASL)<BR>
  901. ANC #{imm} = AND #{imm} + (ROL)<BR>
  902. ALR #{imm} = AND #{imm} + LSR<BR>
  903. ARR #{imm} = AND #{imm} + ROR<BR>
  904. XAA #{imm} = TXA + AND #{imm}<BR>
  905. LAX #{imm} = LDA #{imm} + TAX<BR>
  906. AXS #{imm} = A&amp;X minus #{imm} into X<BR>
  907. SBC #{imm} = SBC #{imm} + NOP</TT><BR>
  908. <BR>
  909. 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.<BR>
  910. note to ARR: part of this command are some ADC mechanisms. following effects appear after AND but before ROR:
  911. 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.<BR>
  912. note to XAA: DO NOT USE!!! Highly unstable!!!<BR>
  913. 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
  914. looks like this: ORA #? AND #{imm} TAX.<BR>
  915. note to AXS: performs CMP and DEX at the same time, so that the MINUS sets the flag like CMP, not SBC.<BR>
  916. <BR><BR>
  917. Combinations of STA/STX/STY:<BR>
  918. <BR>
  919. <TT>AHX {adr} = stores A&amp;X&amp;H into {adr}<BR>
  920. SHX {adr} = stores X&amp;H into {adr}<BR>
  921. SHY {adr} = stores Y&amp;H into {adr}</TT><BR>
  922. <BR>
  923. note: sometimes the &amp;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).<BR>
  924. <BR><BR>
  925. Combinations of STA/TXS and LDA/TSX:<BR>
  926. <BR>
  927. <TT>TAS {adr} = stores A&amp;X into S and A&amp;X&amp;H into {adr}<BR>
  928. LAS {adr} = stores {adr}&amp;S into A, X and S</TT><BR>
  929. <BR>
  930. note to LAS: is called as "propably unreliable" in one source.<BR>
  931. <BR><BR>
  932. Bit configuration does not allow any operation on these ones:<BR>
  933. <BR>
  934. <TT>NOP = has no effects<BR>
  935. NOP #{imm} = fetches #{imm} but has no effects<BR>
  936. NOP {adr} = fetches {adr} but has no effects<BR>
  937. <BR><BR>
  938. KIL = halts the CPU. the data bus will be set to #$FF</TT><BR>
  939. <BR>
  940. <BR>
  941. <FONT SIZE="+1">Aliases used in other illegal opcode sources:</FONT><BR>
  942. <BR>
  943. SLO = ASO<BR>
  944. SRE = LSE<BR>
  945. ISC = ISB<BR>
  946. ALR = ASR<BR>
  947. SHX = A11 (A11 was a result of only having tested this one on adress $1000)<BR>
  948. SHY = A11<BR>
  949. LAS = LAR<BR>
  950. KIL = JAM, HLT<BR>
  951. <BR>
  952. <BR>
  953. <FONT SIZE="+3">The 6502 bugs:</FONT><BR>
  954. <BR>
  955. <FONT SIZE="+1">Zeropage index will not leave zeropage when page boundary is crossed:</FONT><BR>
  956. <BR>
  957. <TT>LDX #$01<BR>
  958. LDA $FF,X</TT><BR>
  959. <BR>
  960. ...will fetch from adress $0000 and not $0100 as indexed.<BR>
  961. <BR><BR>
  962. <FONT SIZE="+1">Indirect adressing modes are not able to fetch an adress which crosses the page boundary:</FONT><BR>
  963. <BR>
  964. Four examples to illustrate this:<BR>
  965. <BR>
  966. <TT>LDA ($FF),Y<BR>
  967. <BR>
  968. LDX #$00<BR>
  969. LDA ($FF,X)<BR>
  970. <BR>
  971. LDX #$FF<BR>
  972. LDA ($00,X)</TT><BR>
  973. <BR>
  974. ... will all fetch the low-byte from $00FF and the high-byte from $0000<BR>
  975. <BR>
  976. <TT>JMP ($12FF)</TT><BR>
  977. <BR>
  978. ... will fetch the low-byte from $12FF and the high-byte from $1200<BR>
  979. <BR><BR>
  980. <FONT SIZE="+1">The N, V and Z flags do not work correctly in BCD mode:</FONT><BR>
  981. <BR>
  982. N will always carry bit 7.<BR>
  983. V will always be ((U eor N) nand (U eor V)) (while U is bit 7 of operand 1, V is bit 7 of operand 2 and N is the N flag after the ADC is performed).<BR>
  984. please note that SBC is truly ADC with an inverted operand!<BR>
  985. Z will be 0 when the non-BCD operation WOULD have resulted in $00, no matter what value the result of the BCD operation is.<BR>
  986. <BR>
  987. example to Z:<BR>
  988. <BR>
  989. <TT>SED<BR>
  990. CLC<BR>
  991. LDA #$80<BR>
  992. ADC #$80</TT><BR>
  993. <BR>
  994. ... results in A=$60, but the Z flag is 1.<BR>
  995. <BR><BR>
  996. <FONT SIZE="+1">BCD and non BCD values:</FONT><BR>
  997. <BR>
  998. Since only nibble values from 0 to 9 are valid in BCD, it's interesting to see what happens when using A to F:<BR>
  999. <BR>
  1000. <TT>$00+$0F=$15 (an easy way to convert a hex-digit into BCD...)<BR>
  1001. $00+$1F=$25 (can be claimed as being "ok" since 10+$0F=25)<BR>
  1002. $10+$1F=$35 ("ok")<BR>
  1003. $05+$1F=$2A (a non-BCD result, still somewhat "ok" since 5+10+$0F=20+$0A)<BR>
  1004. $0F+$0A=$1F ("ok", since $0F+$0A=$0F+10)<BR>
  1005. $0F+$0B=$10 (now, this is plain bullshit!)</TT><BR>
  1006. <BR><BR>
  1007. <FONT SIZE="+3">Different versions of the 6502:</FONT><BR>
  1008. <BR>
  1009. In the C64/C128 series of computers, slightly modified versions of the 6502
  1010. were used. The modifications did not affect the functional part of the processor
  1011. itself. Only a so-called processor port was added.
  1012. This port, in combination with an external PLA, was used to map ROM and I/O areas into the 64KB RAM of the C64.
  1013. Also, some bits of the port were used for the legendary Datasette.<BR>
  1014. <BR>
  1015. The port can be accessed through memory adresses $0000 and $0001, while $0001
  1016. is the port itself, and $0000 is the data direction register for it.<BR>
  1017. <BR>
  1018. Explanation for the bits of $0001:<BR>
  1019. <BR>
  1020. 7 - unused (Flash 8: 0=8MHz/1=1MHz)<BR>
  1021. 6 - unused (C128: ASCII/DIN sense/switch (1=ASCII/0=DIN))<BR>
  1022. 5 - Cassette motor control (0 = motor on)<BR>
  1023. 4 - Cassette switch sense (0 = PLAY pressed)<BR>
  1024. 3 - Cassette write line<BR>
  1025. 2 - CHAREN (0=Character ROM instead of I/O area)<BR>
  1026. 1 - HIRAM ($E000-$FFFF)<BR>
  1027. 0 - LORAM ($A000-$BFFF)<BR>
  1028. <BR>
  1029. If HIRAM or LORAM is set, the I/O area is mapped to $D000-$DFFF.<BR>
  1030. <BR>
  1031. $0000 should always be set to $2F (%00101111)<BR>
  1032. <BR>
  1033. Note to bit 6: This bit is used to select either the ASCII or the DIN
  1034. character ROM of a C128. When data direction is set to INPUT, the charset
  1035. is selected externally with the ASCII/DIN key.<BR>
  1036. <BR>
  1037. CPU versions:<BR>
  1038. <BR>
  1039. 6502: NMOS, used in Commodore disk drives, PET, various other 8 bit computers<BR>
  1040. 6502C: 6502 with additional HALT pin, used in Atari 8 bit computer range<BR>
  1041. 6510: 6502 with additional processor port, used in C64<BR>
  1042. 8500: CMOS version of the 6510, used in C64C and C64G<BR>
  1043. 8502: 2 MHz version of the 8500, used in C128<BR>
  1044. 7501: HMOS-1 version of the 6502, used in C16/C116/Plus4<BR>
  1045. 8501: HMOS-2 version of the 6502, used in C16/C116/Plus4<BR>
  1046. <BR>
  1047. All of these processors are the same concerning the software-side.<BR>
  1048. <BR>
  1049. Some processors of the family which are not 100% compatible:<BR>
  1050. <BR>
  1051. 65C02: Extension of the 6502.<BR>
  1052. 65SC02: Small version of the 65C02 which lost a few opcodes again.<BR>
  1053. 65CE02: Extension of the 65C02, used in the C65.<BR>
  1054. 65816: Extended 6502 with new opcodes and 16 bit operation modes.<BR>
  1055. <BR><BR>
  1056. <FONT SIZE="+3">Zeropage/Stack:</FONT><BR>
  1057. <BR>
  1058. The first 256 bytes of adressable memory are called Zeropage. The 6502
  1059. processor family offers a wide selection of adressing modes to work with
  1060. this part of the memory, which generally results in shorter and (even more
  1061. important) faster code.<BR>
  1062. <BR>
  1063. Following the Zeropage, the next 256 bytes (located at $0100-$01FF) are
  1064. used as processor stack. The stack function of this part is defined as
  1065. it is in most other CPU's: Writing to stack will automatically decrement
  1066. the stack pointer, while reading from it will increment it.<BR>
  1067. <BR><BR></FONT>&copy; 2002-2012 Graham. Last change on 03.11.2012.
  1068. <BR><BR><A HREF="opcodes.html">back</A>
  1069. </BODY>
  1070. </HTML>