Fixed cycle delay: Difference between revisions
From NESdev Wiki
Jump to navigationJump to search
(add tesuji) |
(Larger table, and with custom CSS decreased HTML size) |
||
Line 12: | Line 12: | ||
* Alternatively, @rts15 means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as <code>LDA $00</code>), followed by <code>RTS</code>. | * Alternatively, @rts15 means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as <code>LDA $00</code>), followed by <code>RTS</code>. | ||
* @A, @X, @Y are local labels. | * @A, @X, @Y are local labels. | ||
{{#css: | |||
.testtable td{padding:2px} .testtable td pre{padding:2px;margin:2px} | |||
}} | |||
=== 2 cycles === | === 2 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|1 bytes | !colspan="2"|1 bytes | ||
|- | |- | ||
|<pre>NOP</pre> || Clobbers nothing, requires nothing | |||
|- | |- | ||
|} | |} | ||
Line 23: | Line 28: | ||
=== 3 cycles === | === 3 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|1 bytes | !colspan="2"|1 bytes | ||
|- | |- | ||
|<pre>PHA</pre> || Clobbers S | |||
|- | |- | ||
!colspan="2"|2 bytes | !colspan="2"|2 bytes | ||
|- | |- | ||
|<pre>LDA $00</pre> || Clobbers A, and Z&N | |||
|- | |- | ||
|<pre>BIT $00</pre> || Clobbers Z&N, and V | |||
|- | |- | ||
|<pre>STA @zptemp</pre> || Requires @zptemp | |||
|- | |- | ||
|<pre>NOP $00</pre> || Requires support for unofficial opcodes | |||
|- | |- | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>JMP *+3</pre> || Clobbers nothing, requires nothing | |||
|- | |- | ||
|} | |} | ||
Line 46: | Line 51: | ||
=== 4 cycles === | === 4 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|1 bytes | !colspan="2"|1 bytes | ||
|- | |- | ||
|<pre>PLA</pre> || Clobbers A, S, and Z&N | |||
|- | |- | ||
!colspan="2"|2 bytes | !colspan="2"|2 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 60: | Line 65: | ||
=== 5 cycles === | === 5 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|2 bytes | !colspan="2"|2 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDA $00 | LDA $00</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
BIT $00 | BIT $00</pre> || Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>NOP | |||
STA @zptemp | STA @zptemp</pre> || Requires @zptemp | ||
|- | |- | ||
|<pre>NOP | |||
NOP $00 | NOP $00</pre> || Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>NOP | |||
JMP *+3 | JMP *+3</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 89: | Line 94: | ||
=== 6 cycles === | === 6 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|2 bytes | !colspan="2"|2 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 105: | Line 110: | ||
=== 7 cycles === | === 7 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|2 bytes | !colspan="2"|2 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 115: | Line 120: | ||
=== 8 cycles === | === 8 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|2 bytes | !colspan="2"|2 bytes | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>TSX | |||
PLA | PLA | ||
TXS | TXS</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
NOP | NOP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 142: | Line 147: | ||
=== 9 cycles === | === 9 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 153: | Line 158: | ||
=== 10 cycles === | === 10 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 170: | Line 175: | ||
=== 11 cycles === | === 11 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 188: | Line 193: | ||
=== 12 cycles === | === 12 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>JSR @rts12</pre> || Requires @rts12 | |||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>ROL $00,X | |||
ROR $00,X | ROR $00,X</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
BIT $00 | BIT $00 | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 218: | Line 223: | ||
=== 13 cycles === | === 13 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 238: | Line 243: | ||
=== 14 cycles === | === 14 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>JSR @rts14</pre> || Requires @rts14 | |||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 254: | Line 259: | ||
=== 15 cycles === | === 15 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>JSR @rts15</pre> || Requires @rts15 | |||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
JSR @rts12 | JSR @rts12</pre> || Clobbers A, and Z&N; and requires @rts12 | ||
|- | |- | ||
|<pre>PHA | |||
TSX | TSX | ||
PLA | PLA | ||
TXS | TXS | ||
PLA | PLA</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
TSX | TSX | ||
PLA | PLA | ||
TXS | TXS | ||
PLP | PLP</pre> || Clobbers A, and X | ||
|- | |- | ||
|<pre>BIT $00 | |||
JSR @rts12 | JSR @rts12</pre> || Clobbers Z&N, and V; and requires @rts12 | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts12 | JSR @rts12</pre> || Requires @zptemp, and @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
NOP | NOP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 314: | Line 319: | ||
=== 16 cycles === | === 16 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 337: | Line 342: | ||
=== 17 cycles === | === 17 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, and Z&N; and requires @rts14 | ||
|- | |- | ||
|<pre>BIT $00 | |||
JSR @rts14 | JSR @rts14</pre> || Clobbers Z&N, and V; and requires @rts14 | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts14 | JSR @rts14</pre> || Requires @zptemp, and @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
BIT $00 | BIT $00 | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 378: | Line 383: | ||
=== 18 cycles === | === 18 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, S, and Z&N; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, and Z&N; and requires @rts15 | ||
|- | |- | ||
|<pre>BIT $00 | |||
JSR @rts15 | JSR @rts15</pre> || Clobbers Z&N, and V; and requires @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts15 | JSR @rts15</pre> || Requires @zptemp, and @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 428: | Line 433: | ||
=== 19 cycles === | === 19 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>PLA | |||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, S, and Z&N; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHP | |||
ROL $00,X | ROL $00,X | ||
ROR $00,X | ROR $00,X | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 465: | Line 470: | ||
=== 20 cycles === | === 20 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDA $00 | LDA $00 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, and Z&N; and requires @rts15 | ||
|- | |- | ||
|<pre>TSX | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
TXS | TXS</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
BIT $00 | BIT $00 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers Z&N, and V; and requires @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
STA @zptemp | STA @zptemp | ||
JSR @rts15 | JSR @rts15</pre> || Requires @zptemp, and @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
|<pre>NOP | |||
NOP $00 | NOP $00 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 527: | Line 532: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 533: | Line 538: | ||
=== 21 cycles === | === 21 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #4 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #4 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 567: | Line 572: | ||
=== 22 cycles === | === 22 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, S, and Z&N; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #3 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #3 | |||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
TSX | TSX | ||
Line 622: | Line 627: | ||
TXS | TXS | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
NOP | NOP | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
Line 636: | Line 641: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 647: | Line 652: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 653: | Line 658: | ||
=== 23 cycles === | === 23 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, S, and Z&N; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #4 | LDX #4 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #4 | LDY #4 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
Line 699: | Line 704: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 705: | Line 710: | ||
=== 24 cycles === | === 24 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDX #4 | LDX #4 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDY #4 | LDY #4 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #3 | LDX #3 | ||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #3 | LDY #3 | ||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
Line 767: | Line 772: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 777: | Line 782: | ||
PHP | PHP | ||
BIT $00 | BIT $00 | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 783: | Line 788: | ||
=== 25 cycles === | === 25 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>LDY #3 | |||
@Y: | @Y: | ||
PHA | PHA | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>LDX #3 | |||
@X: | @X: | ||
PHA | PHA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, S, and Z&N; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>LDY #2 | |||
@Y: | @Y: | ||
PHP | PHP | ||
PLP | PLP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #2 | |||
@X: | @X: | ||
PHP | PHP | ||
PLP | PLP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PLA | PLA | ||
Line 847: | Line 852: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 858: | Line 863: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 864: | Line 869: | ||
=== 26 cycles === | === 26 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #5 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #5 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts14 | JSR @rts14</pre> || Requires @rts12, and @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, S, and Z&N; and requires @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, S, and Z&N; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>ROL $00,X | |||
ROR $00,X | ROR $00,X | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers Z&N; and requires @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PLA | PLA | ||
PLA | PLA | ||
Line 914: | Line 919: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
ROL $00,X | ROL $00,X | ||
ROR $00,X | ROR $00,X | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 935: | Line 940: | ||
=== 27 cycles === | === 27 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts15 | JSR @rts15</pre> || Requires @rts12, and @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, S, and Z&N; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>ROL $00,X | |||
ROR $00,X | ROR $00,X | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers Z&N; and requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
Line 968: | Line 973: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDX #3 | LDX #3 | ||
@X: | @X: | ||
PHA | PHA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #3 | LDY #3 | ||
@Y: | @Y: | ||
PHA | PHA | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
|<pre>LDY #130 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides !NOP #imm | ; ^ Hides !NOP #imm | ||
NOP $EA ;hides 'NOP' | NOP $EA ;hides 'NOP' | ||
DEY | DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>LDX #130 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides !NOP #imm | ; ^ Hides !NOP #imm | ||
NOP $EA ;hides 'NOP' | NOP $EA ;hides 'NOP' | ||
DEX | DEX | ||
BMI @X | BMI @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
BIT $00 | BIT $00 | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>LDA $00 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers A, and Z&N; and requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
LDY #2 | LDY #2 | ||
@Y: | @Y: | ||
Line 1,022: | Line 1,027: | ||
PLP | PLP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
TSX | TSX | ||
PLA | PLA | ||
Line 1,031: | Line 1,036: | ||
PLA | PLA | ||
TXS | TXS | ||
PLA | PLA</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
TSX | TSX | ||
PLA | PLA | ||
Line 1,040: | Line 1,045: | ||
PLA | PLA | ||
TXS | TXS | ||
PLP | PLP</pre> || Clobbers A, and X | ||
|- | |- | ||
|<pre>BIT $00 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers Z&N, and V; and requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @zptemp, and @rts12 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 1,064: | Line 1,069: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 1,080: | Line 1,085: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 1,086: | Line 1,091: | ||
=== 28 cycles === | === 28 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #5 | LDX #5 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #5 | LDY #5 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>JSR @rts14 | |||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #4 | LDX #4 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #4 | LDY #4 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>SEC | |||
LDA #5 | LDA #5 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA | ||
Line 1,138: | Line 1,143: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 1,149: | Line 1,154: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 1,155: | Line 1,160: | ||
=== 29 cycles === | === 29 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDX #4 | |||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #4 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>JSR @rts14 | |||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts12, and @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, S, and Z&N; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #3 | LDY #3 | ||
@Y: | @Y: | ||
Line 1,199: | Line 1,204: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #3 | LDX #3 | ||
@X: | @X: | ||
Line 1,207: | Line 1,212: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>LDA $00 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, and Z&N; and requires @rts12, and @rts14 | ||
|- | |- | ||
|<pre>BIT $00 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers Z&N, and V; and requires @rts12, and @rts14 | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @zptemp, @rts12, and @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PLA | PLA | ||
Line 1,233: | Line 1,238: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts12, @rts14, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
BIT $00 | BIT $00 | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 1,261: | Line 1,266: | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
Line 1,271: | Line 1,276: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 1,284: | Line 1,289: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 1,290: | Line 1,295: | ||
=== 30 cycles === | === 30 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>JSR @rts15 | |||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
LDX #5 | LDX #5 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
LDY #5 | LDY #5 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDY #5 | LDY #5 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDX #5 | LDX #5 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #4 | LDY #4 | ||
Line 1,336: | Line 1,341: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #4 | LDX #4 | ||
Line 1,344: | Line 1,349: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #5 | LDA #5 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PLA | PLA | ||
PLA | PLA | ||
Line 1,365: | Line 1,370: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
Line 1,377: | Line 1,382: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 1,383: | Line 1,388: | ||
=== 31 cycles === | === 31 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #6 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #6 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, S, and Z&N; and requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>SEC | |||
LDA #4 | LDA #4 | ||
@A: | @A: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>LDA $00 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, and Z&N; and requires @rts14 | ||
|- | |- | ||
|<pre>BIT $00 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers Z&N, and V; and requires @rts14 | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @zptemp, and @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
Line 1,452: | Line 1,457: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #4 | LDX #4 | ||
Line 1,460: | Line 1,465: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #4 | LDY #4 | ||
Line 1,468: | Line 1,473: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #3 | LDY #3 | ||
Line 1,483: | Line 1,488: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #3 | LDX #3 | ||
Line 1,492: | Line 1,497: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>JMP *+3 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
Line 1,506: | Line 1,511: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 1,518: | Line 1,523: | ||
PHP | PHP | ||
BIT $00 | BIT $00 | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 1,524: | Line 1,529: | ||
=== 32 cycles === | === 32 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #5 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides ORA zp | ; ^ Hides ORA zp | ||
DEY ;first round only | DEY ;first round only | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #5 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides ORA zp | ; ^ Hides ORA zp | ||
DEX ;first round only | DEX ;first round only | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
LDX #4 | LDX #4 | ||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDY #4 | LDY #4 | ||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, S, and Z&N; and requires @rts14 | ||
|- | |- | ||
|<pre>LDY #250 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides !NOP | ; ^ Hides !NOP | ||
Line 1,571: | Line 1,576: | ||
INY | INY | ||
INY | INY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>LDX #250 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides !NOP | ; ^ Hides !NOP | ||
Line 1,579: | Line 1,584: | ||
INX | INX | ||
INX | INX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 1,589: | Line 1,594: | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 1,597: | Line 1,602: | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA | ||
Line 1,611: | Line 1,616: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #4 | LDY #4 | ||
Line 1,622: | Line 1,627: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
LDY #2 | LDY #2 | ||
@Y: | @Y: | ||
Line 1,631: | Line 1,636: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #2 | LDX #2 | ||
@X: | @X: | ||
Line 1,640: | Line 1,645: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 1,659: | Line 1,664: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 1,665: | Line 1,670: | ||
=== 33 cycles === | === 33 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDY #6 | LDY #6 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #5 | LDY #5 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #5 | LDX #5 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #6 | LDA #6 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, and Z&N; and requires @rts15 | ||
|- | |- | ||
|<pre>BIT $00 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers Z&N, and V; and requires @rts15 | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts12, and @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @zptemp, and @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>JMP *+3 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>JSR @rts14 | |||
PHP | PHP | ||
ROL $00,X | ROL $00,X | ||
ROR $00,X | ROR $00,X | ||
PLP | PLP</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PLA | PLA | ||
Line 1,765: | Line 1,770: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 1,776: | Line 1,781: | ||
ROL $00,X | ROL $00,X | ||
ROR $00,X | ROR $00,X | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 1,782: | Line 1,787: | ||
=== 34 cycles === | === 34 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
DEY | DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>PLA | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, S, and Z&N; and requires @rts15 | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PLA | PLA | ||
PLA | PLA | ||
Line 1,869: | Line 1,874: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 1,878: | Line 1,883: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 1,887: | Line 1,892: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHP | |||
LDY #130 | LDY #130 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 1,896: | Line 1,901: | ||
DEY | DEY | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #130 | LDX #130 | ||
@X = * - 1 | @X = * - 1 | ||
Line 1,905: | Line 1,910: | ||
DEX | DEX | ||
BMI @X | BMI @X | ||
PLP | PLP</pre> || Clobbers X; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 1,923: | Line 1,928: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #2 | LDY #2 | ||
Line 1,933: | Line 1,938: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
TSX | TSX | ||
Line 1,944: | Line 1,949: | ||
TXS | TXS | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 1,955: | Line 1,960: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 1,969: | Line 1,974: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 1,975: | Line 1,980: | ||
=== 35 cycles === | === 35 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
DEY | DEY | ||
DEY | DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #248 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides SED | ; ^ Hides SED | ||
INX | INX | ||
INX | INX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and D | ||
|- | |- | ||
|<pre>PLA | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #5 | LDY #5 | ||
Line 2,015: | Line 2,020: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #5 | LDX #5 | ||
Line 2,023: | Line 2,028: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #6 | LDA #6 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #5 | LDA #5 | ||
Line 2,050: | Line 2,055: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #5 | LDA #5 | ||
Line 2,058: | Line 2,063: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>NOP | |||
BIT $00 | BIT $00 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers Z&N, and V; and requires @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
STA @zptemp | STA @zptemp | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @zptemp, and @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
NOP $00 | NOP $00 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 2,086: | Line 2,091: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 2,092: | Line 2,097: | ||
=== 36 cycles === | === 36 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #7 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #7 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #4 | LDX #4 | ||
@X: | @X: | ||
Line 2,113: | Line 2,118: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #4 | LDY #4 | ||
@Y: | @Y: | ||
Line 2,121: | Line 2,126: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #6 | LDA #6 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, S, and Z&N; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>LDA $00 | |||
SEC | SEC | ||
LDA #6 | LDA #6 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
PLA | PLA | ||
Line 2,172: | Line 2,177: | ||
PLA | PLA | ||
PLA | PLA | ||
PLA | PLA</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
NOP | NOP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #2 | LDY #2 | ||
Line 2,200: | Line 2,205: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
Line 2,212: | Line 2,217: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 2,227: | Line 2,232: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 2,233: | Line 2,238: | ||
=== 37 cycles === | === 37 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
DEY | DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>LDX #4 | |||
@X: | @X: | ||
PLA | PLA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDX #3 | |||
@X: | @X: | ||
PHP | PHP | ||
PLP | PLP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #3 | |||
@Y: | @Y: | ||
PHP | PHP | ||
PLP | PLP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #6 | LDA #6 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #5 | LDY #5 | ||
Line 2,288: | Line 2,293: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 2,297: | Line 2,302: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 2,306: | Line 2,311: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 2,323: | Line 2,328: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 2,332: | Line 2,337: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
Line 2,353: | Line 2,358: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 2,359: | Line 2,364: | ||
=== 38 cycles === | === 38 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #6 | LDY #6 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #7 | LDA #7 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PLA | |||
PLA | PLA | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, S, and Z&N; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts12, and @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
NOP | NOP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #4 | LDA #4 | ||
Line 2,448: | Line 2,453: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #4 | LDA #4 | ||
Line 2,457: | Line 2,462: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
Line 2,477: | Line 2,482: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 2,491: | Line 2,496: | ||
PHP | PHP | ||
BIT $00 | BIT $00 | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 2,497: | Line 2,502: | ||
=== 39 cycles === | === 39 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
LDY #5 | LDY #5 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 2,583: | Line 2,588: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers A, and Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #5 | LDX #5 | ||
@X = * - 1 | @X = * - 1 | ||
Line 2,592: | Line 2,597: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers A, and X | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>SEC | |||
LDA #3 | LDA #3 | ||
@A: | @A: | ||
Line 2,608: | Line 2,613: | ||
PLP | PLP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #4 | LDY #4 | ||
Line 2,617: | Line 2,622: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #4 | LDX #4 | ||
Line 2,626: | Line 2,631: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers A, S, and Z&N; and requires @rts14 | ||
|- | |- | ||
|<pre>PHP | |||
LDY #250 | LDY #250 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 2,642: | Line 2,647: | ||
INY | INY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #250 | LDX #250 | ||
@X = * - 1 | @X = * - 1 | ||
Line 2,652: | Line 2,657: | ||
INX | INX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 2,664: | Line 2,669: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 2,674: | Line 2,679: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 2,684: | Line 2,689: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 2,709: | Line 2,714: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 2,719: | Line 2,724: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @zptemp, and @rts12 | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 2,744: | Line 2,749: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 2,750: | Line 2,755: | ||
=== 40 cycles === | === 40 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #5 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides ORA zp | ; ^ Hides ORA zp | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #5 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides ORA zp | ; ^ Hides ORA zp | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #6 | LDX #6 | ||
Line 2,791: | Line 2,796: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #6 | LDY #6 | ||
Line 2,799: | Line 2,804: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #7 | LDA #7 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #6 | LDA #6 | ||
Line 2,816: | Line 2,821: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #6 | LDA #6 | ||
Line 2,824: | Line 2,829: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts12, and @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>ROL $00,X | |||
ROR $00,X | ROR $00,X | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers Z&N; and requires @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
BIT $00 | BIT $00 | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 2,882: | Line 2,887: | ||
ROL $00,X | ROL $00,X | ||
ROR $00,X | ROR $00,X | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 2,888: | Line 2,893: | ||
=== 41 cycles === | === 41 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDX #8 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #8 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 2,909: | Line 2,914: | ||
DEY | DEY | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #6 | LDX #6 | ||
Line 2,919: | Line 2,924: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #7 | LDA #7 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDX #6 | LDX #6 | ||
Line 2,936: | Line 2,941: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>LDA $00 | |||
SEC | SEC | ||
LDA #7 | LDA #7 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts12, @rts14, and @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PLA | PLA | ||
PLA | PLA | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers A, S, and Z&N; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PLA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 2,972: | Line 2,977: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
TYA | TYA | ||
Line 2,992: | Line 2,997: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 3,000: | Line 3,005: | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 3,016: | Line 3,021: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 3,026: | Line 3,031: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 3,036: | Line 3,041: | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
TYA | TYA | ||
Line 3,048: | Line 3,053: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 3,059: | Line 3,064: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 3,072: | Line 3,077: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 3,088: | Line 3,093: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 3,094: | Line 3,099: | ||
=== 42 cycles === | === 42 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDY #5 | LDY #5 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 3,103: | Line 3,108: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDX #5 | LDX #5 | ||
@X = * - 1 | @X = * - 1 | ||
Line 3,111: | Line 3,116: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 3,136: | Line 3,141: | ||
DEY | DEY | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #248 | LDX #248 | ||
@X = * - 1 | @X = * - 1 | ||
Line 3,145: | Line 3,150: | ||
INX | INX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #7 | LDA #7 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts12, and @rts15 | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #6 | LDY #6 | ||
Line 3,167: | Line 3,172: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>JSR @rts14 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>ROL $00,X | |||
ROR $00,X | ROR $00,X | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers Z&N; and requires @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 3,187: | Line 3,192: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 3,196: | Line 3,201: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 3,215: | Line 3,220: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 3,221: | Line 3,226: | ||
=== 43 cycles === | === 43 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDX #6 | |||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #6 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #8 | LDA #8 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>JSR @rts14 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>TXA | |||
PHA | PHA | ||
LDX #5 | LDX #5 | ||
Line 3,275: | Line 3,280: | ||
BNE @X | BNE @X | ||
PLA | PLA | ||
TAX | TAX</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 3,291: | Line 3,296: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 3,300: | Line 3,305: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts12, and @rts14 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 3,321: | Line 3,326: | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHP | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 3,330: | Line 3,335: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 3,339: | Line 3,344: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
Line 3,347: | Line 3,352: | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 3,358: | Line 3,363: | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 3,373: | Line 3,378: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
Line 3,387: | Line 3,392: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 3,404: | Line 3,409: | ||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 3,410: | Line 3,415: | ||
=== 44 cycles === | === 44 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP | NOP | ||
DEY | DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #10 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides ASL A | ; ^ Hides ASL A | ||
DEX | DEX | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #136 | LDY #136 | ||
Line 3,474: | Line 3,479: | ||
DEY | DEY | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #3 | LDY #3 | ||
@Y: | @Y: | ||
Line 3,485: | Line 3,490: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #3 | LDX #3 | ||
@X: | @X: | ||
Line 3,494: | Line 3,499: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>JSR @rts14 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
PLA | PLA | ||
SEC | SEC | ||
Line 3,506: | Line 3,511: | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 3,525: | Line 3,530: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 3,543: | Line 3,548: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 3,553: | Line 3,558: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 3,566: | Line 3,571: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 3,572: | Line 3,577: | ||
=== 45 cycles === | === 45 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PLA | |||
LDY #8 | LDY #8 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDY #6 | LDY #6 | ||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #7 | LDY #7 | ||
Line 3,611: | Line 3,616: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #7 | LDX #7 | ||
Line 3,619: | Line 3,624: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #6 | LDA #6 | ||
@A: | @A: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>JSR @rts15 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #7 | LDA #7 | ||
Line 3,640: | Line 3,645: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #7 | LDA #7 | ||
Line 3,648: | Line 3,653: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts12, and @rts14 | ||
|- | |- | ||
|<pre>BIT $00 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers Z&N, and V; and requires @rts14 | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @zptemp, and @rts14 | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 3,691: | Line 3,696: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 3,697: | Line 3,702: | ||
=== 46 cycles === | === 46 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDX #9 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #9 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #7 | LDY #7 | ||
Line 3,718: | Line 3,723: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #7 | LDX #7 | ||
Line 3,726: | Line 3,731: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #8 | LDA #8 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDX #7 | LDX #7 | ||
Line 3,743: | Line 3,748: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDY #7 | LDY #7 | ||
Line 3,751: | Line 3,756: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>LDA $00 | |||
SEC | SEC | ||
LDA #8 | LDA #8 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #136 | LDY #136 | ||
Line 3,771: | Line 3,776: | ||
BMI @Y | BMI @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
Line 3,786: | Line 3,791: | ||
PLP | PLP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #3 | LDA #3 | ||
Line 3,796: | Line 3,801: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #3 | LDA #3 | ||
Line 3,806: | Line 3,811: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
TYA | TYA | ||
Line 3,826: | Line 3,831: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Clobbers S; and requires @rts12 | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 3,847: | Line 3,852: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 3,853: | Line 3,858: | ||
=== 47 cycles === | === 47 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
LDY #8 | LDY #8 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDX #6 | LDX #6 | ||
Line 3,878: | Line 3,883: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDY #6 | LDY #6 | ||
Line 3,886: | Line 3,891: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
LDY #5 | LDY #5 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 3,895: | Line 3,900: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers A, and Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #5 | LDX #5 | ||
@X = * - 1 | @X = * - 1 | ||
Line 3,904: | Line 3,909: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers A, and X | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #8 | LDA #8 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #7 | LDY #7 | ||
Line 3,922: | Line 3,927: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 3,931: | Line 3,936: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 3,940: | Line 3,945: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 3,956: | Line 3,961: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 3,965: | Line 3,970: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 3,977: | Line 3,982: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 3,983: | Line 3,988: | ||
=== 48 cycles === | === 48 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #9 | LDX #9 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #9 | LDY #9 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #8 | LDY #8 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>SEC | |||
LDA #9 | LDA #9 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 4,034: | Line 4,039: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 4,043: | Line 4,048: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 4,054: | Line 4,059: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 4,063: | Line 4,068: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>BIT $00 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers Z&N, and V; and requires @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
|<pre>STA @zptemp | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @zptemp, and @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Clobbers S; and requires @rts14 | ||
|- | |- | ||
|<pre>NOP $00 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12</pre> || Requires @rts12 | ||
|- | |- | ||
|<pre>JMP *+3 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHA | PHA | ||
Line 4,124: | Line 4,129: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 4,136: | Line 4,141: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 4,151: | Line 4,156: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 4,157: | Line 4,162: | ||
=== 49 cycles === | === 49 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDX #6 | |||
@X: | @X: | ||
PHA | PHA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDX #4 | |||
@X: | @X: | ||
PHP | PHP | ||
PLP | PLP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #5 | LDX #5 | ||
Line 4,192: | Line 4,197: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers A, and X | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #5 | LDY #5 | ||
Line 4,202: | Line 4,207: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers A, and Y | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 4,211: | Line 4,216: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 4,220: | Line 4,225: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>NOP | |||
PLA | PLA | ||
SEC | SEC | ||
Line 4,228: | Line 4,233: | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 4,240: | Line 4,245: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 4,250: | Line 4,255: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 4,260: | Line 4,265: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 4,279: | Line 4,284: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 4,289: | Line 4,294: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 4,308: | Line 4,313: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 4,314: | Line 4,319: | ||
=== 50 cycles === | === 50 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #7 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #7 | |||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #6 | LDY #6 | ||
@Y: | @Y: | ||
Line 4,337: | Line 4,342: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #6 | LDX #6 | ||
@X: | @X: | ||
Line 4,345: | Line 4,350: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #9 | LDA #9 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #8 | LDA #8 | ||
Line 4,362: | Line 4,367: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #8 | LDA #8 | ||
Line 4,370: | Line 4,375: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TXA | TXA | ||
PHA | PHA | ||
Line 4,399: | Line 4,404: | ||
PLA | PLA | ||
TAX | TAX | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts12 | JSR @rts12 | ||
JSR @rts12 | JSR @rts12 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts12, and @rts14 | ||
|- | |- | ||
|<pre>NOP | |||
STA @zptemp | STA @zptemp | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @zptemp, and @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 4,421: | Line 4,426: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
|<pre>NOP | |||
NOP $00 | NOP $00 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
LDA $00 | LDA $00 | ||
Line 4,440: | Line 4,445: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 4,446: | Line 4,451: | ||
=== 51 cycles === | === 51 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDX #10 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #10 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 4,468: | Line 4,473: | ||
DEY | DEY | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #10 | LDX #10 | ||
@X = * - 1 | @X = * - 1 | ||
Line 4,477: | Line 4,482: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers A, and X | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #8 | LDX #8 | ||
Line 4,485: | Line 4,490: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>SEC | |||
LDA #6 | LDA #6 | ||
@A: | @A: | ||
PHA | PHA | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDX #8 | LDX #8 | ||
Line 4,502: | Line 4,507: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #4 | LDA #4 | ||
@A: | @A: | ||
Line 4,510: | Line 4,515: | ||
PLP | PLP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>TXA | |||
PHA | PHA | ||
LDX #5 | LDX #5 | ||
Line 4,523: | Line 4,528: | ||
BNE @X | BNE @X | ||
PLA | PLA | ||
TAX | TAX</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 4,547: | Line 4,552: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHA | PHA | ||
Line 4,557: | Line 4,562: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
TYA | TYA | ||
Line 4,578: | Line 4,583: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 4,589: | Line 4,594: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 4,610: | Line 4,615: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 4,616: | Line 4,621: | ||
=== 52 cycles === | === 52 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>SEC | |||
LDA #7 | LDA #7 | ||
@A: | @A: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #8 | LDY #8 | ||
Line 4,685: | Line 4,690: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #6 | LDY #6 | ||
Line 4,694: | Line 4,699: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #6 | LDX #6 | ||
Line 4,703: | Line 4,708: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #6 | LDA #6 | ||
Line 4,714: | Line 4,719: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #6 | LDA #6 | ||
Line 4,723: | Line 4,728: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 4,735: | Line 4,740: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 4,741: | Line 4,746: | ||
=== 53 cycles === | === 53 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>PLA | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #10 | LDX #10 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #10 | LDY #10 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #9 | LDY #9 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #9 | LDX #9 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #10 | LDA #10 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 4,795: | Line 4,800: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 4,804: | Line 4,809: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 4,815: | Line 4,820: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 4,824: | Line 4,829: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 4,839: | Line 4,844: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PLP | PLP | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
PHA | PHA | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Clobbers S; and requires @rts15 | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 4,867: | Line 4,872: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 4,873: | Line 4,878: | ||
=== 54 cycles === | === 54 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDY #10 | LDY #10 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDX #10 | LDX #10 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
Line 4,896: | Line 4,901: | ||
NOP | NOP | ||
DEY | DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDX #10 | LDX #10 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDX #10 | LDX #10 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDX #10 | LDX #10 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDX #10 | LDX #10 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDX #10 | LDX #10 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #7 | LDA #7 | ||
Line 4,938: | Line 4,943: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 4,947: | Line 4,952: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 4,956: | Line 4,961: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #6 | LDY #6 | ||
Line 4,968: | Line 4,973: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 4,978: | Line 4,983: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 4,988: | Line 4,993: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 5,001: | Line 5,006: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 5,011: | Line 5,016: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 5,024: | Line 5,029: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 5,030: | Line 5,035: | ||
=== 55 cycles === | === 55 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #248 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides SED | ; ^ Hides SED | ||
INY | INY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, Z&N, and D | ||
|- | |- | ||
|<pre>LDX #248 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides SED | ; ^ Hides SED | ||
INX | INX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and D | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>LDX #6 | |||
@X: | @X: | ||
PLA | PLA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDY #6 | |||
@Y: | @Y: | ||
NOP | NOP | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #6 | |||
@X: | @X: | ||
NOP | NOP | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #9 | LDY #9 | ||
Line 5,084: | Line 5,089: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #9 | LDX #9 | ||
Line 5,092: | Line 5,097: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #10 | LDA #10 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #9 | LDA #9 | ||
Line 5,109: | Line 5,114: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #9 | LDA #9 | ||
Line 5,117: | Line 5,122: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>JSR @rts12 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts12, @rts14, and @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 5,135: | Line 5,140: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
LDA $00 | LDA $00 | ||
Line 5,148: | Line 5,153: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 5,154: | Line 5,159: | ||
=== 56 cycles === | === 56 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #11 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #11 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #9 | LDX #9 | ||
Line 5,184: | Line 5,189: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #10 | LDA #10 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #4 | LDX #4 | ||
@X: | @X: | ||
Line 5,202: | Line 5,207: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>LDA $00 | |||
SEC | SEC | ||
LDA #10 | LDA #10 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PLA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 5,221: | Line 5,226: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 5,234: | Line 5,239: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 5,244: | Line 5,249: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHA | PHA | ||
Line 5,254: | Line 5,259: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
TYA | TYA | ||
Line 5,268: | Line 5,273: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 5,279: | Line 5,284: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>JSR @rts14 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 5,298: | Line 5,303: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 5,304: | Line 5,309: | ||
=== 57 cycles === | === 57 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDX #8 | |||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #8 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>CLC | |||
LDA #248 | LDA #248 | ||
@A = * - 1 | @A = * - 1 | ||
; ^ Hides SED | ; ^ Hides SED | ||
ADC #1 | ADC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, C, and D | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #7 | LDX #7 | ||
@X: | @X: | ||
Line 5,336: | Line 5,341: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #7 | LDY #7 | ||
@Y: | @Y: | ||
Line 5,344: | Line 5,349: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #10 | LDA #10 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #9 | LDY #9 | ||
Line 5,362: | Line 5,367: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 5,373: | Line 5,378: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 5,382: | Line 5,387: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 5,394: | Line 5,399: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 5,400: | Line 5,405: | ||
=== 58 cycles === | === 58 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #11 | LDX #11 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #11 | LDY #11 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #10 | LDY #10 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #10 | LDX #10 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #11 | LDA #11 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 5,446: | Line 5,451: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 5,455: | Line 5,460: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #4 | LDA #4 | ||
Line 5,467: | Line 5,472: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #4 | LDA #4 | ||
Line 5,477: | Line 5,482: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TXA | TXA | ||
PHA | PHA | ||
Line 5,492: | Line 5,497: | ||
PLA | PLA | ||
TAX | TAX | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>JSR @rts14 | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts14, and @rts15 | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14 | ||
JSR @rts14 | JSR @rts14</pre> || Requires @rts14 | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 5,517: | Line 5,522: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 5,532: | Line 5,537: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 5,538: | Line 5,543: | ||
=== 59 cycles === | === 59 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDX #11 | LDX #11 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDY #11 | LDY #11 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDY #8 | LDY #8 | ||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #136 | LDY #136 | ||
Line 5,575: | Line 5,580: | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDY #136 | LDY #136 | ||
Line 5,585: | Line 5,590: | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>SEC | |||
LDA #8 | LDA #8 | ||
@A: | @A: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #7 | LDX #7 | ||
Line 5,603: | Line 5,608: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #7 | LDA #7 | ||
Line 5,614: | Line 5,619: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #7 | LDA #7 | ||
Line 5,623: | Line 5,628: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 5,636: | Line 5,641: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 5,649: | Line 5,654: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 5,655: | Line 5,660: | ||
=== 60 cycles === | === 60 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PLA | |||
LDX #11 | LDX #11 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
LDY #11 | LDY #11 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDY #11 | LDY #11 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDX #11 | LDX #11 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #136 | LDY #136 | ||
Line 5,695: | Line 5,700: | ||
BMI @Y | BMI @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #10 | LDY #10 | ||
Line 5,703: | Line 5,708: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #10 | LDX #10 | ||
Line 5,711: | Line 5,716: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #10 | LDA #10 | ||
Line 5,721: | Line 5,726: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #10 | LDA #10 | ||
Line 5,729: | Line 5,734: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>JSR @rts15 | |||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15 | ||
JSR @rts15 | JSR @rts15</pre> || Requires @rts15 | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 5,747: | Line 5,752: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
LDA $00 | LDA $00 | ||
Line 5,760: | Line 5,765: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 5,766: | Line 5,771: | ||
=== 61 cycles === | === 61 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #12 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #12 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #10 | LDY #10 | ||
Line 5,787: | Line 5,792: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #10 | LDX #10 | ||
Line 5,795: | Line 5,800: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #11 | LDA #11 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDX #10 | LDX #10 | ||
Line 5,812: | Line 5,817: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 5,822: | Line 5,827: | ||
DEY | DEY | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #8 | LDA #8 | ||
Line 5,830: | Line 5,835: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #7 | LDY #7 | ||
Line 5,842: | Line 5,847: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 5,854: | Line 5,859: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 5,864: | Line 5,869: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 5,878: | Line 5,883: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 5,892: | Line 5,897: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 5,898: | Line 5,903: | ||
=== 62 cycles === | === 62 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDX #136 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
DEX | DEX | ||
BMI @X | BMI @X</pre> || Clobbers X, Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #248 | LDX #248 | ||
@X = * - 1 | @X = * - 1 | ||
Line 5,915: | Line 5,920: | ||
INX | INX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #248 | LDY #248 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 5,923: | Line 5,928: | ||
INY | INY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #11 | LDA #11 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #10 | LDY #10 | ||
Line 5,943: | Line 5,948: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 5,954: | Line 5,959: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 5,963: | Line 5,968: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 5,975: | Line 5,980: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 5,981: | Line 5,986: | ||
=== 63 cycles === | === 63 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #12 | LDX #12 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #12 | LDY #12 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #11 | LDX #11 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #11 | LDY #11 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>SEC | |||
LDA #12 | LDA #12 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 6,028: | Line 6,033: | ||
BMI @Y | BMI @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
TYA | TYA | ||
PHA | PHA | ||
Line 6,040: | Line 6,045: | ||
BMI @Y | BMI @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 6,049: | Line 6,054: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 6,058: | Line 6,063: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 6,069: | Line 6,074: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 6,078: | Line 6,083: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
TYA | TYA | ||
Line 6,093: | Line 6,098: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 6,105: | Line 6,110: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 6,120: | Line 6,125: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 6,126: | Line 6,131: | ||
=== 64 cycles === | === 64 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #9 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #9 | |||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #8 | LDY #8 | ||
@Y: | @Y: | ||
Line 6,149: | Line 6,154: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
Line 6,157: | Line 6,162: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
CLC | CLC | ||
LDA #248 | LDA #248 | ||
Line 6,168: | Line 6,173: | ||
ADC #1 | ADC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
CLC | CLC | ||
LDA #248 | LDA #248 | ||
Line 6,177: | Line 6,182: | ||
ADC #1 | ADC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, C, and D | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 6,190: | Line 6,195: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 6,203: | Line 6,208: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 6,209: | Line 6,214: | ||
=== 65 cycles === | === 65 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
| | |<pre>LDY #8 | ||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>LDX #8 | |||
@X: | @X: | ||
PHA | PHA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDY #12 | LDY #12 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDX #12 | LDX #12 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #11 | LDY #11 | ||
Line 6,248: | Line 6,253: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #11 | LDX #11 | ||
Line 6,256: | Line 6,261: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #12 | LDA #12 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #11 | LDA #11 | ||
Line 6,273: | Line 6,278: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #11 | LDA #11 | ||
Line 6,281: | Line 6,286: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 6,294: | Line 6,299: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 6,308: | Line 6,313: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 6,314: | Line 6,319: | ||
=== 66 cycles === | === 66 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #13 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #13 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>SEC | |||
LDA #9 | LDA #9 | ||
@A: | @A: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #11 | LDY #11 | ||
Line 6,342: | Line 6,347: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #11 | LDX #11 | ||
Line 6,350: | Line 6,355: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #8 | LDY #8 | ||
Line 6,361: | Line 6,366: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #8 | LDX #8 | ||
Line 6,370: | Line 6,375: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #248 | LDY #248 | ||
Line 6,380: | Line 6,385: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, Z&N, and D | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #8 | LDA #8 | ||
Line 6,391: | Line 6,396: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #8 | LDA #8 | ||
Line 6,400: | Line 6,405: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 6,413: | Line 6,418: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 6,419: | Line 6,424: | ||
=== 67 cycles === | === 67 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDY #6 | |||
@Y: | @Y: | ||
PHA | PHA | ||
PHA | PHA | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>LDX #6 | |||
@X: | @X: | ||
PHA | PHA | ||
PHA | PHA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>LDY #6 | |||
@Y: | @Y: | ||
NOP | NOP | ||
Line 6,444: | Line 6,449: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #6 | |||
@X: | @X: | ||
NOP | NOP | ||
Line 6,452: | Line 6,457: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>SEC | |||
LDA #8 | LDA #8 | ||
@A: | @A: | ||
PHA | PHA | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #11 | LDY #11 | ||
Line 6,470: | Line 6,475: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 6,479: | Line 6,484: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 6,488: | Line 6,493: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 6,501: | Line 6,506: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 6,510: | Line 6,515: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 6,522: | Line 6,527: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 6,528: | Line 6,533: | ||
=== 68 cycles === | === 68 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #13 | LDY #13 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #12 | LDY #12 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #12 | LDX #12 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #13 | LDA #13 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>TXA | |||
PHA | PHA | ||
LDX #8 | LDX #8 | ||
Line 6,575: | Line 6,580: | ||
BNE @X | BNE @X | ||
PLA | PLA | ||
TAX | TAX</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 6,584: | Line 6,589: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 6,593: | Line 6,598: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 6,605: | Line 6,610: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 6,615: | Line 6,620: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 6,629: | Line 6,634: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 6,643: | Line 6,648: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 6,649: | Line 6,654: | ||
=== 69 cycles === | === 69 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP | NOP | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #10 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides ASL A | ; ^ Hides ASL A | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, Z&N, and C | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
LDX #136 | LDX #136 | ||
@X = * - 1 | @X = * - 1 | ||
Line 6,686: | Line 6,691: | ||
DEX | DEX | ||
BMI @X | BMI @X | ||
PLP | PLP</pre> || Clobbers X, and Y | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | |||
PHP | |||
LDX #248 | |||
@X = * - 1 | |||
; ^ Hides SED | |||
INX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 6,724: | Line 6,739: | ||
INY | INY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>SEC | |||
LDA #6 | LDA #6 | ||
@A: | @A: | ||
Line 6,742: | Line 6,747: | ||
PHA | PHA | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 6,754: | Line 6,759: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 6,767: | Line 6,772: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 6,777: | Line 6,782: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 6,790: | Line 6,795: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 6,796: | Line 6,801: | ||
=== 70 cycles === | === 70 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PLA | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
LDY #13 | LDY #13 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDY #13 | LDY #13 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #12 | LDX #12 | ||
Line 6,835: | Line 6,840: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #12 | LDY #12 | ||
Line 6,843: | Line 6,848: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #13 | LDA #13 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #12 | LDA #12 | ||
Line 6,860: | Line 6,865: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #12 | LDA #12 | ||
Line 6,868: | Line 6,873: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
TYA | TYA | ||
Line 6,882: | Line 6,887: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers S, and Z&N | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
TYA | TYA | ||
Line 6,896: | Line 6,901: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 6,907: | Line 6,912: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
LDA $00 | LDA $00 | ||
Line 6,920: | Line 6,925: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 6,926: | Line 6,931: | ||
=== 71 cycles === | === 71 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #14 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #14 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #9 | LDX #9 | ||
@X: | @X: | ||
Line 6,947: | Line 6,952: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #9 | LDY #9 | ||
@Y: | @Y: | ||
Line 6,955: | Line 6,960: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #13 | LDA #13 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
SEC | SEC | ||
LDA #13 | LDA #13 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PLA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 6,983: | Line 6,988: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
CLC | CLC | ||
Line 6,996: | Line 7,001: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 7,002: | Line 7,007: | ||
=== 72 cycles === | === 72 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP | NOP | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDX #10 | LDX #10 | ||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides ASL A | ; ^ Hides ASL A | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP | NOP | ||
BMI @Y | BMI @Y</pre> || Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDX #10 | LDX #10 | ||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides ASL A | ; ^ Hides ASL A | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, Z&N, and C | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP | NOP | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP | NOP | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP | NOP | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 7,071: | Line 7,076: | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 7,079: | Line 7,084: | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #136 | LDX #136 | ||
Line 7,088: | Line 7,093: | ||
DEX | DEX | ||
BMI @X | BMI @X | ||
PLP | PLP</pre> || Clobbers X, Y, and S | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #13 | LDA #13 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #12 | LDY #12 | ||
Line 7,106: | Line 7,111: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
LDX #8 | LDX #8 | ||
@X: | @X: | ||
Line 7,114: | Line 7,119: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #8 | LDY #8 | ||
@Y: | @Y: | ||
Line 7,122: | Line 7,127: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 7,133: | Line 7,138: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 7,142: | Line 7,147: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 7,154: | Line 7,159: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 7,160: | Line 7,165: | ||
=== 73 cycles === | === 73 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #14 | LDY #14 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
| | |<pre>PHP | ||
LDY #13 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #14 | LDA #14 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #9 | LDA #9 | ||
Line 7,206: | Line 7,211: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #9 | LDA #9 | ||
Line 7,215: | Line 7,220: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 7,229: | Line 7,234: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N, and D | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 7,242: | Line 7,247: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 7,248: | Line 7,253: | ||
=== 74 cycles === | === 74 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDY #14 | LDY #14 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | |||
|- | |- | ||
|<pre>LDA $00 | |||
LDY #14 | LDY #14 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
| | |<pre>BIT $00 | ||
LDY #14 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDY #14 | LDY #14 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | ||
|- | |- | ||
| | |<pre>STA @zptemp | ||
LDX #14 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #14 | LDY #14 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDY #14 | LDY #14 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
| | |<pre>PHA | ||
PHP | |||
LDY #9 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | PHP | ||
LDX #9 | LDX #9 | ||
Line 7,336: | Line 7,350: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>NOP | |||
PLA | PLA | ||
SEC | SEC | ||
Line 7,353: | Line 7,358: | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 7,365: | Line 7,370: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>PHP | |||
LDY #6 | |||
@ | @Y: | ||
NOP | NOP | ||
NOP | NOP | ||
NOP | NOP | ||
DEY | |||
BNE @ | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #6 | |||
@ | @X: | ||
NOP | NOP | ||
NOP | NOP | ||
NOP | NOP | ||
DEX | |||
BNE @ | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 7,398: | Line 7,403: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 7,408: | Line 7,413: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 7,421: | Line 7,426: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 7,427: | Line 7,432: | ||
=== 75 cycles === | === 75 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PLA | |||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
LDY #14 | LDY #14 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDY #14 | LDY #14 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
| | |<pre>NOP | ||
PHP | |||
LDX #13 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | PHP | ||
LDY #13 | LDY #13 | ||
Line 7,466: | Line 7,479: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #14 | LDA #14 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #13 | LDA #13 | ||
Line 7,491: | Line 7,496: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #13 | LDA #13 | ||
Line 7,499: | Line 7,504: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TXA | TXA | ||
PHA | PHA | ||
Line 7,513: | Line 7,518: | ||
PLA | PLA | ||
TAX | TAX | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 7,524: | Line 7,529: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 7,538: | Line 7,543: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 7,544: | Line 7,549: | ||
=== 76 cycles === | === 76 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #15 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #15 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 7,565: | Line 7,570: | ||
NOP | NOP | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #10 | LDX #10 | ||
@X = * - 1 | @X = * - 1 | ||
Line 7,573: | Line 7,578: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers A, and X | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #13 | LDX #13 | ||
Line 7,583: | Line 7,588: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #14 | LDA #14 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDX #13 | LDX #13 | ||
Line 7,600: | Line 7,605: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>LDA $00 | |||
SEC | SEC | ||
LDA #14 | LDA #14 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PLA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 7,619: | Line 7,624: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>TXA | |||
PHA | PHA | ||
LDX #8 | |||
@ | @X: | ||
LDA $00 | LDA $00 | ||
DEX | |||
BNE @ | BNE @X | ||
PLA | PLA | ||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 7,641: | Line 7,646: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 7,651: | Line 7,656: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
TYA | TYA | ||
Line 7,665: | Line 7,670: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #6 | LDA #6 | ||
Line 7,676: | Line 7,681: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 7,690: | Line 7,695: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 7,696: | Line 7,701: | ||
=== 77 cycles === | === 77 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
LDY #14 | LDY #14 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 7,721: | Line 7,726: | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 7,729: | Line 7,734: | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #14 | LDA #14 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #13 | LDY #13 | ||
Line 7,747: | Line 7,752: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #13 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 7,756: | Line 7,770: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 7,776: | Line 7,781: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 7,785: | Line 7,790: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 7,797: | Line 7,802: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 7,803: | Line 7,808: | ||
=== 78 cycles === | === 78 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDX #11 | |||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #11 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
| | |<pre>PHP | ||
LDY #14 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #14 | LDX #14 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #15 | LDA #15 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 7,849: | Line 7,854: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 7,858: | Line 7,863: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 7,869: | Line 7,874: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 7,878: | Line 7,883: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PLP | PLP | ||
PHP | PHP | ||
Line 7,893: | Line 7,898: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 7,899: | Line 7,904: | ||
=== 79 cycles === | === 79 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
PHA | PHA | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
LDA $00 | LDA $00 | ||
BMI @Y | BMI @Y</pre> || Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
BIT $00 | BIT $00 | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, Z&N, and V | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
STA @zptemp | STA @zptemp | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>PHA | |||
LDX #15 | LDX #15 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP $00 | NOP $00 | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
JMP *+3 | JMP *+3 | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDX #15 | LDX #15 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDX #15 | LDX #15 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDX #15 | LDX #15 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDX #15 | LDX #15 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDX #15 | LDX #15 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #136 | LDY #136 | ||
Line 7,987: | Line 7,992: | ||
NOP | NOP | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #10 | LDX #10 | ||
Line 7,996: | Line 8,001: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers A, X, and S | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDY #136 | LDY #136 | ||
Line 8,007: | Line 8,012: | ||
NOP | NOP | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDA $00 | LDA $00 | ||
LDX #10 | LDX #10 | ||
Line 8,016: | Line 8,021: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers A, and X | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 8,025: | Line 8,030: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>NOP | |||
PLA | PLA | ||
SEC | SEC | ||
Line 8,033: | Line 8,038: | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 8,045: | Line 8,050: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 8,055: | Line 8,060: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 8,068: | Line 8,073: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 8,078: | Line 8,083: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 8,091: | Line 8,096: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 8,097: | Line 8,102: | ||
=== 80 cycles === | === 80 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDX #136 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP | NOP | ||
DEX | DEX | ||
BMI @X | BMI @X</pre> || Clobbers X, Y, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
LDX #15 | LDX #15 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
LDY #15 | LDY #15 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDY #11 | LDY #11 | ||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDX #11 | LDX #11 | ||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #14 | LDY #14 | ||
Line 8,143: | Line 8,148: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #14 | LDX #14 | ||
Line 8,151: | Line 8,156: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #11 | LDA #11 | ||
@A: | @A: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #14 | LDA #14 | ||
Line 8,168: | Line 8,173: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #14 | LDA #14 | ||
Line 8,176: | Line 8,181: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 8,189: | Line 8,194: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 8,195: | Line 8,200: | ||
=== 81 cycles === | === 81 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #16 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #16 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #14 | LDY #14 | ||
Line 8,216: | Line 8,221: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #14 | LDX #14 | ||
Line 8,224: | Line 8,229: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #15 | LDA #15 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
| | |<pre>PHP | ||
BIT $00 | |||
LDY #14 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDX #14 | LDX #14 | ||
Line 8,241: | Line 8,254: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>LDA $00 | |||
SEC | SEC | ||
LDA #15 | LDA #15 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PLA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 8,268: | Line 8,273: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
TYA | TYA | ||
Line 8,281: | Line 8,286: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 8,291: | Line 8,296: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHA | PHA | ||
Line 8,301: | Line 8,306: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
TYA | TYA | ||
Line 8,315: | Line 8,320: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 8,326: | Line 8,331: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 8,340: | Line 8,345: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 8,346: | Line 8,351: | ||
=== 82 cycles === | === 82 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
PHA | PHA | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
|<pre>LDX #9 | |||
@X: | @X: | ||
PLA | PLA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDX #9 | |||
@ | @X: | ||
NOP | NOP | ||
NOP | NOP | ||
DEX | |||
BNE @ | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #9 | |||
@ | @Y: | ||
NOP | NOP | ||
NOP | NOP | ||
DEY | |||
BNE @ | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #15 | LDA #15 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #14 | LDY #14 | ||
Line 8,396: | Line 8,401: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 8,405: | Line 8,410: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 8,414: | Line 8,419: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 8,425: | Line 8,430: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 8,434: | Line 8,439: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 8,446: | Line 8,451: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 8,452: | Line 8,457: | ||
=== 83 cycles === | === 83 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #16 | LDX #16 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #16 | LDY #16 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #15 | LDX #15 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #15 | LDY #15 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>SEC | |||
LDA #16 | LDA #16 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 8,498: | Line 8,503: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 8,507: | Line 8,512: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 8,518: | Line 8,523: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 8,527: | Line 8,532: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TXA | |||
PHA | PHA | ||
LDX #8 | |||
@ | @X: | ||
LDA $00 | LDA $00 | ||
DEX | |||
BNE @ | BNE @X | ||
PLA | PLA | ||
TAX | |||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 8,553: | Line 8,558: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 8,568: | Line 8,573: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 8,574: | Line 8,579: | ||
=== 84 cycles === | === 84 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDX #16 | LDX #16 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDY #16 | LDY #16 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDX #16 | LDX #16 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>LDA $00 | |||
LDY #16 | LDY #16 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDY #16 | LDY #16 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, Z&N, and V | ||
|- | |- | ||
|<pre>BIT $00 | |||
LDX #16 | LDX #16 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDX #16 | LDX #16 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>STA @zptemp | |||
LDY #16 | LDY #16 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDX #16 | LDX #16 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>NOP $00 | |||
LDY #16 | LDY #16 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDY #16 | LDY #16 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>JMP *+3 | |||
LDX #16 | LDX #16 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>SEC | |||
LDA #9 | LDA #9 | ||
@A: | @A: | ||
Line 8,661: | Line 8,666: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 8,670: | Line 8,675: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 8,679: | Line 8,684: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 8,691: | Line 8,696: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 8,701: | Line 8,706: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 8,711: | Line 8,716: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 8,724: | Line 8,729: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 8,734: | Line 8,739: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 8,747: | Line 8,752: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 8,753: | Line 8,758: | ||
=== 85 cycles === | === 85 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
| | |<pre>LDX #12 | ||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #12 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #11 | LDY #11 | ||
@Y: | @Y: | ||
Line 8,776: | Line 8,781: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #11 | LDX #11 | ||
@X: | @X: | ||
Line 8,784: | Line 8,789: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #16 | LDA #16 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #15 | LDA #15 | ||
Line 8,801: | Line 8,806: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #15 | LDA #15 | ||
Line 8,809: | Line 8,814: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 8,822: | Line 8,827: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
LDA $00 | LDA $00 | ||
Line 8,835: | Line 8,840: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 8,841: | Line 8,846: | ||
=== 86 cycles === | === 86 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
| | |<pre>LDY #17 | ||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #17 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 8,862: | Line 8,867: | ||
BIT $00 | BIT $00 | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #15 | LDX #15 | ||
Line 8,870: | Line 8,875: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #16 | LDA #16 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDX #15 | LDX #15 | ||
Line 8,887: | Line 8,892: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>LDA $00 | |||
SEC | SEC | ||
LDA #16 | LDA #16 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PLA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 8,906: | Line 8,911: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
TYA | TYA | ||
Line 8,919: | Line 8,924: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 8,929: | Line 8,934: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHA | PHA | ||
Line 8,939: | Line 8,944: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
TYA | TYA | ||
Line 8,953: | Line 8,958: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 8,964: | Line 8,969: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 8,978: | Line 8,983: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 8,984: | Line 8,989: | ||
=== 87 cycles === | === 87 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #248 | |||
@ | @Y = * - 1 | ||
; ^ Hides SED | ; ^ Hides SED | ||
PLA | PLA | ||
INY | |||
BNE @ | BNE @Y</pre> || Clobbers A, Y, S, Z&N, and D | ||
|- | |- | ||
|<pre>LDX #248 | |||
@ | @X = * - 1 | ||
; ^ Hides SED | ; ^ Hides SED | ||
PLA | PLA | ||
INX | |||
BNE @ | BNE @X</pre> || Clobbers A, X, S, Z&N, and D | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
| | |<pre>NOP | ||
LDY #12 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #12 | LDX #12 | ||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #136 | LDX #136 | ||
@X = * - 1 | @X = * - 1 | ||
Line 9,026: | Line 9,031: | ||
DEX | DEX | ||
BMI @X | BMI @X | ||
PLP | PLP</pre> || Clobbers X, and Y | ||
|- | |- | ||
|<pre>SEC | |||
LDA #12 | LDA #12 | ||
@A: | @A: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #15 | LDY #15 | ||
Line 9,044: | Line 9,049: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #11 | LDX #11 | ||
Line 9,053: | Line 9,058: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #11 | LDY #11 | ||
Line 9,062: | Line 9,067: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #11 | LDA #11 | ||
Line 9,073: | Line 9,078: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #11 | LDA #11 | ||
Line 9,082: | Line 9,087: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 9,094: | Line 9,099: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 9,100: | Line 9,105: | ||
=== 88 cycles === | === 88 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
| | |<pre>NOP | ||
LDX #17 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #17 | LDY #17 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #16 | LDY #16 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #16 | LDX #16 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #17 | LDA #17 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 9,146: | Line 9,151: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 9,155: | Line 9,160: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 9,166: | Line 9,171: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 9,175: | Line 9,180: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHA | PHA | ||
Line 9,190: | Line 9,195: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 9,202: | Line 9,207: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 9,217: | Line 9,222: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 9,223: | Line 9,228: | ||
=== 89 cycles === | === 89 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
PLA | PLA | ||
BMI @Y | BMI @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #136 | |||
@Y = * - 1 | @Y = * - 1 | ||
; ^ Hides DEY | ; ^ Hides DEY | ||
NOP | NOP | ||
NOP | NOP | ||
BMI @Y | BMI @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #10 | |||
@X = * - 1 | @X = * - 1 | ||
; ^ Hides ASL A | ; ^ Hides ASL A | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, Z&N, and C | ||
|- | |- | ||
|<pre>LDX #11 | |||
@X: | @X: | ||
PHA | PHA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDX #11 | |||
@X: | @X: | ||
LDA $00 | LDA $00 | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>LDX #11 | |||
@X: | @X: | ||
BIT $00 | BIT $00 | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>LDX #11 | |||
@X: | @X: | ||
STA @zptemp | STA @zptemp | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>LDX #11 | |||
@X: | @X: | ||
NOP $00 | NOP $00 | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>LDX #11 | |||
@X: | @X: | ||
JMP *+3 | JMP *+3 | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #9 | LDX #9 | ||
@X: | @X: | ||
Line 9,297: | Line 9,302: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #9 | LDY #9 | ||
@Y: | @Y: | ||
Line 9,306: | Line 9,311: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #12 | LDA #12 | ||
Line 9,314: | Line 9,319: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>TXA | |||
PHA | PHA | ||
LDX #11 | LDX #11 | ||
Line 9,326: | Line 9,331: | ||
BNE @X | BNE @X | ||
PLA | PLA | ||
TAX | TAX</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 9,339: | Line 9,344: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 9,349: | Line 9,354: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 9,362: | Line 9,367: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 9,368: | Line 9,373: | ||
=== 90 cycles === | === 90 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PLA | |||
LDX #17 | LDX #17 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
LDY #17 | LDY #17 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
| | |<pre>NOP | ||
NOP | |||
LDY #17 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | NOP | ||
LDX #17 | LDX #17 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #16 | LDY #16 | ||
Line 9,407: | Line 9,412: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #16 | LDX #16 | ||
Line 9,415: | Line 9,420: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #17 | LDA #17 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #16 | LDA #16 | ||
Line 9,432: | Line 9,437: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #16 | LDA #16 | ||
Line 9,440: | Line 9,445: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 9,453: | Line 9,458: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
LDA $00 | LDA $00 | ||
Line 9,466: | Line 9,471: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 9,472: | Line 9,477: | ||
=== 91 cycles === | === 91 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #18 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #18 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #16 | LDX #16 | ||
Line 9,493: | Line 9,498: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDY #16 | LDY #16 | ||
Line 9,501: | Line 9,506: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y, and S | ||
|- | |- | ||
|<pre>SEC | |||
LDA #11 | LDA #11 | ||
@A: | @A: | ||
PHA | PHA | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDY #16 | LDY #16 | ||
Line 9,518: | Line 9,523: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
BIT $00 | BIT $00 | ||
LDX #16 | LDX #16 | ||
Line 9,526: | Line 9,531: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>LDA $00 | |||
SEC | SEC | ||
LDA #17 | LDA #17 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PLA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 9,545: | Line 9,550: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #9 | LDA #9 | ||
Line 9,557: | Line 9,562: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #9 | LDA #9 | ||
Line 9,567: | Line 9,572: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
TYA | TYA | ||
Line 9,581: | Line 9,586: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 9,595: | Line 9,600: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 9,601: | Line 9,606: | ||
=== 92 cycles === | === 92 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
| | |<pre>LDX #13 | ||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #13 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
| | |<pre>PHP | ||
LDX #12 | LDY #12 | ||
@X: | @Y: | ||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #12 | |||
@X: | |||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #17 | LDA #17 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #16 | LDY #16 | ||
Line 9,650: | Line 9,655: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 9,661: | Line 9,666: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 9,670: | Line 9,675: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 9,682: | Line 9,687: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 9,688: | Line 9,693: | ||
=== 93 cycles === | === 93 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #18 | LDX #18 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #18 | LDY #18 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
| | |<pre>PHP | ||
LDX #17 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #17 | LDY #17 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>SEC | |||
LDA #18 | LDA #18 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 9,734: | Line 9,739: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 9,743: | Line 9,748: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 9,754: | Line 9,759: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 9,763: | Line 9,768: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHA | PHA | ||
Line 9,778: | Line 9,783: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
PHP | PHP | ||
Line 9,790: | Line 9,795: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
NOP | NOP | ||
Line 9,805: | Line 9,810: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 9,811: | Line 9,816: | ||
=== 94 cycles === | === 94 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PHA | |||
LDX #18 | LDX #18 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
|<pre>PHA | |||
LDY #18 | LDY #18 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
| | |<pre>NOP | ||
LDY #13 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>SEC | |||
LDA #13 | LDA #13 | ||
@A: | @A: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #12 | LDY #12 | ||
Line 9,860: | Line 9,865: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #12 | LDX #12 | ||
Line 9,869: | Line 9,874: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #12 | LDA #12 | ||
Line 9,880: | Line 9,885: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #12 | LDA #12 | ||
Line 9,889: | Line 9,894: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 9,902: | Line 9,907: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 9,915: | Line 9,920: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 9,921: | Line 9,926: | ||
=== 95 cycles === | === 95 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>PLA | |||
LDX #18 | LDX #18 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>PLA | |||
LDY #18 | LDY #18 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDY #18 | LDY #18 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
LDX #18 | LDX #18 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
| | |<pre>NOP | ||
PHP | |||
LDY #17 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | PHP | ||
LDX #17 | LDX #17 | ||
Line 9,960: | Line 9,973: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #18 | LDA #18 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #17 | LDA #17 | ||
Line 9,985: | Line 9,990: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #17 | LDA #17 | ||
Line 9,993: | Line 9,998: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 10,006: | Line 10,011: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
LDA $00 | LDA $00 | ||
Line 10,019: | Line 10,024: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 10,025: | Line 10,030: | ||
=== 96 cycles === | === 96 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>LDY #19 | |||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #19 | |||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #136 | LDY #136 | ||
@Y = * - 1 | @Y = * - 1 | ||
Line 10,047: | Line 10,052: | ||
NOP | NOP | ||
BMI @Y | BMI @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #10 | LDX #10 | ||
@X = * - 1 | @X = * - 1 | ||
Line 10,056: | Line 10,061: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers A, and X | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
LDX #17 | LDX #17 | ||
Line 10,064: | Line 10,069: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X, and S | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #18 | LDA #18 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #11 | LDX #11 | ||
@X: | @X: | ||
Line 10,081: | Line 10,086: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #13 | LDA #13 | ||
Line 10,089: | Line 10,094: | ||
NOP | NOP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>TXA | |||
PHA | PHA | ||
LDX #12 | |||
@ | @X: | ||
NOP | NOP | ||
DEX | |||
BNE @ | BNE @X | ||
PLA | PLA | ||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 10,113: | Line 10,118: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 10,123: | Line 10,128: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TXA | TXA | ||
PHA | PHA | ||
Line 10,137: | Line 10,142: | ||
PLA | PLA | ||
TAX | TAX | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 10,151: | Line 10,156: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 10,157: | Line 10,162: | ||
=== 97 cycles === | === 97 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
| | |<pre>LDY #12 | ||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>LDX #12 | |||
@X: | @X: | ||
PHA | PHA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #8 | |||
@Y: | @Y: | ||
PHP | |||
PLP | |||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #8 | |||
@X: | @X: | ||
PHP | PHP | ||
PLP | PLP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PLA | |||
SEC | SEC | ||
LDA #18 | LDA #18 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>TYA | |||
PHA | PHA | ||
LDY #17 | LDY #17 | ||
Line 10,206: | Line 10,211: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
LDX #17 | |||
@ | @X: | ||
DEX | |||
BNE @ | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
LDY #17 | |||
@ | @Y: | ||
DEY | |||
BNE @ | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
SEC | SEC | ||
Line 10,235: | Line 10,240: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>NOP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 10,244: | Line 10,249: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 10,256: | Line 10,261: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 10,262: | Line 10,267: | ||
=== 98 cycles === | === 98 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>NOP | |||
LDX #19 | LDX #19 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>NOP | |||
LDY #19 | LDY #19 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDX #18 | LDX #18 | ||
@X: | @X: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>PHP | |||
LDY #18 | LDY #18 | ||
@Y: | @Y: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>SEC | |||
LDA #19 | LDA #19 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
SEC | SEC | ||
Line 10,308: | Line 10,313: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A, and S | ||
|- | |- | ||
|<pre>PHA | |||
PHA | PHA | ||
SEC | SEC | ||
Line 10,317: | Line 10,322: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #11 | LDA #11 | ||
Line 10,328: | Line 10,333: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
LDA $00 | LDA $00 | ||
SEC | SEC | ||
Line 10,337: | Line 10,342: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
SEC | SEC | ||
Line 10,351: | Line 10,356: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 10,357: | Line 10,362: | ||
=== 99 cycles === | === 99 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDX #14 | |||
@X: | @X: | ||
NOP | NOP | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>LDY #14 | |||
@Y: | @Y: | ||
NOP | NOP | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>PHP | |||
LDY #13 | LDY #13 | ||
@Y: | @Y: | ||
Line 10,380: | Line 10,385: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>PHP | |||
LDX #13 | LDX #13 | ||
@X: | @X: | ||
Line 10,388: | Line 10,393: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>SEC | |||
LDA #12 | LDA #12 | ||
@A: | @A: | ||
PHA | PHA | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>SEC | |||
LDA #8 | LDA #8 | ||
@A: | @A: | ||
Line 10,405: | Line 10,410: | ||
PLP | PLP | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>NOP | |||
TYA | TYA | ||
PHA | PHA | ||
Line 10,417: | Line 10,422: | ||
BNE @Y | BNE @Y | ||
PLA | PLA | ||
TAY | TAY</pre> || Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>PHA | |||
TYA | TYA | ||
PHA | PHA | ||
Line 10,430: | Line 10,435: | ||
PLA | PLA | ||
TAY | TAY | ||
PLA | PLA</pre> || Clobbers Z&N | ||
|- | |- | ||
|<pre>NOP | |||
NOP | NOP | ||
PHP | PHP | ||
Line 10,440: | Line 10,445: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
PHA | PHA | ||
Line 10,453: | Line 10,458: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |- | ||
|} | |} | ||
Line 10,459: | Line 10,464: | ||
=== 100 cycles === | === 100 cycles === | ||
{| class="wikitable" | {| class="wikitable testtable" | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>LDY #11 | |||
@Y: | @Y: | ||
PLA | PLA | ||
DEY | DEY | ||
BNE @Y | BNE @Y</pre> || Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
|<pre>LDX #11 | |||
@X: | @X: | ||
PLA | PLA | ||
DEX | DEX | ||
BNE @X | BNE @X</pre> || Clobbers A, X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>LDY #11 | |||
@ | @Y: | ||
NOP | NOP | ||
NOP | NOP | ||
DEY | |||
BNE @ | BNE @Y</pre> || Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>LDX #11 | |||
@ | @X: | ||
NOP | NOP | ||
NOP | NOP | ||
DEX | |||
BNE @ | BNE @X</pre> || Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDY #18 | LDY #18 | ||
Line 10,498: | Line 10,503: | ||
DEY | DEY | ||
BNE @Y | BNE @Y | ||
PLP | PLP</pre> || Clobbers Y | ||
|- | |- | ||
|<pre>NOP | |||
PHP | PHP | ||
LDX #18 | LDX #18 | ||
Line 10,506: | Line 10,511: | ||
DEX | DEX | ||
BNE @X | BNE @X | ||
PLP | PLP</pre> || Clobbers X | ||
|- | |- | ||
|<pre>NOP | |||
SEC | SEC | ||
LDA #19 | LDA #19 | ||
@A: | @A: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A</pre> || Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>PHP | |||
SEC | SEC | ||
LDA #18 | LDA #18 | ||
Line 10,523: | Line 10,528: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLP | PLP</pre> || Clobbers A | ||
|- | |- | ||
|<pre>PHA | |||
SEC | SEC | ||
LDA #18 | LDA #18 | ||
Line 10,531: | Line 10,536: | ||
SBC #1 | SBC #1 | ||
BNE @A | BNE @A | ||
PLA | PLA</pre> || Clobbers Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>PHA | |||
PHP | PHP | ||
PHA | PHA | ||
Line 10,544: | Line 10,549: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP | PLP</pre> || Clobbers S | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>PHP | |||
PHA | PHA | ||
LDA $00 | LDA $00 | ||
Line 10,557: | Line 10,562: | ||
BNE @A | BNE @A | ||
PLA | PLA | ||
PLP</ | PLP</pre> || Clobbers nothing, requires nothing | ||
|- | |||
|} | |||
=== 101 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #20 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #14 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #18 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #18 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #13 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #13 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #13 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #13 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #12 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 102 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #14 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #14 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #11 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #11 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #18 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #18 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #18 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #18 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 103 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #19 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #19 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #13 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #18 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #13 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #13 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #12 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #12 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 104 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #8 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #8 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #18 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #17 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #18 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 105 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #13 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>LDY #13 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #19 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #19 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #11 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 106 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #21 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #14 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #14 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #18 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #8 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #8 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #17 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 107 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
DEY | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #24 | |||
@X = * - 1 | |||
; ^ Hides CLC | |||
DEX | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #13 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #19 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHP | |||
LDX #11 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #11 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 108 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #14 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #14 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #13 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 109 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDX #9 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #9 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>CLC | |||
LDA #244 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
ADC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #14 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #14 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #13 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #19 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #11 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #11 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #18 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 110 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #13 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #13 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 111 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #22 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #20 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #9 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #19 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #11 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #14 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #14 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #18 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 112 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHP | |||
LDX #13 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #13 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 113 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #16 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #8 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 114 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #24 | |||
@X = * - 1 | |||
; ^ Hides CLC | |||
DEX | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
DEY | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #19 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 115 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #16 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #16 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #14 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 116 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #23 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #23 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #9 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #9 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
|<pre>PHP | |||
CLC | |||
LDA #244 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
ADC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A; and requires support for unofficial opcodes | |||
|- | |||
|<pre>PHA | |||
CLC | |||
LDA #244 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
ADC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #13 | |||
@X: | |||
LDA $00 | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #19 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 117 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDX #13 | |||
@X = * - 1 | |||
; ^ Hides ORA abs | |||
LDA $0 | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDY #13 | |||
@Y = * - 1 | |||
; ^ Hides ORA abs | |||
LDA $0 | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #16 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 118 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #23 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
DEY | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #9 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #9 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #11 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #14 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 119 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #136 | |||
@Y = * - 1 | |||
; ^ Hides DEY | |||
PHP | |||
PLP | |||
BMI @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TXA | |||
PHA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDY #21 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 120 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #17 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #17 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #16 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 121 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #24 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TXA | |||
PHA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
TXA | |||
PHA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #20 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 122 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #17 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #17 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #16 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #16 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #16 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 123 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #24 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #23 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
CLC | |||
LDA #244 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
ADC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #13 | |||
@X: | |||
LDA $00 | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 124 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|4 bytes | |||
|- | |||
|<pre>LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #13 | |||
@X = * - 1 | |||
; ^ Hides ORA abs | |||
LDA $0 | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers A, and X | |||
|- | |||
|<pre>PHP | |||
LDY #13 | |||
@Y = * - 1 | |||
; ^ Hides ORA abs | |||
LDA $0 | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers A, and Y | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #22 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #16 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #16 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 125 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #24 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #24 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #23 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
DEY | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #9 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 126 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #25 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #136 | |||
@Y = * - 1 | |||
; ^ Hides DEY | |||
PHP | |||
PLP | |||
BMI @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #23 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
TXA | |||
PHA | |||
LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TXA | |||
PHA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #16 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 127 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #18 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #18 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #17 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #17 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #23 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 128 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #25 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #24 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHA | |||
TXA | |||
PHA | |||
LDX #21 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 129 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #16 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>LDX #16 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #18 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #18 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #18 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #17 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #17 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #22 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #16 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 130 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #25 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #24 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 131 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>SEC | |||
LDA #16 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #18 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #17 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #16 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 132 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
PLA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>TSX | |||
PLA | |||
TXS | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #16 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #16 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDX #25 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #24 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 133 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #26 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #25 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #26 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TXA | |||
PHA | |||
LDX #16 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #16 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 134 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #19 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #19 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #18 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #18 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #23 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 135 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #26 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #26 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #25 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #23 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 136 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #19 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #25 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #16 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #16 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #18 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 137 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #17 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>LDY #17 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDX #17 | |||
@X: | |||
LDA $00 | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDY #17 | |||
@Y: | |||
LDA $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDX #17 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>LDY #17 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>LDY #17 | |||
@Y: | |||
STA @zptemp | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>LDX #17 | |||
@X: | |||
STA @zptemp | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>LDY #17 | |||
@Y: | |||
NOP $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>LDX #17 | |||
@X: | |||
NOP $00 | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>LDX #17 | |||
@X: | |||
JMP *+3 | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #17 | |||
@Y: | |||
JMP *+3 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #26 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #25 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 138 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #26 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #18 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #16 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #17 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 139 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #136 | |||
@Y = * - 1 | |||
; ^ Hides DEY | |||
NOP | |||
PHP | |||
PLP | |||
BMI @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>JSR @rts15 | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @rts15 | |||
|- | |||
|<pre>LDA $00 | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>SEC | |||
LDA #17 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
TSX | |||
PLA | |||
TXS | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLP</pre> || Clobbers A, and X | |||
|- | |||
|<pre>SEC | |||
LDA #17 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, C, and V | |||
|- | |||
|<pre>SEC | |||
LDA #17 | |||
@A: | |||
STA @zptemp | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C; and requires @zptemp | |||
|- | |||
|<pre>PLA | |||
TXA | |||
PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #25 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>SEC | |||
LDA #17 | |||
@A: | |||
NOP $00 | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDX #25 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 140 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #26 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #26 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #26 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 141 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #28 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #19 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #19 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
TYA | |||
PHA | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #24 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 142 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #152 | |||
@Y = * - 1 | |||
; ^ Hides TYA | |||
NOP | |||
DEY | |||
DEY | |||
BMI @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDX #152 | |||
@X = * - 1 | |||
; ^ Hides TYA | |||
NOP | |||
DEX | |||
DEX | |||
BMI @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>LDY #26 | |||
@Y = * - 1 | |||
; ^ Hides !NOP | |||
NOP | |||
DEY | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>LDX #26 | |||
@X = * - 1 | |||
; ^ Hides !NOP | |||
NOP | |||
DEX | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #26 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #26 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 143 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #19 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 144 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #17 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #17 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #26 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 145 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #18 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>LDX #18 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #12 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #12 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
TXA | |||
PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers S, and Z&N | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #18 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #16 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 146 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #29 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #136 | |||
@Y = * - 1 | |||
; ^ Hides DEY | |||
NOP | |||
PHP | |||
PLP | |||
BMI @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #17 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, C, and V | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
STA @zptemp | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C; and requires @zptemp | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP $00 | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 147 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #18 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #18 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #12 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #12 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>SEC | |||
LDA #18 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #26 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 148 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #21 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
TXA | |||
PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers S, and Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #25 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #25 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 149 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #152 | |||
@X = * - 1 | |||
; ^ Hides TYA | |||
NOP | |||
DEX | |||
DEX | |||
BMI @X | |||
PLP</pre> || Clobbers A, and X | |||
|- | |||
|<pre>PHP | |||
LDY #152 | |||
@Y = * - 1 | |||
; ^ Hides TYA | |||
NOP | |||
DEY | |||
DEY | |||
BMI @Y | |||
PLP</pre> || Clobbers A, and Y | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #18 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
|<pre>PHP | |||
LDX #26 | |||
@X = * - 1 | |||
; ^ Hides !NOP | |||
NOP | |||
DEX | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X; and requires support for unofficial opcodes | |||
|- | |||
|<pre>PHP | |||
LDY #26 | |||
@Y = * - 1 | |||
; ^ Hides !NOP | |||
NOP | |||
DEY | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDX #27 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #26 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 150 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #21 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #21 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 151 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #30 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #30 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
TYA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #26 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #26 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 152 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #21 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHP | |||
LDX #12 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #12 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 153 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #234 | |||
@Y = * - 1 | |||
; ^ Hides NOP | |||
INY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #234 | |||
@X = * - 1 | |||
; ^ Hides NOP | |||
INX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #30 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 154 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #30 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #30 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #17 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #17 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #28 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TXA | |||
PHA | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #12 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #12 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 155 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #22 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #22 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>CLC | |||
LDA #234 | |||
@A = * - 1 | |||
; ^ Hides NOP | |||
ADC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #21 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 156 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #31 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #30 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TXA | |||
PHA | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #12 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 157 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #234 | |||
@X = * - 1 | |||
; ^ Hides NOP | |||
INX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #234 | |||
@Y = * - 1 | |||
; ^ Hides NOP | |||
INY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #13 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #13 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #22 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #21 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #21 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 158 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #30 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #30 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 159 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
CLC | |||
LDA #234 | |||
@A = * - 1 | |||
; ^ Hides NOP | |||
ADC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #13 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #29 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #21 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #21 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 160 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #234 | |||
@X = * - 1 | |||
; ^ Hides NOP | |||
INX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #234 | |||
@Y = * - 1 | |||
; ^ Hides NOP | |||
INY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #30 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #30 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 161 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #32 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #30 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #30 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #17 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #17 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TXA | |||
PHA | |||
LDX #28 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #21 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 162 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #23 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #23 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #22 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #22 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
CLC | |||
LDA #234 | |||
@A = * - 1 | |||
; ^ Hides NOP | |||
ADC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
CLC | |||
LDA #234 | |||
@A = * - 1 | |||
; ^ Hides NOP | |||
ADC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 163 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #32 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #30 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #30 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #12 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 164 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #32 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #23 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #23 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #23 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #234 | |||
@Y = * - 1 | |||
; ^ Hides NOP | |||
INY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHP | |||
LDY #13 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #13 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #22 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #29 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 165 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #32 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #32 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 166 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #33 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #33 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #23 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #22 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #13 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #13 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 167 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #24 | |||
@X = * - 1 | |||
; ^ Hides CLC | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #31 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #30 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 168 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #33 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #33 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #32 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #21 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #21 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 169 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #24 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #24 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #23 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #23 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
CLC | |||
LDA #234 | |||
@A = * - 1 | |||
; ^ Hides NOP | |||
ADC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 170 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #200 | |||
@Y = * - 1 | |||
; ^ Hides INY | |||
INY | |||
INY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #24 | |||
@X = * - 1 | |||
; ^ Hides CLC | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>LDX #90 | |||
@X = * - 1 | |||
; ^ Hides !NOP | |||
INX | |||
INX | |||
BPL @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #33 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #32 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #30 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #17 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 171 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #34 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #24 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #32 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #23 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #23 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #23 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #234 | |||
@Y = * - 1 | |||
; ^ Hides NOP | |||
INY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 172 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #19 | |||
@Y: | |||
PLA | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
|<pre>LDX #19 | |||
@X: | |||
PLA | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #19 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #19 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #32 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 173 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #34 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #33 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #33 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #23 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #23 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #22 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #13 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 174 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
NOP | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #152 | |||
@Y = * - 1 | |||
; ^ Hides TYA | |||
DEY | |||
BMI @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #24 | |||
@X = * - 1 | |||
; ^ Hides CLC | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #19 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 175 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #34 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #34 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #33 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #33 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 176 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #24 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #24 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
TYA | |||
PHA | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #31 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 177 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #22 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>LDY #22 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #22 | |||
@Y: | |||
LDA $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDX #22 | |||
@X: | |||
LDA $00 | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDX #22 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>LDY #22 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>LDX #22 | |||
@X: | |||
STA @zptemp | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>LDY #22 | |||
@Y: | |||
STA @zptemp | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>LDY #22 | |||
@Y: | |||
NOP $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>LDX #22 | |||
@X: | |||
NOP $00 | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #200 | |||
@Y = * - 1 | |||
; ^ Hides INY | |||
INY | |||
INY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDX #22 | |||
@X: | |||
JMP *+3 | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #24 | |||
@X = * - 1 | |||
; ^ Hides CLC | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
|<pre>PHP | |||
LDX #90 | |||
@X = * - 1 | |||
; ^ Hides !NOP | |||
INX | |||
INX | |||
BPL @X | |||
PLP</pre> || Clobbers X; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #33 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #33 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 178 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #34 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #24 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 179 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #21 | |||
@X = * - 1 | |||
; ^ Hides ORA zp,X | |||
DEX ;first round only | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDY #21 | |||
@Y = * - 1 | |||
; ^ Hides ORA zp,X | |||
DEY ;first round only | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDX #216 | |||
@X = * - 1 | |||
; ^ Hides CLD | |||
INX | |||
INX | |||
BNE @X</pre> || Clobbers X, Z&N, and D | |||
|- | |||
|<pre>LDY #216 | |||
@Y = * - 1 | |||
; ^ Hides CLD | |||
INY | |||
INY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and D | |||
|- | |||
|<pre>PHA | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>LDX #20 | |||
@X = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>LDY #20 | |||
@Y = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDX #236 | |||
@X = * - 1 | |||
; ^ Hides CPX abs | |||
CMP #0 | |||
INX | |||
BNE @X</pre> || Clobbers X, Z&N, and C | |||
|- | |||
|<pre>LDY #236 | |||
@Y = * - 1 | |||
; ^ Hides CPX abs | |||
CMP #0 | |||
INY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and C | |||
|- | |||
|<pre>BIT $00 | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>SEC | |||
LDA #22 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #19 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #19 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #22 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, C, and V | |||
|- | |||
|<pre>SEC | |||
LDA #22 | |||
@A: | |||
STA @zptemp | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C; and requires @zptemp | |||
|- | |||
|<pre>SEC | |||
LDA #22 | |||
@A: | |||
NOP $00 | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TXA | |||
PHA | |||
LDX #33 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 180 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #34 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #23 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #23 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 181 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #36 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
NOP | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #152 | |||
@Y = * - 1 | |||
; ^ Hides TYA | |||
DEY | |||
BMI @Y | |||
PLP</pre> || Clobbers A, and Y | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
|<pre>SEC | |||
LDA #20 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
PLP | |||
PHP | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #200 | |||
@Y = * - 1 | |||
; ^ Hides INY | |||
INY | |||
INY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #19 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 182 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #236 | |||
@Y = * - 1 | |||
; ^ Hides CPX abs | |||
INC @zptemp | |||
INY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and C; and requires @zptemp | |||
|- | |||
|<pre>LDX #236 | |||
@X = * - 1 | |||
; ^ Hides CPX abs | |||
INC @zptemp | |||
INX | |||
BNE @X</pre> || Clobbers X, Z&N, and C; and requires @zptemp | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #34 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 183 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #32 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 184 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
NOP | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #152 | |||
@Y = * - 1 | |||
; ^ Hides TYA | |||
DEY | |||
BMI @Y | |||
PLP</pre> || Clobbers A, Y, and S | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #22 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #22 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #33 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 185 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #23 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>LDY #23 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #26 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #26 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #26 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #24 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 186 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #37 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #216 | |||
@Y = * - 1 | |||
; ^ Hides CLD | |||
INY | |||
INY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #216 | |||
@X = * - 1 | |||
; ^ Hides CLD | |||
INX | |||
INX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #22 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, C, and V | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
STA @zptemp | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C; and requires @zptemp | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
NOP $00 | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TXA | |||
PHA | |||
LDX #33 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #33 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 187 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #23 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #23 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #26 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #26 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>SEC | |||
LDA #23 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 188 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #20 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A; and requires support for unofficial opcodes | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #20 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #200 | |||
@Y = * - 1 | |||
; ^ Hides INY | |||
INY | |||
INY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 189 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>LDY #136 | |||
@Y = * - 1 | |||
; ^ Hides DEY | |||
JSR @rts14 | |||
BMI @Y</pre> || Clobbers Y, and Z&N; and requires @rts14 | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #236 | |||
@X = * - 1 | |||
; ^ Hides CPX abs | |||
INC @zptemp | |||
INX | |||
BNE @X | |||
PLP</pre> || Clobbers X; and requires @zptemp | |||
|- | |||
|<pre>PHP | |||
LDY #236 | |||
@Y = * - 1 | |||
; ^ Hides CPX abs | |||
INC @zptemp | |||
INY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y; and requires @zptemp | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #23 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDX #35 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 190 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #27 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #27 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #26 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #26 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 191 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
TYA | |||
PHA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #34 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 192 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #27 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #27 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHP | |||
LDY #23 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #23 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #26 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #26 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 193 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 194 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #36 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TXA | |||
PHA | |||
LDX #26 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #23 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #23 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #26 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 195 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #20 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp,X | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 196 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #39 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #37 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #23 | |||
@Y: | |||
LDA $00 | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #26 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 197 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #28 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #28 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #27 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #27 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 198 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #39 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #35 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #35 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 199 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
PHA | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
LDA $00 | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BIT $00 | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
STA @zptemp | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>PHA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
NOP $00 | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDX #22 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #22 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #28 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #27 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #27 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #36 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #26 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 200 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDX #39 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #39 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 201 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #40 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #22 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TXA | |||
PHA | |||
LDX #26 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLA | |||
TAX | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #26 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 202 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
PHA | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDX #39 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #38 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 203 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #40 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #39 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #23 | |||
@Y: | |||
LDA $00 | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #36 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #26 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 204 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #29 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #29 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #28 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #28 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #37 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 205 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #40 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #17 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #17 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #39 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #37 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 206 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #41 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
BIT $00 | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #29 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #22 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #28 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 207 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #233 | |||
@Y = * - 1 | |||
; ^ Hides SBC #imm | |||
BIT $EA ;hides 'NOP' | |||
INY | |||
BNE @Y</pre> || Clobbers A, Y, Z&N, C, and V | |||
|- | |||
|<pre>LDX #233 | |||
@X = * - 1 | |||
; ^ Hides SBC #imm | |||
BIT $EA ;hides 'NOP' | |||
INX | |||
BNE @X</pre> || Clobbers A, X, Z&N, C, and V | |||
|- | |||
|<pre>PHA | |||
LDX #29 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #29 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #17 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #17 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #39 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 208 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #40 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #28 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #22 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #27 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 209 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
LDA $00 | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
LDA $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
STA @zptemp | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
STA @zptemp | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
NOP $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
NOP $00 | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
JMP *+3 | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
JMP *+3 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #39 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDX #39 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 210 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #40 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 211 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #42 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #29 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #29 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #26 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
TYA | |||
PHA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #38 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #38 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 212 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #26 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #26 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHP | |||
LDX #17 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #17 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 213 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #29 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #28 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 214 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #233 | |||
@X = * - 1 | |||
; ^ Hides SBC #imm | |||
BIT $EA ;hides 'NOP' | |||
INX | |||
BNE @X | |||
PLP</pre> || Clobbers A, and X | |||
|- | |||
|<pre>PHP | |||
LDY #233 | |||
@Y = * - 1 | |||
; ^ Hides SBC #imm | |||
BIT $EA ;hides 'NOP' | |||
INY | |||
BNE @Y | |||
PLP</pre> || Clobbers A, and Y | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #29 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #29 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #17 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #17 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 215 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #24 | |||
@X = * - 1 | |||
; ^ Hides CLC | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #28 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #22 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 216 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #43 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #26 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #26 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #17 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #29 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 217 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #27 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>LDX #27 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #18 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #18 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 218 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #31 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #31 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #26 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #39 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #39 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 219 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>LDY #216 | |||
@Y = * - 1 | |||
; ^ Hides CLD | |||
NOP | |||
INY | |||
INY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and D | |||
|- | |||
|<pre>LDX #216 | |||
@X = * - 1 | |||
; ^ Hides CLD | |||
NOP | |||
INX | |||
INX | |||
BNE @X</pre> || Clobbers X, Z&N, and D | |||
|- | |||
|<pre>BIT $00 | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>SEC | |||
LDA #27 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #18 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDX #41 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 220 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #31 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #31 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #31 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 221 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #44 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #42 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
TYA | |||
PHA | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #40 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 222 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #24 | |||
@X = * - 1 | |||
; ^ Hides CLC | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 223 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #44 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #17 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #29 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #40 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 224 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
PLA | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
NOP | |||
NOP | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #152 | |||
@Y = * - 1 | |||
; ^ Hides TYA | |||
NOP | |||
DEY | |||
BMI @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDY #228 | |||
@Y = * - 1 | |||
; ^ Hides CPX zp | |||
NOP | |||
INY | |||
BNE @Y</pre> || Clobbers Y, Z&N, C, and V | |||
|- | |||
|<pre>PHA | |||
LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>LDY #100 | |||
@Y = * - 1 | |||
; ^ Hides !NOP zp | |||
NOP | |||
INY | |||
BPL @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>BIT $00 | |||
LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #18 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #18 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 225 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #32 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #32 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #31 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #31 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #26 | |||
@A: | |||
BIT $00 | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 226 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #45 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
|<pre>CLC | |||
LDA #100 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp | |||
NOP | |||
ADC #1 | |||
BPL @A</pre> || Clobbers A, Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
BIT $00 | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #18 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 227 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
PLA | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #32 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #32 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #32 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #31 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #31 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #31 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 228 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #45 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #44 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #41 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #41 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 229 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #45 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #19 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #19 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #32 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #43 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #31 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #31 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #31 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #31 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 230 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #45 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #45 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #44 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 231 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #46 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #232 | |||
@X = * - 1 | |||
; ^ Hides INX | |||
NOP | |||
NOP | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #228 | |||
@Y = * - 1 | |||
; ^ Hides CPX zp | |||
NOP | |||
INY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #19 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #31 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #42 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #31 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #42 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 232 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #33 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #33 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #32 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #32 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 233 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #46 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #45 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
|<pre>PHP | |||
CLC | |||
LDA #100 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp | |||
NOP | |||
ADC #1 | |||
BPL @A | |||
PLP</pre> || Clobbers A; and requires support for unofficial opcodes | |||
|- | |||
|<pre>PHA | |||
CLC | |||
LDA #100 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp | |||
NOP | |||
ADC #1 | |||
BPL @A | |||
PLA</pre> || Clobbers Z&N, and C; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
LDA $00 | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
LDA $00 | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #24 | |||
@Y = * - 1 | |||
; ^ Hides CLC | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #18 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 234 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #46 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #33 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #33 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #33 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #32 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #32 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #32 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #43 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 235 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
PLA | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
PLA | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #26 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #26 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #45 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 236 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #47 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #45 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #19 | |||
@Y: | |||
PHP | |||
PLP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #19 | |||
@X: | |||
PHP | |||
PLP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #33 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #32 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #32 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #31 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 237 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDX #46 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #26 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #26 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #45 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 238 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #47 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #46 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #19 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #31 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #43 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #31 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 239 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #34 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #34 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #33 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #33 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #44 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 240 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDX #47 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #47 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #46 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
|<pre>PHP | |||
PHA | |||
CLC | |||
LDA #100 | |||
@A = * - 1 | |||
; ^ Hides !NOP zp | |||
NOP | |||
ADC #1 | |||
BPL @A | |||
PLA | |||
PLP</pre> || Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
LDA $00 | |||
SEC | |||
LDA #44 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 241 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #48 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #34 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #46 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #33 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #33 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #33 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #33 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 242 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #202 | |||
@Y = * - 1 | |||
; ^ Hides DEX | |||
INY | |||
INY | |||
BNE @Y</pre> || Clobbers X, Y, and Z&N | |||
|- | |||
|<pre>LDY #74 | |||
@Y = * - 1 | |||
; ^ Hides LSR A | |||
INY | |||
INY | |||
BPL @Y</pre> || Clobbers A, Y, Z&N, and C | |||
|- | |||
|<pre>LDX #74 | |||
@X = * - 1 | |||
; ^ Hides LSR A | |||
INX | |||
INX | |||
BPL @X</pre> || Clobbers A, X, Z&N, and C | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #34 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #34 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDX #47 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHP | |||
LDX #26 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #26 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 243 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #47 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #33 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #33 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #33 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #32 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #32 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 244 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #27 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #27 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #46 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #26 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #26 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 245 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #47 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #19 | |||
@A: | |||
PHP | |||
PLP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 246 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDX #49 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>LDY #49 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #34 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #34 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #26 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #45 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #45 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 247 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #47 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 248 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>NOP | |||
LDY #49 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDX #49 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #49 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #34 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #33 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 249 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #31 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>LDX #31 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDY #31 | |||
@Y: | |||
LDA $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>LDX #31 | |||
@X: | |||
LDA $00 | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDY #31 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>LDX #31 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>LDX #31 | |||
@X: | |||
STA @zptemp | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>LDY #31 | |||
@Y: | |||
STA @zptemp | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>LDX #31 | |||
@X: | |||
NOP $00 | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>LDY #31 | |||
@Y: | |||
NOP $00 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>LDY #31 | |||
@Y: | |||
JMP *+3 | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #31 | |||
@X: | |||
JMP *+3 | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>PHP | |||
LDX #74 | |||
@X = * - 1 | |||
; ^ Hides LSR A | |||
INX | |||
INX | |||
BPL @X | |||
PLP</pre> || Clobbers A, and X | |||
|- | |||
|<pre>PHP | |||
LDY #74 | |||
@Y = * - 1 | |||
; ^ Hides LSR A | |||
INY | |||
INY | |||
BPL @Y | |||
PLP</pre> || Clobbers A, and Y | |||
|- | |||
|<pre>PHP | |||
LDY #202 | |||
@Y = * - 1 | |||
; ^ Hides DEX | |||
INY | |||
INY | |||
BNE @Y | |||
PLP</pre> || Clobbers X, and Y | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #34 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #34 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDX #47 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 250 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDY #49 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDX #49 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDX #49 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
LDY #49 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
SEC | |||
LDA #49 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #33 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #33 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 251 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #50 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #50 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>PHA | |||
PHP | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>SEC | |||
LDA #31 | |||
@A: | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDX #27 | |||
@X: | |||
NOP | |||
NOP | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>PHP | |||
LDY #27 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>LDA $00 | |||
SEC | |||
LDA #49 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PLA | |||
TYA | |||
PHA | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
TYA | |||
PHA | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #34 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 252 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHA | |||
LDY #31 | |||
@Y: | |||
PHA | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDX #31 | |||
@X: | |||
PHA | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>LDY #84 | |||
@Y = * - 1 | |||
; ^ Hides !NOP zp,X | |||
DEY ;first round only | |||
INY | |||
INY | |||
BPL @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>LDX #84 | |||
@X = * - 1 | |||
; ^ Hides !NOP zp,X | |||
DEX ;first round only | |||
INX | |||
INX | |||
BPL @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDY #49 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
LDX #49 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>PLA | |||
SEC | |||
LDA #49 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>NOP | |||
PHA | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 253 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>LDY #36 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #36 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #49 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #49 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #50 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>PHA | |||
PHP | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers S, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #27 | |||
@A: | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #26 | |||
@Y: | |||
NOP | |||
NOP | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers S | |||
|- | |||
!colspan="2"|14 bytes | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #46 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 254 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PHA | |||
LDX #50 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, S, and Z&N | |||
|- | |||
|<pre>PHA | |||
LDY #50 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>LDA $00 | |||
LDX #50 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, and Z&N | |||
|- | |||
|<pre>LDA $00 | |||
LDY #50 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, and Z&N | |||
|- | |||
|<pre>BIT $00 | |||
LDY #50 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, Z&N, and V | |||
|- | |||
|<pre>BIT $00 | |||
LDX #50 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, Z&N, and V | |||
|- | |||
|<pre>STA @zptemp | |||
LDX #50 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>STA @zptemp | |||
LDY #50 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires @zptemp | |||
|- | |||
|<pre>NOP $00 | |||
LDY #50 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>NOP $00 | |||
LDX #50 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>JMP *+3 | |||
LDY #50 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>JMP *+3 | |||
LDX #50 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X, and S | |||
|- | |||
|<pre>PHA | |||
PHA | |||
PHP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y, and S | |||
|- | |||
|<pre>NOP | |||
PLA | |||
SEC | |||
LDA #49 | |||
@A: | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>NOP | |||
TYA | |||
PHA | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>NOP | |||
NOP | |||
NOP | |||
PHP | |||
LDX #48 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>PHA | |||
TYA | |||
PHA | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>NOP | |||
NOP | |||
PHP | |||
SEC | |||
LDA #48 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
PHA | |||
SEC | |||
LDA #47 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 255 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>PLA | |||
LDX #50 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers A, X, S, and Z&N | |||
|- | |||
|<pre>PLA | |||
LDY #50 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers A, Y, S, and Z&N | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |||
|<pre>NOP | |||
LDX #36 | |||
@X: | |||
NOP | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
|<pre>NOP | |||
LDY #36 | |||
@Y: | |||
NOP | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
!colspan="2"|8 bytes | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDX #49 | |||
@X: | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>NOP | |||
PHP | |||
LDY #49 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>SEC | |||
LDA #36 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
SEC | |||
LDA #49 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLP</pre> || Clobbers A | |||
|- | |||
|<pre>PHA | |||
SEC | |||
LDA #49 | |||
@A: | |||
SBC #1 | |||
BNE @A | |||
PLA</pre> || Clobbers Z&N, and C | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
SEC | |||
LDA #34 | |||
@A: | |||
NOP | |||
SBC #1 | |||
BNE @A | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |||
|} | |||
=== 256 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>LDY #51 | |||
@Y: | |||
DEY | |||
BNE @Y</pre> || Clobbers Y, and Z&N | |||
|- | |||
|<pre>LDX #51 | |||
@X: | |||
DEX | |||
BNE @X</pre> || Clobbers X, and Z&N | |||
|- | |||
!colspan="2"|9 bytes | |||
|- | |||
|<pre>PHP | |||
LDY #31 | |||
@Y: | |||
BIT $00 | |||
DEY | |||
BNE @Y | |||
PLP</pre> || Clobbers Y | |||
|- | |||
|<pre>PHP | |||
LDX #31 | |||
@X: | |||
BIT $00 | |||
DEX | |||
BNE @X | |||
PLP</pre> || Clobbers X | |||
|- | |||
|<pre>SEC | |||
LDA #23 | |||
@A: | |||
PHA | |||
PHA | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, S, Z&N, and C | |||
|- | |||
!colspan="2"|10 bytes | |||
|- | |||
|<pre>SEC | |||
LDA #23 | |||
@A: | |||
NOP | |||
NOP | |||
NOP | |||
SBC #1 | |||
BNE @A</pre> || Clobbers A, Z&N, and C | |||
|- | |||
!colspan="2"|11 bytes | |||
|- | |||
|<pre>TYA | |||
PHA | |||
NOP | |||
NOP | |||
LDY #48 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY</pre> || Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|12 bytes | |||
|- | |||
|<pre>PHA | |||
NOP | |||
TYA | |||
PHA | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA</pre> || Clobbers Z&N | |||
|- | |||
|<pre>PHP | |||
NOP | |||
TYA | |||
PHA | |||
LDY #47 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLP</pre> || Clobbers A | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>PHP | |||
PHA | |||
TYA | |||
PHA | |||
LDY #46 | |||
@Y: | |||
DEY | |||
BNE @Y | |||
PLA | |||
TAY | |||
PLA | |||
PLP</pre> || Clobbers nothing, requires nothing | |||
|- | |- | ||
|} | |} |
Revision as of 02:48, 14 March 2016
Delay code
Shortest possible CPU code that creates N cycles of delay, depending on constraints.
All branch instructions assume that no page wrap occurs.
Explanations on the requirements:
- @zp_temp means you have a zeropage address that you can write random data into.
- @rts12 means you know a memory address that contains byte $60 (
RTS
). - @rts14 means you know a memory address that contains a harmless 2-cycle instruction that fits your constraints (such as
CLC
,LDA #0
, orNOP
), followed byRTS
. - @rts15 means you know a memory address that contains a
JMP
that jumps to another location that containsRTS
. - Alternatively, @rts15 means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as
LDA $00
), followed byRTS
. - @A, @X, @Y are local labels.
{{#css:
.testtable td{padding:2px} .testtable td pre{padding:2px;margin:2px}
}}
2 cycles
1 bytes | |
---|---|
NOP |
Clobbers nothing, requires nothing |
3 cycles
1 bytes | |
---|---|
PHA |
Clobbers S |
2 bytes | |
LDA $00 |
Clobbers A, and Z&N |
BIT $00 |
Clobbers Z&N, and V |
STA @zptemp |
Requires @zptemp |
NOP $00 |
Requires support for unofficial opcodes |
3 bytes | |
JMP *+3 |
Clobbers nothing, requires nothing |
4 cycles
1 bytes | |
---|---|
PLA |
Clobbers A, S, and Z&N |
2 bytes | |
NOP NOP |
Clobbers nothing, requires nothing |
5 cycles
2 bytes | |
---|---|
NOP PHA |
Clobbers S |
3 bytes | |
NOP LDA $00 |
Clobbers A, and Z&N |
NOP BIT $00 |
Clobbers Z&N, and V |
NOP STA @zptemp |
Requires @zptemp |
NOP NOP $00 |
Requires support for unofficial opcodes |
4 bytes | |
NOP JMP *+3 |
Clobbers nothing, requires nothing |
6 cycles
2 bytes | |
---|---|
PHA PHA |
Clobbers S |
3 bytes | |
NOP NOP NOP |
Clobbers nothing, requires nothing |
7 cycles
2 bytes | |
---|---|
PHP PLP |
Clobbers nothing, requires nothing |
8 cycles
2 bytes | |
---|---|
PLA PLA |
Clobbers A, S, and Z&N |
3 bytes | |
TSX PLA TXS |
Clobbers A, X, and Z&N |
NOP PHA PHA |
Clobbers S |
4 bytes | |
NOP NOP NOP NOP |
Clobbers nothing, requires nothing |
9 cycles
3 bytes | |
---|---|
NOP PHP PLP |
Clobbers nothing, requires nothing |
10 cycles
3 bytes | |
---|---|
PHA PHP PLP |
Clobbers S |
4 bytes | |
PHP BIT $00 PLP |
Clobbers nothing, requires nothing |
11 cycles
3 bytes | |
---|---|
PHA PLA PLA |
Clobbers A, S, and Z&N |
4 bytes | |
NOP NOP PHP PLP |
Clobbers nothing, requires nothing |
12 cycles
3 bytes | |
---|---|
JSR @rts12 |
Requires @rts12 |
PLA PLA PLA |
Clobbers A, S, and Z&N |
4 bytes | |
ROL $00,X ROR $00,X |
Clobbers Z&N |
NOP PHA PHP PLP |
Clobbers S |
5 bytes | |
NOP PHP BIT $00 PLP |
Clobbers nothing, requires nothing |
13 cycles
4 bytes | |
---|---|
PHA PHA PHP PLP |
Clobbers S |
5 bytes | |
NOP NOP NOP PHP PLP |
Clobbers nothing, requires nothing |
14 cycles
3 bytes | |
---|---|
JSR @rts14 |
Requires @rts14 |
4 bytes | |
PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
15 cycles
3 bytes | |
---|---|
JSR @rts15 |
Requires @rts15 |
4 bytes | |
PHA JSR @rts12 |
Clobbers S; and requires @rts12 |
PHA PLA PLA PLA |
Clobbers A, S, and Z&N |
5 bytes | |
LDA $00 JSR @rts12 |
Clobbers A, and Z&N; and requires @rts12 |
PHA TSX PLA TXS PLA |
Clobbers X, and Z&N |
PHP TSX PLA TXS PLP |
Clobbers A, and X |
BIT $00 JSR @rts12 |
Clobbers Z&N, and V; and requires @rts12 |
STA @zptemp JSR @rts12 |
Requires @zptemp, and @rts12 |
NOP PHA PHA PHP PLP |
Clobbers S |
NOP $00 JSR @rts12 |
Requires @rts12, and support for unofficial opcodes |
6 bytes | |
NOP NOP NOP NOP PHP PLP |
Clobbers nothing, requires nothing |
16 cycles
4 bytes | |
---|---|
NOP JSR @rts14 |
Requires @rts14 |
PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
5 bytes | |
NOP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
17 cycles
4 bytes | |
---|---|
NOP JSR @rts15 |
Requires @rts15 |
PHA JSR @rts14 |
Clobbers S; and requires @rts14 |
5 bytes | |
LDA $00 JSR @rts14 |
Clobbers A, and Z&N; and requires @rts14 |
BIT $00 JSR @rts14 |
Clobbers Z&N, and V; and requires @rts14 |
STA @zptemp JSR @rts14 |
Requires @zptemp, and @rts14 |
PHA PHP PLP PHP PLP |
Clobbers S |
NOP $00 JSR @rts14 |
Requires @rts14, and support for unofficial opcodes |
6 bytes | |
PHP PLP PHP BIT $00 PLP |
Clobbers nothing, requires nothing |
18 cycles
4 bytes | |
---|---|
PHA JSR @rts15 |
Clobbers S; and requires @rts15 |
PLA JSR @rts14 |
Clobbers A, S, and Z&N; and requires @rts14 |
5 bytes | |
LDA $00 JSR @rts15 |
Clobbers A, and Z&N; and requires @rts15 |
BIT $00 JSR @rts15 |
Clobbers Z&N, and V; and requires @rts15 |
NOP NOP JSR @rts14 |
Requires @rts14 |
STA @zptemp JSR @rts15 |
Requires @zptemp, and @rts15 |
PHA PHA JSR @rts12 |
Clobbers S; and requires @rts12 |
NOP PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
NOP $00 JSR @rts15 |
Requires @rts15, and support for unofficial opcodes |
6 bytes | |
NOP NOP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
19 cycles
4 bytes | |
---|---|
PLA JSR @rts15 |
Clobbers A, S, and Z&N; and requires @rts15 |
5 bytes | |
PHP PLP JSR @rts12 |
Requires @rts12 |
NOP NOP JSR @rts15 |
Requires @rts15 |
PHA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
NOP PHA JSR @rts14 |
Clobbers S; and requires @rts14 |
6 bytes | |
PHP ROL $00,X ROR $00,X PLP |
Clobbers nothing, requires nothing |
20 cycles
5 bytes | |
---|---|
NOP PHA JSR @rts15 |
Clobbers S; and requires @rts15 |
PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
PHA PHA JSR @rts14 |
Clobbers S; and requires @rts14 |
6 bytes | |
NOP LDA $00 JSR @rts15 |
Clobbers A, and Z&N; and requires @rts15 |
TSX PLA PLA PLA PLA TXS |
Clobbers A, X, and Z&N |
NOP BIT $00 JSR @rts15 |
Clobbers Z&N, and V; and requires @rts15 |
NOP NOP NOP JSR @rts14 |
Requires @rts14 |
NOP STA @zptemp JSR @rts15 |
Requires @zptemp, and @rts15 |
PHA PHA PHP PLP PHP PLP |
Clobbers S |
NOP NOP $00 JSR @rts15 |
Requires @rts15, and support for unofficial opcodes |
7 bytes | |
NOP NOP NOP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
21 cycles
5 bytes | |
---|---|
LDY #4 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #4 @X: DEX BNE @X |
Clobbers X, and Z&N |
PHP PLP JSR @rts14 |
Requires @rts14 |
PHA PHA JSR @rts15 |
Clobbers S; and requires @rts15 |
6 bytes | |
PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
22 cycles
5 bytes | |
---|---|
PHP PLP JSR @rts15 |
Requires @rts15 |
PLA PLA JSR @rts14 |
Clobbers A, S, and Z&N; and requires @rts14 |
6 bytes | |
LDY #3 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #3 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
PHA PHP PLP JSR @rts12 |
Clobbers S; and requires @rts12 |
NOP PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
NOP PHA PHA JSR @rts14 |
Clobbers S; and requires @rts14 |
7 bytes | |
PHP BIT $00 PLP JSR @rts12 |
Requires @rts12 |
PHP PHA TSX PLA TXS PLA PLP |
Clobbers X |
NOP NOP NOP NOP JSR @rts14 |
Requires @rts14 |
NOP PHA PHA PHP PLP PHP PLP |
Clobbers S |
8 bytes | |
NOP NOP NOP NOP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
23 cycles
5 bytes | |
---|---|
PLA PLA JSR @rts15 |
Clobbers A, S, and Z&N; and requires @rts15 |
6 bytes | |
NOP LDX #4 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #4 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP PHP PLP JSR @rts14 |
Requires @rts14 |
NOP PHA PHA JSR @rts15 |
Clobbers S; and requires @rts15 |
PHA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
7 bytes | |
NOP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
24 cycles
6 bytes | |
---|---|
JSR @rts12 JSR @rts12 |
Requires @rts12 |
NOP PHP PLP JSR @rts15 |
Requires @rts15 |
PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
PHA LDX #4 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #4 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHP PLP JSR @rts14 |
Clobbers S; and requires @rts14 |
7 bytes | |
NOP LDX #3 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #3 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
PHP BIT $00 PLP JSR @rts14 |
Requires @rts14 |
PHA PHP PLP PHP PLP PHP PLP |
Clobbers S |
8 bytes | |
PHP PLP PHP PLP PHP BIT $00 PLP |
Clobbers nothing, requires nothing |
25 cycles
6 bytes | |
---|---|
PHA PHP PLP JSR @rts15 |
Clobbers S; and requires @rts15 |
LDY #3 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #3 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
PHA PLA PLA JSR @rts14 |
Clobbers A, S, and Z&N; and requires @rts14 |
7 bytes | |
PHP BIT $00 PLP JSR @rts15 |
Requires @rts15 |
LDY #2 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #2 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP PHP PLP JSR @rts14 |
Requires @rts14 |
PHA PHA PHP PLP JSR @rts12 |
Clobbers S; and requires @rts12 |
NOP PHA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
8 bytes | |
NOP NOP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
26 cycles
5 bytes | |
---|---|
LDY #5 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #5 @X: DEX BNE @X |
Clobbers X, and Z&N |
6 bytes | |
JSR @rts12 JSR @rts14 |
Requires @rts12, and @rts14 |
PHA PLA PLA JSR @rts15 |
Clobbers A, S, and Z&N; and requires @rts15 |
PLA PLA PLA JSR @rts14 |
Clobbers A, S, and Z&N; and requires @rts14 |
7 bytes | |
NOP JSR @rts12 JSR @rts12 |
Requires @rts12 |
NOP NOP PHP PLP JSR @rts15 |
Requires @rts15 |
ROL $00,X ROR $00,X JSR @rts14 |
Clobbers Z&N; and requires @rts14 |
NOP PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
NOP PHA PHP PLP JSR @rts14 |
Clobbers S; and requires @rts14 |
8 bytes | |
PHP PLP PHP ROL $00,X ROR $00,X PLP |
Clobbers nothing, requires nothing |
27 cycles
6 bytes | |
---|---|
JSR @rts12 JSR @rts15 |
Requires @rts12, and @rts15 |
PLA PLA PLA JSR @rts15 |
Clobbers A, S, and Z&N; and requires @rts15 |
7 bytes | |
ROL $00,X ROR $00,X JSR @rts15 |
Clobbers Z&N; and requires @rts15 |
PHA JSR @rts12 JSR @rts12 |
Clobbers S; and requires @rts12 |
NOP PHA PHP PLP JSR @rts15 |
Clobbers S; and requires @rts15 |
PHA PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
NOP LDX #3 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
NOP LDY #3 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA PHP PLP JSR @rts14 |
Clobbers S; and requires @rts14 |
LDY #130 @Y = * - 1 ; ^ Hides !NOP #imm NOP $EA ;hides 'NOP' DEY BMI @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
LDX #130 @X = * - 1 ; ^ Hides !NOP #imm NOP $EA ;hides 'NOP' DEX BMI @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
NOP PHP BIT $00 PLP JSR @rts15 |
Requires @rts15 |
LDA $00 JSR @rts12 JSR @rts12 |
Clobbers A, and Z&N; and requires @rts12 |
NOP LDY #2 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
PHA TSX PLA PLA PLA PLA TXS PLA |
Clobbers X, and Z&N |
PHP TSX PLA PLA PLA PLA TXS PLP |
Clobbers A, and X |
BIT $00 JSR @rts12 JSR @rts12 |
Clobbers Z&N, and V; and requires @rts12 |
NOP NOP NOP PHP PLP JSR @rts14 |
Requires @rts14 |
STA @zptemp JSR @rts12 JSR @rts12 |
Requires @zptemp, and @rts12 |
PHA PHA PHP PLP PHP PLP PHP PLP |
Clobbers S |
NOP $00 JSR @rts12 JSR @rts12 |
Requires @rts12, and support for unofficial opcodes |
9 bytes | |
NOP NOP NOP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
28 cycles
6 bytes | |
---|---|
NOP LDX #5 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #5 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
JSR @rts14 JSR @rts14 |
Requires @rts14 |
7 bytes | |
PHP LDX #4 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #4 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #5 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHA PHP PLP JSR @rts15 |
Clobbers S; and requires @rts15 |
PLA PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
8 bytes | |
PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
29 cycles
6 bytes | |
---|---|
LDX #4 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #4 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
JSR @rts14 JSR @rts15 |
Requires @rts14, and @rts15 |
7 bytes | |
PHP PLP PHP PLP JSR @rts15 |
Requires @rts15 |
PHA JSR @rts12 JSR @rts14 |
Clobbers S; and requires @rts12, and @rts14 |
PHA PLA PLA PLA JSR @rts14 |
Clobbers A, S, and Z&N; and requires @rts14 |
8 bytes | |
PHP LDY #3 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #3 @X: NOP DEX BNE @X PLP |
Clobbers X |
LDA $00 JSR @rts12 JSR @rts14 |
Clobbers A, and Z&N; and requires @rts12, and @rts14 |
BIT $00 JSR @rts12 JSR @rts14 |
Clobbers Z&N, and V; and requires @rts12, and @rts14 |
STA @zptemp JSR @rts12 JSR @rts14 |
Requires @zptemp, @rts12, and @rts14 |
NOP PHA JSR @rts12 JSR @rts12 |
Clobbers S; and requires @rts12 |
NOP PHA PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
NOP PHA PHA PHP PLP JSR @rts14 |
Clobbers S; and requires @rts14 |
NOP $00 JSR @rts12 JSR @rts14 |
Requires @rts12, @rts14, and support for unofficial opcodes |
9 bytes | |
PHP PLP PHP BIT $00 PLP JSR @rts12 |
Requires @rts12 |
NOP NOP NOP NOP PHP PLP JSR @rts14 |
Requires @rts14 |
NOP PHA PHA PHP PLP PHP PLP PHP PLP |
Clobbers S |
10 bytes | |
NOP NOP NOP NOP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
30 cycles
6 bytes | |
---|---|
JSR @rts15 JSR @rts15 |
Requires @rts15 |
PLA LDX #5 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #5 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #5 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #5 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP JSR @rts14 JSR @rts14 |
Requires @rts14 |
8 bytes | |
NOP PHP LDY #4 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #4 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #5 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHA JSR @rts12 JSR @rts12 |
Clobbers S; and requires @rts12 |
NOP PLA PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
9 bytes | |
NOP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
31 cycles
5 bytes | |
---|---|
LDY #6 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #6 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
NOP JSR @rts14 JSR @rts15 |
Requires @rts14, and @rts15 |
PLA PLA PLA PLA JSR @rts15 |
Clobbers A, S, and Z&N; and requires @rts15 |
PHA JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
8 bytes | |
PHP PLP JSR @rts12 JSR @rts12 |
Requires @rts12 |
NOP PHP PLP PHP PLP JSR @rts15 |
Requires @rts15 |
SEC LDA #4 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
LDA $00 JSR @rts14 JSR @rts14 |
Clobbers A, and Z&N; and requires @rts14 |
BIT $00 JSR @rts14 JSR @rts14 |
Clobbers Z&N, and V; and requires @rts14 |
STA @zptemp JSR @rts14 JSR @rts14 |
Requires @zptemp, and @rts14 |
PHA PLA PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
PHA PHP LDX #4 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHP LDY #4 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
NOP $00 JSR @rts14 JSR @rts14 |
Requires @rts14, and support for unofficial opcodes |
9 bytes | |
NOP PHP LDY #3 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #3 @X: NOP DEX BNE @X PLP |
Clobbers X |
JMP *+3 JSR @rts14 JSR @rts14 |
Requires @rts14 |
PHA PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers S |
10 bytes | |
PHP PLP PHP PLP PHP PLP PHP BIT $00 PLP |
Clobbers nothing, requires nothing |
32 cycles
6 bytes | |
---|---|
LDY #5 @Y = * - 1 ; ^ Hides ORA zp DEY ;first round only DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDX #5 @X = * - 1 ; ^ Hides ORA zp DEX ;first round only DEX BNE @X |
Clobbers A, X, and Z&N |
7 bytes | |
NOP JSR @rts15 JSR @rts15 |
Requires @rts15 |
PHA LDX #4 @X: NOP DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #4 @Y: NOP DEY BNE @Y |
Clobbers Y, S, and Z&N |
PLA JSR @rts14 JSR @rts14 |
Clobbers A, S, and Z&N; and requires @rts14 |
LDY #250 @Y = * - 1 ; ^ Hides !NOP NOP INY INY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
LDX #250 @X = * - 1 ; ^ Hides !NOP NOP INX INX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
NOP NOP NOP LDX #5 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP NOP LDY #5 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP JSR @rts14 JSR @rts14 |
Requires @rts14 |
PLA PLA PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
9 bytes | |
TYA PHA LDY #4 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHP LDY #2 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #2 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
NOP PHA PHA JSR @rts12 JSR @rts12 |
Clobbers S; and requires @rts12 |
10 bytes | |
NOP NOP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
33 cycles
6 bytes | |
---|---|
NOP LDY #6 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #6 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #5 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #5 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #6 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
8 bytes | |
LDA $00 JSR @rts15 JSR @rts15 |
Clobbers A, and Z&N; and requires @rts15 |
BIT $00 JSR @rts15 JSR @rts15 |
Clobbers Z&N, and V; and requires @rts15 |
PHP PLP JSR @rts12 JSR @rts14 |
Requires @rts12, and @rts14 |
NOP NOP JSR @rts14 JSR @rts15 |
Requires @rts14, and @rts15 |
STA @zptemp JSR @rts15 JSR @rts15 |
Requires @zptemp, and @rts15 |
NOP PHA JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
NOP $00 JSR @rts15 JSR @rts15 |
Requires @rts15, and support for unofficial opcodes |
9 bytes | |
NOP PHP PLP JSR @rts12 JSR @rts12 |
Requires @rts12 |
JMP *+3 JSR @rts15 JSR @rts15 |
Requires @rts15 |
JSR @rts14 PHP ROL $00,X ROR $00,X PLP |
Requires @rts14 |
NOP PHA PLA PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
10 bytes | |
PHP PLP PHP PLP PHP ROL $00,X ROR $00,X PLP |
Clobbers nothing, requires nothing |
34 cycles
5 bytes | |
---|---|
LDY #136 @Y = * - 1 ; ^ Hides DEY DEY BMI @Y |
Clobbers Y, and Z&N |
6 bytes | |
PHA LDX #6 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDX #6 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDX #6 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #6 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
PLA JSR @rts15 JSR @rts15 |
Clobbers A, S, and Z&N; and requires @rts15 |
NOP $00 LDX #6 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
NOP NOP JSR @rts15 JSR @rts15 |
Requires @rts15 |
JMP *+3 LDX #6 @X: DEX BNE @X |
Clobbers X, and Z&N |
PHA PHA JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
9 bytes | |
NOP NOP NOP JSR @rts14 JSR @rts14 |
Requires @rts14 |
PHA PHP PLP JSR @rts12 JSR @rts12 |
Clobbers S; and requires @rts12 |
NOP PLA PLA PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
PHA PHA PHP LDY #4 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #4 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHP LDY #130 @Y = * - 1 ; ^ Hides !NOP #imm NOP $EA ;hides 'NOP' DEY BMI @Y PLP |
Clobbers Y; and requires support for unofficial opcodes |
PHP LDX #130 @X = * - 1 ; ^ Hides !NOP #imm NOP $EA ;hides 'NOP' DEX BMI @X PLP |
Clobbers X; and requires support for unofficial opcodes |
10 bytes | |
PHP BIT $00 PLP JSR @rts12 JSR @rts12 |
Requires @rts12 |
NOP TYA PHA LDY #4 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDY #2 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
PHP PHA TSX PLA PLA PLA PLA TXS PLA PLP |
Clobbers X |
PHA PHA PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers S |
11 bytes | |
NOP NOP NOP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
35 cycles
6 bytes | |
---|---|
LDY #136 @Y = * - 1 ; ^ Hides DEY DEY DEY BMI @Y |
Clobbers Y, and Z&N |
LDX #248 @X = * - 1 ; ^ Hides SED INX INX BNE @X |
Clobbers X, Z&N, and D |
PLA LDX #6 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
NOP NOP LDX #6 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #5 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #5 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #6 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHP PLP JSR @rts14 JSR @rts14 |
Requires @rts14 |
NOP PHA JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
9 bytes | |
PHP SEC LDA #5 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #5 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
NOP BIT $00 JSR @rts15 JSR @rts15 |
Clobbers Z&N, and V; and requires @rts15 |
NOP STA @zptemp JSR @rts15 JSR @rts15 |
Requires @zptemp, and @rts15 |
NOP NOP $00 JSR @rts15 JSR @rts15 |
Requires @rts15, and support for unofficial opcodes |
10 bytes | |
PHP PLP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
36 cycles
5 bytes | |
---|---|
LDY #7 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #7 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #4 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #4 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP PLP JSR @rts14 JSR @rts15 |
Requires @rts14, and @rts15 |
PHA PHA JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
PHA SEC LDA #6 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
PLA PLA JSR @rts14 JSR @rts14 |
Clobbers A, S, and Z&N; and requires @rts14 |
9 bytes | |
JSR @rts12 JSR @rts12 JSR @rts12 |
Requires @rts12 |
NOP NOP NOP JSR @rts15 JSR @rts15 |
Requires @rts15 |
LDA $00 SEC LDA #6 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PLA PLA PLA PLA PLA PLA PLA PLA PLA |
Clobbers A, S, and Z&N |
NOP PHA PHA JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
10 bytes | |
NOP NOP NOP NOP JSR @rts14 JSR @rts14 |
Requires @rts14 |
11 bytes | |
TYA PHA LDY #2 @Y: PHP PLP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHA PHA PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers S |
12 bytes | |
NOP NOP NOP NOP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
37 cycles
6 bytes | |
---|---|
PHA LDY #136 @Y = * - 1 ; ^ Hides DEY DEY BMI @Y |
Clobbers Y, S, and Z&N |
LDX #4 @X: PLA DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
LDX #3 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
LDY #3 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP PLP JSR @rts15 JSR @rts15 |
Requires @rts15 |
PLA SEC LDA #6 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #5 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #5 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #5 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP PLP JSR @rts14 JSR @rts14 |
Requires @rts14 |
10 bytes | |
NOP PHP SEC LDA #5 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #5 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
PHA PHA PHP PLP JSR @rts12 JSR @rts12 |
Clobbers S; and requires @rts12 |
11 bytes | |
NOP PHP PLP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
38 cycles
6 bytes | |
---|---|
NOP LDY #7 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #7 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #6 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #6 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #7 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
8 bytes | |
PLA PLA JSR @rts15 JSR @rts15 |
Clobbers A, S, and Z&N; and requires @rts15 |
9 bytes | |
JSR @rts12 JSR @rts12 JSR @rts14 |
Requires @rts12, and @rts14 |
NOP PHP PLP JSR @rts14 JSR @rts15 |
Requires @rts14, and @rts15 |
NOP PHA PHA JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
PHA PHP PLP JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
10 bytes | |
NOP JSR @rts12 JSR @rts12 JSR @rts12 |
Requires @rts12 |
NOP NOP NOP NOP JSR @rts15 JSR @rts15 |
Requires @rts15 |
PHP SEC LDA #4 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #4 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
PHP BIT $00 PLP JSR @rts14 JSR @rts14 |
Requires @rts14 |
11 bytes | |
PHA PHP PLP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers S |
12 bytes | |
PHP PLP PHP PLP PHP PLP PHP PLP PHP BIT $00 PLP |
Clobbers nothing, requires nothing |
39 cycles
6 bytes | |
---|---|
PHA LDX #7 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #7 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDA $00 LDY #7 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #7 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDX #7 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
BIT $00 LDY #7 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
STA @zptemp LDY #7 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
STA @zptemp LDX #7 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDX #7 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDY #7 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDY #7 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
JMP *+3 LDX #7 @X: DEX BNE @X |
Clobbers X, and Z&N |
PHP LDY #5 @Y = * - 1 ; ^ Hides ORA zp DEY ;first round only DEY BNE @Y PLP |
Clobbers A, and Y |
PHP LDX #5 @X = * - 1 ; ^ Hides ORA zp DEX ;first round only DEX BNE @X PLP |
Clobbers A, and X |
9 bytes | |
NOP PHP PLP JSR @rts15 JSR @rts15 |
Requires @rts15 |
SEC LDA #3 @A: PHP PLP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHP LDY #4 @Y: NOP DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #4 @X: NOP DEX BNE @X PLP |
Clobbers X, and S |
PHA PLA PLA JSR @rts14 JSR @rts14 |
Clobbers A, S, and Z&N; and requires @rts14 |
PHP LDY #250 @Y = * - 1 ; ^ Hides !NOP NOP INY INY BNE @Y PLP |
Clobbers Y; and requires support for unofficial opcodes |
PHP LDX #250 @X = * - 1 ; ^ Hides !NOP NOP INX INX BNE @X PLP |
Clobbers X; and requires support for unofficial opcodes |
10 bytes | |
NOP TYA PHA LDY #5 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDY #5 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP NOP PHP LDX #5 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP PLP JSR @rts14 JSR @rts14 |
Requires @rts14 |
PHA JSR @rts12 JSR @rts12 JSR @rts12 |
Clobbers S; and requires @rts12 |
11 bytes | |
PHA TYA PHA LDY #4 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #5 @A: SBC #1 BNE @A PLP |
Clobbers A |
STA @zptemp JSR @rts12 JSR @rts12 JSR @rts12 |
Requires @zptemp, and @rts12 |
NOP $00 JSR @rts12 JSR @rts12 JSR @rts12 |
Requires @rts12, and support for unofficial opcodes |
12 bytes | |
NOP NOP PHP PLP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
40 cycles
6 bytes | |
---|---|
LDY #5 @Y = * - 1 ; ^ Hides ORA zp NOP DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDX #5 @X = * - 1 ; ^ Hides ORA zp NOP DEX BNE @X |
Clobbers A, X, and Z&N |
7 bytes | |
NOP NOP LDY #7 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #7 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDX #6 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #6 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #7 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #6 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #6 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
JSR @rts12 JSR @rts14 JSR @rts14 |
Requires @rts12, and @rts14 |
PHA PHP PLP JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
10 bytes | |
PHP BIT $00 PLP JSR @rts15 JSR @rts15 |
Requires @rts15 |
ROL $00,X ROR $00,X JSR @rts14 JSR @rts14 |
Clobbers Z&N; and requires @rts14 |
NOP PHA PHP PLP JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
11 bytes | |
NOP NOP JSR @rts12 JSR @rts12 JSR @rts12 |
Requires @rts12 |
NOP PHP BIT $00 PLP JSR @rts14 JSR @rts14 |
Requires @rts14 |
12 bytes | |
PHP PLP PHP PLP PHP PLP PHP ROL $00,X ROR $00,X PLP |
Clobbers nothing, requires nothing |
41 cycles
5 bytes | |
---|---|
LDX #8 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #8 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY DEY BMI @Y PLP |
Clobbers Y |
8 bytes | |
PHA PHP LDX #6 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #7 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #6 @X: DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #7 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
JSR @rts12 JSR @rts14 JSR @rts15 |
Requires @rts12, @rts14, and @rts15 |
PHA PLA PLA JSR @rts15 JSR @rts15 |
Clobbers A, S, and Z&N; and requires @rts15 |
10 bytes | |
NOP NOP PHP PLP JSR @rts15 JSR @rts15 |
Requires @rts15 |
PLA TYA PHA LDY #5 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
PHA PHA PHP PLP JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
11 bytes | |
NOP NOP TYA PHA LDY #5 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP PLP JSR @rts14 JSR @rts14 |
Requires @rts14 |
NOP PHA JSR @rts12 JSR @rts12 JSR @rts12 |
Clobbers S; and requires @rts12 |
PHA PHP SEC LDA #4 @A: NOP SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #4 @A: NOP SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
PHP PLP PHP BIT $00 PLP JSR @rts12 JSR @rts12 |
Requires @rts12 |
NOP PHA TYA PHA LDY #4 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #5 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA PHA PHP PLP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers S |
13 bytes | |
NOP NOP NOP PHP PLP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
42 cycles
7 bytes | |
---|---|
NOP LDY #5 @Y = * - 1 ; ^ Hides ORA zp NOP DEY BNE @Y |
Clobbers A, Y, and Z&N |
NOP LDX #5 @X = * - 1 ; ^ Hides ORA zp NOP DEX BNE @X |
Clobbers A, X, and Z&N |
PHA PHA LDX #7 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA PHA LDY #7 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
8 bytes | |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY DEY DEY BMI @Y PLP |
Clobbers Y |
PHP LDX #248 @X = * - 1 ; ^ Hides SED INX INX BNE @X PLP |
Clobbers X |
PLA SEC LDA #7 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
JSR @rts12 JSR @rts15 JSR @rts15 |
Requires @rts12, and @rts15 |
TYA PHA LDY #6 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @rts14 |
10 bytes | |
ROL $00,X ROR $00,X JSR @rts15 JSR @rts15 |
Clobbers Z&N; and requires @rts15 |
NOP PHP SEC LDA #6 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #6 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
NOP PHA PHP PLP JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
11 bytes | |
PHP PHA SEC LDA #5 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
43 cycles
6 bytes | |
---|---|
LDX #6 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #6 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #7 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #7 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #8 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
JSR @rts14 JSR @rts14 JSR @rts15 |
Requires @rts14, and @rts15 |
10 bytes | |
TXA PHA LDX #5 @X = * - 1 ; ^ Hides ORA zp DEX ;first round only DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
PHA PHA PHP PLP JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
PHA PHP SEC LDA #6 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #6 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
PHA JSR @rts12 JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts12, and @rts14 |
11 bytes | |
PHP PLP JSR @rts12 JSR @rts12 JSR @rts12 |
Requires @rts12 |
NOP NOP NOP PHP PLP JSR @rts15 JSR @rts15 |
Requires @rts15 |
PHP LDA $00 SEC LDA #6 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #6 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
NOP PHA PHA PHP PLP JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
12 bytes | |
NOP NOP NOP NOP PHP PLP JSR @rts14 JSR @rts14 |
Requires @rts14 |
13 bytes | |
PHA TYA PHA LDY #2 @Y: PHP PLP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP PHA PHA PHP PLP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP NOP PHP PLP PHP PLP PHP PLP PHP PLP PHP PLP |
Clobbers nothing, requires nothing |
44 cycles
6 bytes | |
---|---|
LDY #136 @Y = * - 1 ; ^ Hides DEY NOP DEY BMI @Y |
Clobbers Y, and Z&N |
LDX #10 @X = * - 1 ; ^ Hides ASL A DEX DEX BNE @X |
Clobbers A, X, Z&N, and C |
PHA LDX #8 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDX #8 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDX #8 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #8 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDX #8 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #8 @X: DEX BNE @X |
Clobbers X, and Z&N |
PHA PHP LDY #136 @Y = * - 1 ; ^ Hides DEY DEY BMI @Y PLP |
Clobbers Y, and S |
9 bytes | |
PHP LDY #3 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #3 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
JSR @rts14 JSR @rts15 JSR @rts15 |
Requires @rts14, and @rts15 |
NOP PLA SEC LDA #7 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
PHP PLP PHP PLP JSR @rts15 JSR @rts15 |
Requires @rts15 |
NOP TYA PHA LDY #6 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @rts14 |
11 bytes | |
PHA TYA PHA LDY #5 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #6 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #5 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
45 cycles
6 bytes | |
---|---|
PLA LDY #8 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
PLA LDX #8 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
NOP LDY #6 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #6 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #7 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #7 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #6 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @rts15 |
PHP SEC LDA #7 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #7 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
10 bytes | |
PHA JSR @rts14 JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
11 bytes | |
PHP PLP JSR @rts12 JSR @rts12 JSR @rts14 |
Requires @rts12, and @rts14 |
BIT $00 JSR @rts14 JSR @rts14 JSR @rts14 |
Clobbers Z&N, and V; and requires @rts14 |
STA @zptemp JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @zptemp, and @rts14 |
NOP $00 JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @rts14, and support for unofficial opcodes |
12 bytes | |
PHP PHA SEC LDA #4 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
46 cycles
5 bytes | |
---|---|
LDX #9 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #9 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHA PHP LDY #7 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #7 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #8 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #7 @X: DEX BNE @X PLP |
Clobbers X |
PHP BIT $00 LDY #7 @Y: DEY BNE @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #8 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #136 @Y = * - 1 ; ^ Hides DEY DEY DEY BMI @Y PLA TAY |
Clobbers A, and Z&N |
NOP JSR @rts14 JSR @rts15 JSR @rts15 |
Requires @rts14, and @rts15 |
11 bytes | |
NOP PHP PLP PHP PLP JSR @rts15 JSR @rts15 |
Requires @rts15 |
PHP SEC LDA #3 @A: PHP PLP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #3 @A: PHP PLP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
NOP NOP JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @rts14 |
12 bytes | |
NOP PHA TYA PHA LDY #5 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHP PLP JSR @rts12 JSR @rts12 JSR @rts12 |
Clobbers S; and requires @rts12 |
13 bytes | |
NOP NOP PHP PHA SEC LDA #5 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
47 cycles
7 bytes | |
---|---|
PHA PHA LDY #8 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA LDX #8 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
NOP NOP LDX #6 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP LDY #6 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
PHP LDY #5 @Y = * - 1 ; ^ Hides ORA zp NOP DEY BNE @Y PLP |
Clobbers A, and Y |
PHP LDX #5 @X = * - 1 ; ^ Hides ORA zp NOP DEX BNE @X PLP |
Clobbers A, and X |
PLA SEC LDA #8 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #7 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #7 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #7 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @rts15 |
NOP PHP SEC LDA #7 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #7 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #6 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
48 cycles
6 bytes | |
---|---|
NOP LDX #9 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #9 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #8 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #8 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #9 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA JSR @rts15 JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
PHA PHP SEC LDA #7 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #7 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #7 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #7 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
BIT $00 JSR @rts15 JSR @rts15 JSR @rts15 |
Clobbers Z&N, and V; and requires @rts15 |
NOP NOP JSR @rts14 JSR @rts15 JSR @rts15 |
Requires @rts14, and @rts15 |
STA @zptemp JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @zptemp, and @rts15 |
PHA PHA JSR @rts14 JSR @rts14 JSR @rts14 |
Clobbers S; and requires @rts14 |
NOP $00 JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @rts15, and support for unofficial opcodes |
12 bytes | |
JSR @rts12 JSR @rts12 JSR @rts12 JSR @rts12 |
Requires @rts12 |
JMP *+3 JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @rts15 |
NOP NOP NOP JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @rts14 |
13 bytes | |
NOP NOP PHA TYA PHA LDY #5 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #4 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #5 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
49 cycles
4 bytes | |
---|---|
LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y |
Clobbers Y, and Z&N |
6 bytes | |
LDX #6 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDX #4 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
NOP PHP LDX #5 @X = * - 1 ; ^ Hides ORA zp NOP DEX BNE @X PLP |
Clobbers A, and X |
NOP PHP LDY #5 @Y = * - 1 ; ^ Hides ORA zp NOP DEY BNE @Y PLP |
Clobbers A, and Y |
PHA PHA PHP LDX #7 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHA PHP LDY #7 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
NOP PLA SEC LDA #8 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #7 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDY #7 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP NOP PHP LDX #7 @X: DEX BNE @X PLP |
Clobbers X |
11 bytes | |
NOP NOP JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @rts15 |
PHA TYA PHA LDY #6 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #7 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHP PLP JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @rts14 |
12 bytes | |
NOP PHP PHA SEC LDA #6 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
50 cycles
6 bytes | |
---|---|
LDY #7 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #7 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDY #6 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #6 @X: NOP DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #9 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #8 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #8 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PLP JSR @rts14 JSR @rts14 JSR @rts15 |
Requires @rts14, and @rts15 |
NOP PHA JSR @rts15 JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
12 bytes | |
PHA TXA PHA LDX #5 @X = * - 1 ; ^ Hides ORA zp DEX ;first round only DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
JSR @rts12 JSR @rts12 JSR @rts12 JSR @rts14 |
Requires @rts12, and @rts14 |
NOP STA @zptemp JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @zptemp, and @rts15 |
PHA PHP PHA SEC LDA #6 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
NOP NOP $00 JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @rts15, and support for unofficial opcodes |
13 bytes | |
PHP PHA LDA $00 SEC LDA #6 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
51 cycles
5 bytes | |
---|---|
LDX #10 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #10 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY NOP DEY BMI @Y PLP |
Clobbers Y |
PHP LDX #10 @X = * - 1 ; ^ Hides ASL A DEX DEX BNE @X PLP |
Clobbers A, and X |
PHA PHP LDX #8 @X: DEX BNE @X PLP |
Clobbers X, and S |
SEC LDA #6 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #8 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #4 @A: PHP PLP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TXA PHA LDX #5 @X = * - 1 ; ^ Hides ORA zp NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
11 bytes | |
PHP PLP JSR @rts14 JSR @rts15 JSR @rts15 |
Requires @rts14, and @rts15 |
PHA PHA JSR @rts15 JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
PHA PHA PHP SEC LDA #7 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #7 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP NOP NOP JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @rts15 |
NOP PHA TYA PHA LDY #6 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #7 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHP PLP JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @rts14 |
13 bytes | |
NOP NOP PHP PHA SEC LDA #6 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
52 cycles
5 bytes | |
---|---|
PHA LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y |
Clobbers Y, S, and Z&N |
6 bytes | |
LDA $00 LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y |
Clobbers A, Y, and Z&N |
BIT $00 LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y |
Clobbers Y, Z&N, and V |
STA @zptemp LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y |
Clobbers Y, and Z&N; and requires @zptemp |
NOP $00 LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
7 bytes | |
NOP LDX #7 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #7 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
SEC LDA #7 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
TYA PHA LDY #8 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDY #6 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #6 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #6 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #6 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #7 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
53 cycles
5 bytes | |
---|---|
PLA LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y |
Clobbers A, Y, S, and Z&N |
6 bytes | |
NOP LDX #10 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #10 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #9 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #9 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #10 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #8 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #8 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #8 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #8 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #136 @Y = * - 1 ; ^ Hides DEY DEY DEY BMI @Y PLA TAY PLA |
Clobbers Z&N |
NOP PHP PLP JSR @rts14 JSR @rts15 JSR @rts15 |
Requires @rts14, and @rts15 |
NOP PHA PHA JSR @rts15 JSR @rts15 JSR @rts15 |
Clobbers S; and requires @rts15 |
13 bytes | |
PHP PHA SEC LDA #3 @A: PHP PLP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
54 cycles
6 bytes | |
---|---|
PHA LDY #10 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #10 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDY #136 @Y = * - 1 ; ^ Hides DEY NOP NOP DEY BMI @Y |
Clobbers Y, and Z&N |
LDA $00 LDX #10 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDX #10 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #10 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDX #10 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #10 @X: DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
NOP SEC LDA #7 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHA PHP LDX #8 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHA PHP LDY #8 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
10 bytes | |
TYA PHA LDY #6 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #6 @X: NOP DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #6 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TYA PHA LDY #7 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP PHP SEC LDA #6 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #7 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
55 cycles
5 bytes | |
---|---|
LDY #248 @Y = * - 1 ; ^ Hides SED INY BNE @Y |
Clobbers Y, Z&N, and D |
LDX #248 @X = * - 1 ; ^ Hides SED INX BNE @X |
Clobbers X, Z&N, and D |
6 bytes | |
PHA PHA LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y |
Clobbers Y, S, and Z&N |
LDX #6 @X: PLA DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
LDY #6 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #6 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #9 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #9 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #10 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #9 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #9 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
JSR @rts12 JSR @rts14 JSR @rts14 JSR @rts15 |
Requires @rts12, @rts14, and @rts15 |
PHA PHP PHA SEC LDA #7 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #7 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
56 cycles
5 bytes | |
---|---|
LDY #11 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #11 @X: DEX BNE @X |
Clobbers X, and Z&N |
6 bytes | |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y PLP |
Clobbers Y |
8 bytes | |
PHA PHP LDX #9 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #10 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP LDX #4 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #10 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #8 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP TYA PHA LDY #6 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #8 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #8 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #7 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #6 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
JSR @rts14 JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @rts14 |
13 bytes | |
NOP NOP PHP PHA SEC LDA #7 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
57 cycles
6 bytes | |
---|---|
LDX #8 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #8 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
CLC LDA #248 @A = * - 1 ; ^ Hides SED ADC #1 BNE @A |
Clobbers A, Z&N, C, and D |
8 bytes | |
PHP LDX #7 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #7 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PLA SEC LDA #10 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #9 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
10 bytes | |
NOP PHP SEC LDA #9 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #9 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #8 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
58 cycles
6 bytes | |
---|---|
NOP LDX #11 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #11 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #10 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #10 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #11 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #9 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #9 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP SEC LDA #4 @A: PHP PLP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #4 @A: PHP PLP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TXA PHA LDX #5 @X = * - 1 ; ^ Hides ORA zp NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
JSR @rts14 JSR @rts14 JSR @rts15 JSR @rts15 |
Requires @rts14, and @rts15 |
13 bytes | |
NOP JSR @rts14 JSR @rts14 JSR @rts14 JSR @rts14 |
Requires @rts14 |
PHA PHA PHP PHA SEC LDA #7 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #7 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
59 cycles
6 bytes | |
---|---|
PHA LDX #11 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #11 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
NOP LDY #8 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #8 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
PHA PHP LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y PLP |
Clobbers Y, and S |
8 bytes | |
PHP BIT $00 LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y PLP |
Clobbers Y |
SEC LDA #8 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
NOP PHP LDX #7 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #7 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #7 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA TYA PHA LDY #8 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
12 bytes | |
PHP PHA SEC LDA #6 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
60 cycles
6 bytes | |
---|---|
PLA LDX #11 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #11 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #11 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #11 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
TYA PHA LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDY #10 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #10 @X: DEX BNE @X PLP |
Clobbers X |
9 bytes | |
PHP SEC LDA #10 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #10 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
JSR @rts15 JSR @rts15 JSR @rts15 JSR @rts15 |
Requires @rts15 |
PHA PHP PHA SEC LDA #8 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #8 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
61 cycles
5 bytes | |
---|---|
LDY #12 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #12 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #10 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #10 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #11 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #10 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY NOP NOP DEY BMI @Y PLP |
Clobbers Y |
NOP SEC LDA #8 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #7 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
NOP PHP SEC LDA #7 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #7 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #6 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #6 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
62 cycles
5 bytes | |
---|---|
LDX #136 @X = * - 1 ; ^ Hides DEY DEX BMI @X |
Clobbers X, Y, and Z&N |
7 bytes | |
PHP LDX #248 @X = * - 1 ; ^ Hides SED INX BNE @X PLP |
Clobbers X |
PHP LDY #248 @Y = * - 1 ; ^ Hides SED INY BNE @Y PLP |
Clobbers Y |
8 bytes | |
PLA SEC LDA #11 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #10 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
10 bytes | |
NOP PHP SEC LDA #10 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #10 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #9 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
63 cycles
6 bytes | |
---|---|
NOP LDX #12 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #12 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #11 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #11 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #12 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHA TYA PHA LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y PLA TAY |
Clobbers A, S, and Z&N |
10 bytes | |
LDA $00 TYA PHA LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHP SEC LDA #10 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #10 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #10 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #10 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP PHA TYA PHA LDY #6 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #8 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP PHP PHA SEC LDA #6 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
64 cycles
6 bytes | |
---|---|
LDY #9 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #9 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDY #8 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #8 @X: NOP DEX BNE @X PLP |
Clobbers X |
9 bytes | |
PHP CLC LDA #248 @A = * - 1 ; ^ Hides SED ADC #1 BNE @A PLP |
Clobbers A |
PHA CLC LDA #248 @A = * - 1 ; ^ Hides SED ADC #1 BNE @A PLA |
Clobbers Z&N, C, and D |
11 bytes | |
PHA TYA PHA LDY #9 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
12 bytes | |
NOP PHP PHA SEC LDA #9 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
65 cycles
6 bytes | |
---|---|
LDY #8 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #8 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
NOP NOP LDY #12 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #12 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #11 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #11 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #12 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #11 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #11 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #9 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA SEC LDA #4 @A: PHP PLP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
66 cycles
5 bytes | |
---|---|
LDY #13 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #13 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
SEC LDA #9 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHP LDY #11 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #11 @X: DEX BNE @X PLP |
Clobbers X, and S |
9 bytes | |
NOP PHP LDY #8 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #8 @X: NOP DEX BNE @X PLP |
Clobbers X |
TYA PHA LDY #248 @Y = * - 1 ; ^ Hides SED INY BNE @Y PLA TAY |
Clobbers A, Z&N, and D |
10 bytes | |
PHP SEC LDA #8 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #8 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #7 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
67 cycles
7 bytes | |
---|---|
LDY #6 @Y: PHA PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #6 @X: PHA PHA DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
LDY #6 @Y: NOP NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #6 @X: NOP NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
SEC LDA #8 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #11 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #11 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #11 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
PHA TYA PHA LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y PLA TAY PLA |
Clobbers Z&N |
NOP PHP SEC LDA #11 @A: SBC #1 BNE @A PLP |
Clobbers A |
11 bytes | |
PHP PHA SEC LDA #10 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
68 cycles
6 bytes | |
---|---|
NOP LDX #13 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #13 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #12 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #12 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #13 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TXA PHA LDX #8 @X: NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
PHA PHP SEC LDA #11 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #11 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
NOP PHP SEC LDA #8 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #8 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #7 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #7 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
69 cycles
5 bytes | |
---|---|
LDY #136 @Y = * - 1 ; ^ Hides DEY NOP BMI @Y |
Clobbers Y, and Z&N |
LDX #10 @X = * - 1 ; ^ Hides ASL A DEX BNE @X |
Clobbers A, X, Z&N, and C |
6 bytes | |
PHA LDX #13 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDX #13 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
PHP LDX #136 @X = * - 1 ; ^ Hides DEY DEX BMI @X PLP |
Clobbers X, and Y |
BIT $00 LDX #13 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #13 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDX #13 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #13 @X: DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
PHP PLP PHP LDX #248 @X = * - 1 ; ^ Hides SED INX BNE @X PLP |
Clobbers X |
PHP PLP PHP LDY #248 @Y = * - 1 ; ^ Hides SED INY BNE @Y PLP |
Clobbers Y |
SEC LDA #6 @A: PHA PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #11 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #10 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #11 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #10 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
70 cycles
6 bytes | |
---|---|
PLA LDX #13 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #13 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #13 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #13 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDX #12 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #12 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #13 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #12 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #12 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA PHA TYA PHA LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y PLA TAY PLA |
Clobbers S, and Z&N |
12 bytes | |
PHA LDA $00 TYA PHA LDY #136 @Y = * - 1 ; ^ Hides DEY BMI @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #10 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #10 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
71 cycles
5 bytes | |
---|---|
LDY #14 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #14 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #9 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #9 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHA SEC LDA #13 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
LDA $00 SEC LDA #13 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #11 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
PHP PHA CLC LDA #248 @A = * - 1 ; ^ Hides SED ADC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
72 cycles
6 bytes | |
---|---|
PHA LDY #136 @Y = * - 1 ; ^ Hides DEY NOP BMI @Y |
Clobbers Y, S, and Z&N |
PHA LDX #10 @X = * - 1 ; ^ Hides ASL A DEX BNE @X |
Clobbers A, X, S, Z&N, and C |
7 bytes | |
LDA $00 LDY #136 @Y = * - 1 ; ^ Hides DEY NOP BMI @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #10 @X = * - 1 ; ^ Hides ASL A DEX BNE @X |
Clobbers A, X, Z&N, and C |
BIT $00 LDY #136 @Y = * - 1 ; ^ Hides DEY NOP BMI @Y |
Clobbers Y, Z&N, and V |
STA @zptemp LDY #136 @Y = * - 1 ; ^ Hides DEY NOP BMI @Y |
Clobbers Y, and Z&N; and requires @zptemp |
PHA PHA LDX #13 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
NOP $00 LDY #136 @Y = * - 1 ; ^ Hides DEY NOP BMI @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
NOP NOP NOP LDX #13 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP NOP LDY #13 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
PHA PHP LDX #136 @X = * - 1 ; ^ Hides DEY DEX BMI @X PLP |
Clobbers X, Y, and S |
PLA SEC LDA #13 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #12 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHP LDX #8 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
PHP LDY #8 @Y: BIT $00 DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #12 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #12 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #11 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
73 cycles
6 bytes | |
---|---|
NOP LDX #14 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #14 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #13 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #13 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #14 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHP SEC LDA #9 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #9 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA TYA PHA LDY #248 @Y = * - 1 ; ^ Hides SED INY BNE @Y PLA TAY PLA |
Clobbers Z&N, and D |
12 bytes | |
PHP PHA SEC LDA #8 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
74 cycles
6 bytes | |
---|---|
PHA LDY #14 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #14 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDY #14 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #14 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDY #14 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #14 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDY #14 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
STA @zptemp LDX #14 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDY #14 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDX #14 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #14 @X: DEX BNE @X |
Clobbers X, and Z&N |
JMP *+3 LDY #14 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
9 bytes | |
PHA PHP LDY #9 @Y: NOP DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #9 @X: NOP DEX BNE @X PLP |
Clobbers X, and S |
NOP PLA SEC LDA #13 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #12 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHP LDY #6 @Y: NOP NOP NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #6 @X: NOP NOP NOP DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TYA PHA LDY #11 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #12 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #11 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
75 cycles
6 bytes | |
---|---|
PLA LDX #14 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #14 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #14 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #14 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDX #13 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #13 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #14 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #13 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #13 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TXA PHA LDX #8 @X: NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #11 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
NOP PHP PHA SEC LDA #8 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
76 cycles
5 bytes | |
---|---|
LDY #15 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #15 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY NOP BMI @Y PLP |
Clobbers Y |
PHP LDX #10 @X = * - 1 ; ^ Hides ASL A DEX BNE @X PLP |
Clobbers A, and X |
8 bytes | |
PHA PHP LDX #13 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #14 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #13 @X: DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #14 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #12 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
TXA PHA LDX #8 @X: LDA $00 DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
PHA PHP SEC LDA #9 @A: NOP SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #9 @A: NOP SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #11 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHP SEC LDA #6 @A: NOP NOP NOP SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #11 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
77 cycles
7 bytes | |
---|---|
PHA PHA LDY #14 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA LDX #14 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
NOP NOP NOP LDX #14 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP NOP LDY #14 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #14 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #13 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDY #13 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP PHP LDX #13 @X: DEX BNE @X PLP |
Clobbers X |
10 bytes | |
NOP PHP SEC LDA #13 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #13 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #12 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
78 cycles
6 bytes | |
---|---|
LDX #11 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #11 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #14 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #14 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #15 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #13 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #13 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #13 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #13 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHP PLP PHP PHA CLC LDA #248 @A = * - 1 ; ^ Hides SED ADC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
79 cycles
5 bytes | |
---|---|
LDY #136 @Y = * - 1 ; ^ Hides DEY PHA BMI @Y |
Clobbers Y, S, and Z&N |
6 bytes | |
LDY #136 @Y = * - 1 ; ^ Hides DEY LDA $00 BMI @Y |
Clobbers A, Y, and Z&N |
LDY #136 @Y = * - 1 ; ^ Hides DEY BIT $00 BMI @Y |
Clobbers Y, Z&N, and V |
LDY #136 @Y = * - 1 ; ^ Hides DEY STA @zptemp BMI @Y |
Clobbers Y, and Z&N; and requires @zptemp |
PHA LDX #15 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
LDY #136 @Y = * - 1 ; ^ Hides DEY NOP $00 BMI @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
7 bytes | |
LDY #136 @Y = * - 1 ; ^ Hides DEY JMP *+3 BMI @Y |
Clobbers Y, and Z&N |
LDA $00 LDX #15 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDX #15 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #15 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDX #15 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #15 @X: DEX BNE @X |
Clobbers X, and Z&N |
PHA PHP LDY #136 @Y = * - 1 ; ^ Hides DEY NOP BMI @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #10 @X = * - 1 ; ^ Hides ASL A DEX BNE @X PLP |
Clobbers A, X, and S |
9 bytes | |
PHP BIT $00 LDY #136 @Y = * - 1 ; ^ Hides DEY NOP BMI @Y PLP |
Clobbers Y |
PHP LDA $00 LDX #10 @X = * - 1 ; ^ Hides ASL A DEX BNE @X PLP |
Clobbers A, and X |
PHA PHA PHP LDX #13 @X: DEX BNE @X PLP |
Clobbers X, and S |
NOP PLA SEC LDA #14 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #13 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDX #13 @X: DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TYA PHA LDY #12 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #13 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #12 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
80 cycles
6 bytes | |
---|---|
LDX #136 @X = * - 1 ; ^ Hides DEY NOP DEX BMI @X |
Clobbers X, Y, and Z&N |
PLA LDX #15 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #15 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP LDY #11 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #11 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #14 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #14 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #11 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #14 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #14 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #9 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
81 cycles
5 bytes | |
---|---|
LDY #16 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #16 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #14 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #14 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #15 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDY #14 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP BIT $00 LDX #14 @X: DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #15 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #13 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TYA PHA LDY #13 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #13 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #13 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #12 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #13 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #12 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
82 cycles
6 bytes | |
---|---|
PHA LDY #136 @Y = * - 1 ; ^ Hides DEY PHA BMI @Y |
Clobbers Y, S, and Z&N |
LDX #9 @X: PLA DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
LDX #9 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #9 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PLA SEC LDA #15 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #14 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #14 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #14 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #14 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #14 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #13 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
83 cycles
6 bytes | |
---|---|
NOP LDX #16 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #16 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #15 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #15 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #16 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #14 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #14 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #14 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #14 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHA TXA PHA LDX #8 @X: LDA $00 DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #9 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
PHP PHA SEC LDA #6 @A: NOP NOP NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
84 cycles
6 bytes | |
---|---|
PHA LDX #16 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #16 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDA $00 LDX #16 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
LDA $00 LDY #16 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
BIT $00 LDY #16 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #16 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #16 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
STA @zptemp LDY #16 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
NOP $00 LDX #16 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDY #16 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDY #16 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
JMP *+3 LDX #16 @X: DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
SEC LDA #9 @A: NOP NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHA PHP LDX #14 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHA PHP LDY #14 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
10 bytes | |
NOP TYA PHA LDY #14 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDY #14 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP NOP PHP LDX #14 @X: DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TYA PHA LDY #13 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #14 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #13 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
85 cycles
6 bytes | |
---|---|
LDX #12 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #12 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP LDY #11 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #11 @X: NOP DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #16 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #15 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #15 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #13 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #13 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
86 cycles
5 bytes | |
---|---|
LDY #17 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #17 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY BIT $00 BMI @Y PLP |
Clobbers Y |
PHA PHP LDX #15 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #16 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #15 @X: DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #16 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #14 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TYA PHA LDY #14 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #14 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #14 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #13 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #14 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #13 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
87 cycles
6 bytes | |
---|---|
LDY #248 @Y = * - 1 ; ^ Hides SED PLA INY BNE @Y |
Clobbers A, Y, S, Z&N, and D |
LDX #248 @X = * - 1 ; ^ Hides SED PLA INX BNE @X |
Clobbers A, X, S, Z&N, and D |
7 bytes | |
NOP LDY #12 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #12 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #136 @X = * - 1 ; ^ Hides DEY NOP DEX BMI @X PLP |
Clobbers X, and Y |
SEC LDA #12 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
TYA PHA LDY #15 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDX #11 @X: NOP DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #11 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
PHP SEC LDA #11 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #11 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #14 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
88 cycles
6 bytes | |
---|---|
NOP LDX #17 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #17 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #16 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #16 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #17 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #15 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #15 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #15 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #15 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP NOP PHA TYA PHA LDY #13 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #13 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #13 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
89 cycles
5 bytes | |
---|---|
LDY #136 @Y = * - 1 ; ^ Hides DEY PLA BMI @Y |
Clobbers A, Y, S, and Z&N |
6 bytes | |
LDY #136 @Y = * - 1 ; ^ Hides DEY NOP NOP BMI @Y |
Clobbers Y, and Z&N |
LDX #10 @X = * - 1 ; ^ Hides ASL A NOP DEX BNE @X |
Clobbers A, X, Z&N, and C |
LDX #11 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDX #11 @X: LDA $00 DEX BNE @X |
Clobbers A, X, and Z&N |
LDX #11 @X: BIT $00 DEX BNE @X |
Clobbers X, Z&N, and V |
LDX #11 @X: STA @zptemp DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
LDX #11 @X: NOP $00 DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
LDX #11 @X: JMP *+3 DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
PHP LDX #9 @X: NOP NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #9 @Y: NOP NOP DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #12 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TXA PHA LDX #11 @X: NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #14 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP PHP SEC LDA #11 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #14 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
90 cycles
6 bytes | |
---|---|
PLA LDX #17 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #17 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #17 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #17 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #16 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #16 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #17 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #16 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #16 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #14 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #14 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
91 cycles
5 bytes | |
---|---|
LDY #18 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #18 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDX #16 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHP LDY #16 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
SEC LDA #11 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDY #16 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP BIT $00 LDX #16 @X: DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #17 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #15 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
PHP SEC LDA #9 @A: NOP NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #9 @A: NOP NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #14 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP NOP PHP PHA SEC LDA #14 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
92 cycles
6 bytes | |
---|---|
LDX #13 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #13 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP LDY #12 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #12 @X: NOP DEX BNE @X PLP |
Clobbers X |
PLA SEC LDA #17 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #16 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
10 bytes | |
NOP PHP SEC LDA #16 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #16 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #15 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
93 cycles
6 bytes | |
---|---|
NOP LDX #18 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #18 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #17 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #17 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #18 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #16 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #16 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #16 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #16 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP NOP PHA TYA PHA LDY #14 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #14 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #14 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
94 cycles
6 bytes | |
---|---|
PHA LDX #18 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #18 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
NOP LDY #13 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #13 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
SEC LDA #13 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
NOP PHP LDY #12 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #12 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #12 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #12 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA TYA PHA LDY #15 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
12 bytes | |
PHP PHA SEC LDA #11 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
95 cycles
6 bytes | |
---|---|
PLA LDX #18 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #18 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #18 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #18 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #17 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #17 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #18 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #17 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #17 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #15 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #15 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
96 cycles
5 bytes | |
---|---|
LDY #19 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #19 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY NOP NOP BMI @Y PLP |
Clobbers Y |
PHP LDX #10 @X = * - 1 ; ^ Hides ASL A NOP DEX BNE @X PLP |
Clobbers A, and X |
PHA PHP LDX #17 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #18 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP LDX #11 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #13 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TXA PHA LDX #12 @X: NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
11 bytes | |
NOP PHP SEC LDA #12 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #12 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TXA PHA LDX #11 @X: NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #11 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
97 cycles
6 bytes | |
---|---|
LDY #12 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #12 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDY #8 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #8 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PLA SEC LDA #18 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #17 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #17 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #17 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #17 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #17 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #16 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
98 cycles
6 bytes | |
---|---|
NOP LDX #19 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #19 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #18 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #18 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #19 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #17 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #17 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP SEC LDA #11 @A: BIT $00 SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #17 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHP PHA SEC LDA #9 @A: NOP NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
99 cycles
6 bytes | |
---|---|
LDX #14 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #14 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP LDY #13 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #13 @X: NOP DEX BNE @X PLP |
Clobbers X |
SEC LDA #12 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
SEC LDA #8 @A: PHP PLP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #17 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #16 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #17 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #16 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
100 cycles
6 bytes | |
---|---|
LDY #11 @Y: PLA DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
LDX #11 @X: PLA DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
LDY #11 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #11 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #18 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #18 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #19 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #18 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #18 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #16 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #16 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
101 cycles
5 bytes | |
---|---|
LDY #20 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #20 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
SEC LDA #14 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHP LDY #18 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #18 @X: DEX BNE @X PLP |
Clobbers X, and S |
9 bytes | |
NOP PHP LDY #13 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #13 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #13 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #13 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #12 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
102 cycles
7 bytes | |
---|---|
PHA LDY #14 @Y: NOP DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #14 @X: NOP DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
NOP LDX #11 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #11 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #19 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #18 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #18 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #18 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #18 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #18 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #17 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
103 cycles
6 bytes | |
---|---|
NOP LDX #20 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #20 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #19 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #19 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #20 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TXA PHA LDX #13 @X: NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
PHA PHP SEC LDA #18 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #18 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
NOP PHP SEC LDA #13 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #13 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TXA PHA LDX #12 @X: NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #12 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
104 cycles
6 bytes | |
---|---|
PHA LDY #20 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #20 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDY #20 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #20 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDY #20 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #20 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDY #20 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
STA @zptemp LDX #20 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDY #20 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDX #20 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #20 @X: DEX BNE @X |
Clobbers X, and Z&N |
JMP *+3 LDY #20 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
9 bytes | |
PHP LDX #8 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
PHP LDY #8 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
NOP PLA SEC LDA #19 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #18 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #17 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #18 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #17 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
105 cycles
6 bytes | |
---|---|
LDX #13 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
LDY #13 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #20 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #20 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #19 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #19 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #20 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #19 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #19 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #17 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA SEC LDA #11 @A: BIT $00 SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
106 cycles
5 bytes | |
---|---|
LDX #21 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #21 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP LDY #14 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #14 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHA SEC LDA #20 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
LDA $00 SEC LDA #20 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #18 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
PHP SEC LDA #8 @A: PHP PLP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #8 @A: PHP PLP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #17 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP NOP PHP PHA SEC LDA #17 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
107 cycles
6 bytes | |
---|---|
LDY #24 @Y = * - 1 ; ^ Hides CLC DEY DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #24 @X = * - 1 ; ^ Hides CLC DEX DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
SEC LDA #13 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #19 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHP LDX #11 @X: NOP NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #11 @Y: NOP NOP DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #19 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #19 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #18 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
108 cycles
6 bytes | |
---|---|
NOP LDY #21 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #21 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #20 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #20 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #21 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHP SEC LDA #14 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #14 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #13 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
109 cycles
6 bytes | |
---|---|
PHA LDY #21 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #21 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDX #9 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
LDY #9 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
CLC LDA #244 @A = * - 1 ; ^ Hides !NOP zp,X NOP ADC #1 BNE @A |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
9 bytes | |
PHA PHP LDY #14 @Y: NOP DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #14 @X: NOP DEX BNE @X PLP |
Clobbers X, and S |
NOP SEC LDA #13 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #19 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDY #11 @Y: NOP NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #11 @X: NOP NOP DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TYA PHA LDY #18 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #19 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #18 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
110 cycles
6 bytes | |
---|---|
PLA LDY #21 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
PLA LDX #21 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
NOP NOP LDX #21 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP LDY #21 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
NOP PHP LDX #20 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #20 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #21 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #20 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #20 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TXA PHA LDX #13 @X: NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #18 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
NOP PHP PHA SEC LDA #13 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
111 cycles
5 bytes | |
---|---|
LDY #22 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #22 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDX #20 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHP LDY #20 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA SEC LDA #21 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDY #20 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP BIT $00 LDX #20 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #9 @A: PHP PLP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #19 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
TYA PHA LDY #11 @Y: NOP NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHP SEC LDA #14 @A: NOP SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #14 @A: NOP SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #18 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #19 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #18 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
112 cycles
7 bytes | |
---|---|
PHA PHA LDX #21 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA PHA LDY #21 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
8 bytes | |
NOP NOP NOP LDY #21 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP NOP LDX #21 @X: DEX BNE @X |
Clobbers X, and Z&N |
PLA SEC LDA #21 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #20 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHP LDX #13 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
PHP LDY #13 @Y: BIT $00 DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #20 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #20 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #19 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
113 cycles
6 bytes | |
---|---|
LDX #16 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #16 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #21 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #21 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #22 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #20 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #20 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #20 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #20 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHP PHA SEC LDA #8 @A: PHP PLP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
114 cycles
6 bytes | |
---|---|
PHA LDX #22 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #22 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDA $00 LDX #22 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
LDA $00 LDY #22 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
BIT $00 LDY #22 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #22 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #22 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
STA @zptemp LDY #22 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
NOP $00 LDX #22 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDY #22 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
PHP LDX #24 @X = * - 1 ; ^ Hides CLC DEX DEX BNE @X PLP |
Clobbers X |
PHP LDY #24 @Y = * - 1 ; ^ Hides CLC DEY DEY BNE @Y PLP |
Clobbers Y |
9 bytes | |
NOP PLA SEC LDA #21 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #20 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #19 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #20 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #19 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
115 cycles
6 bytes | |
---|---|
PLA LDX #22 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #22 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP LDY #16 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #16 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #21 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #21 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #16 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #21 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #21 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #14 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
116 cycles
5 bytes | |
---|---|
LDX #23 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #23 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHA PHP LDY #21 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #21 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #22 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP LDX #9 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
PHP LDY #9 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #22 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #20 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
PHP CLC LDA #244 @A = * - 1 ; ^ Hides !NOP zp,X NOP ADC #1 BNE @A PLP |
Clobbers A; and requires support for unofficial opcodes |
PHA CLC LDA #244 @A = * - 1 ; ^ Hides !NOP zp,X NOP ADC #1 BNE @A PLA |
Clobbers Z&N, and C; and requires support for unofficial opcodes |
11 bytes | |
TXA PHA LDX #13 @X: LDA $00 DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #20 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #20 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #19 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #20 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #19 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
117 cycles
7 bytes | |
---|---|
LDX #13 @X = * - 1 ; ^ Hides ORA abs LDA $0 DEX BNE @X |
Clobbers A, X, and Z&N |
LDY #13 @Y = * - 1 ; ^ Hides ORA abs LDA $0 DEY BNE @Y |
Clobbers A, Y, and Z&N |
PHA PHA LDY #22 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA LDX #22 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
NOP NOP LDX #16 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP LDY #16 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #22 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TXA PHA LDX #21 @X: DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
NOP NOP PHP LDX #21 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #21 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #21 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #21 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #20 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
118 cycles
6 bytes | |
---|---|
NOP LDX #23 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #23 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #22 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #22 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #23 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #24 @Y = * - 1 ; ^ Hides CLC DEY DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHP SEC LDA #21 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #21 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP SEC LDA #9 @A: PHP PLP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #9 @A: PHP PLP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHA TYA PHA LDY #11 @Y: NOP NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #14 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #19 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
119 cycles
6 bytes | |
---|---|
LDY #136 @Y = * - 1 ; ^ Hides DEY PHP PLP BMI @Y |
Clobbers Y, and Z&N |
PHA LDX #23 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDX #23 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDX #23 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #23 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDX #23 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #23 @X: DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
PHA PHA PHP LDY #21 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #21 @X: DEX BNE @X PLP |
Clobbers X, and S |
NOP PLA SEC LDA #22 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TXA PHA LDX #21 @X: DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDX #21 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP NOP PHP LDY #21 @Y: DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TYA PHA LDY #20 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #21 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #20 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
120 cycles
6 bytes | |
---|---|
LDY #17 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #17 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDY #16 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #16 @X: NOP DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #23 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #22 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #22 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #20 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #20 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
121 cycles
5 bytes | |
---|---|
LDY #24 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #24 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #22 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #22 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #23 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #22 @X: DEX BNE @X PLP |
Clobbers X |
PHP BIT $00 LDY #22 @Y: DEY BNE @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #23 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TXA PHA LDX #21 @X: DEX BNE @X PLA TAX |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TXA PHA LDX #21 @X: DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #21 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #21 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #20 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #21 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #20 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
122 cycles
7 bytes | |
---|---|
NOP LDX #17 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #17 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
SEC LDA #17 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
TYA PHA LDY #22 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDY #16 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #16 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #16 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #16 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #21 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
123 cycles
6 bytes | |
---|---|
NOP LDX #24 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #24 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #23 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #23 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #24 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #22 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #22 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #22 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #22 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA CLC LDA #244 @A = * - 1 ; ^ Hides !NOP zp,X NOP ADC #1 BNE @A PLA PLP |
Requires support for unofficial opcodes |
13 bytes | |
PHA TXA PHA LDX #13 @X: LDA $00 DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #20 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #20 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
124 cycles
4 bytes | |
---|---|
LDX #232 @X = * - 1 ; ^ Hides INX BNE @X |
Clobbers X, and Z&N |
6 bytes | |
PHA LDY #24 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDA $00 LDY #24 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
BIT $00 LDY #24 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
STA @zptemp LDY #24 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
NOP $00 LDY #24 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDY #24 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
9 bytes | |
PHP LDX #13 @X = * - 1 ; ^ Hides ORA abs LDA $0 DEX BNE @X PLP |
Clobbers A, and X |
PHP LDY #13 @Y = * - 1 ; ^ Hides ORA abs LDA $0 DEY BNE @Y PLP |
Clobbers A, and Y |
NOP SEC LDA #17 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHA PHP LDY #22 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #22 @X: DEX BNE @X PLP |
Clobbers X, and S |
10 bytes | |
TXA PHA LDX #16 @X: NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
NOP NOP PHP LDX #16 @X: NOP DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #16 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TXA PHA LDX #21 @X: DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
NOP PHP SEC LDA #16 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #21 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
125 cycles
6 bytes | |
---|---|
PLA LDX #24 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #24 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #24 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #24 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #23 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #23 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #24 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #23 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #23 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #24 @Y = * - 1 ; ^ Hides CLC DEY DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #21 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA SEC LDA #9 @A: PHP PLP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
126 cycles
5 bytes | |
---|---|
LDY #25 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #25 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY PHP PLP BMI @Y PLP |
Clobbers Y |
PHA PHP LDX #23 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #24 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #23 @X: DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #24 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #22 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP TXA PHA LDX #16 @X: NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #22 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #22 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TXA PHA LDX #21 @X: DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #16 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #21 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
127 cycles
5 bytes | |
---|---|
PHA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X |
Clobbers X, S, and Z&N |
6 bytes | |
LDY #18 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #18 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDY #17 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #17 @X: NOP DEX BNE @X PLP |
Clobbers X |
PLA SEC LDA #24 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #23 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
10 bytes | |
NOP PHP SEC LDA #23 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #23 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #22 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
128 cycles
5 bytes | |
---|---|
PLA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X |
Clobbers A, X, S, and Z&N |
6 bytes | |
NOP LDX #25 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #25 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #24 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #24 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #25 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #23 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #23 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #23 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #23 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP NOP PHA TXA PHA LDX #21 @X: DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #21 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #21 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
129 cycles
6 bytes | |
---|---|
LDY #16 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #16 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
NOP LDX #18 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #18 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
SEC LDA #18 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
NOP PHP LDY #17 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #17 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #17 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #17 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA TYA PHA LDY #22 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
12 bytes | |
PHP PHA SEC LDA #16 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
130 cycles
6 bytes | |
---|---|
PHA PHA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X |
Clobbers X, S, and Z&N |
PLA LDY #25 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #25 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #25 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDX #24 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #24 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #25 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #24 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #24 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #22 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #22 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
131 cycles
5 bytes | |
---|---|
LDY #26 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #26 @X: DEX BNE @X |
Clobbers X, and Z&N |
6 bytes | |
PHP LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLP |
Clobbers X |
8 bytes | |
PHA PHP LDY #24 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
SEC LDA #16 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDY #24 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #18 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #17 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
NOP PHP SEC LDA #17 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #17 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TXA PHA LDX #16 @X: NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #16 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
132 cycles
6 bytes | |
---|---|
PLA PLA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
TSX PLA TXS LDX #232 @X = * - 1 ; ^ Hides INX BNE @X |
Clobbers A, X, and Z&N |
PHA LDX #16 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #16 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
8 bytes | |
NOP NOP NOP LDX #25 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP NOP LDY #25 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #25 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #24 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDY #24 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP PHP LDX #24 @X: DEX BNE @X PLP |
Clobbers X |
10 bytes | |
NOP PHP SEC LDA #24 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #24 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #23 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
133 cycles
6 bytes | |
---|---|
NOP LDX #26 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #26 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #25 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #25 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #26 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #24 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #24 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #24 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #24 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP PHA TXA PHA LDX #16 @X: NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #22 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP PHP PHA SEC LDA #16 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
134 cycles
6 bytes | |
---|---|
LDY #19 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #19 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHA PHP LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLP |
Clobbers X, and S |
8 bytes | |
PHP LDX #18 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #18 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
9 bytes | |
NOP PLA SEC LDA #25 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #24 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #23 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #24 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #23 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
135 cycles
6 bytes | |
---|---|
PLA LDX #26 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #26 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #26 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #26 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
TXA PHA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLA TAX |
Clobbers A, and Z&N |
NOP PHP LDY #25 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #25 @X: DEX BNE @X PLP |
Clobbers X |
9 bytes | |
PHP SEC LDA #25 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #25 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #23 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #23 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
136 cycles
5 bytes | |
---|---|
LDY #27 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #27 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
SEC LDA #19 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHP LDY #25 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #25 @X: DEX BNE @X PLP |
Clobbers X, and S |
9 bytes | |
PHP LDY #16 @Y: BIT $00 DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #16 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #18 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #18 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #17 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
137 cycles
6 bytes | |
---|---|
LDX #17 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
LDY #17 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDX #17 @X: LDA $00 DEX BNE @X |
Clobbers A, X, and Z&N |
LDY #17 @Y: LDA $00 DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDX #17 @X: BIT $00 DEX BNE @X |
Clobbers X, Z&N, and V |
LDY #17 @Y: BIT $00 DEY BNE @Y |
Clobbers Y, Z&N, and V |
LDY #17 @Y: STA @zptemp DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
LDX #17 @X: STA @zptemp DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
LDY #17 @Y: NOP $00 DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
LDX #17 @X: NOP $00 DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
LDX #17 @X: JMP *+3 DEX BNE @X |
Clobbers X, and Z&N |
LDY #17 @Y: JMP *+3 DEY BNE @Y |
Clobbers Y, and Z&N |
PHA PHA PHP LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLP |
Clobbers X, and S |
PLA SEC LDA #26 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #25 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDY #25 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP PHP LDX #25 @X: DEX BNE @X PLP |
Clobbers X |
10 bytes | |
NOP PHP SEC LDA #25 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #25 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #24 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
138 cycles
6 bytes | |
---|---|
NOP LDX #27 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #27 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #26 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #26 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #27 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHA TXA PHA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLA TAX |
Clobbers A, S, and Z&N |
10 bytes | |
TYA PHA LDY #18 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHP SEC LDA #25 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #25 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP SEC LDA #16 @A: BIT $00 SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #18 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #17 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #17 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
139 cycles
6 bytes | |
---|---|
PHA LDY #27 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #27 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDY #136 @Y = * - 1 ; ^ Hides DEY NOP PHP PLP BMI @Y |
Clobbers Y, and Z&N |
JSR @rts15 LDX #232 @X = * - 1 ; ^ Hides INX BNE @X |
Clobbers X, and Z&N; and requires @rts15 |
LDA $00 LDX #27 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDX #27 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #27 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDX #27 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #27 @X: DEX BNE @X |
Clobbers X, and Z&N |
SEC LDA #17 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP TSX PLA TXS LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLP |
Clobbers A, and X |
SEC LDA #17 @A: BIT $00 SBC #1 BNE @A |
Clobbers A, Z&N, C, and V |
SEC LDA #17 @A: STA @zptemp SBC #1 BNE @A |
Clobbers A, Z&N, and C; and requires @zptemp |
PLA TXA PHA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLA TAX |
Clobbers A, S, and Z&N |
PHA PHA PHP LDY #25 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #25 @X: DEX BNE @X PLP |
Clobbers X, and S |
SEC LDA #17 @A: NOP $00 SBC #1 BNE @A |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
10 bytes | |
NOP TYA PHA LDY #25 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDY #25 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP NOP PHP LDX #25 @X: DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TYA PHA LDY #24 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #25 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #24 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
140 cycles
6 bytes | |
---|---|
PLA LDX #27 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #27 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #27 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #27 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDX #26 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #26 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #27 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #26 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #26 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #24 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #24 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
141 cycles
5 bytes | |
---|---|
LDX #28 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #28 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP LDY #19 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #19 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHA SEC LDA #27 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
LDA $00 SEC LDA #27 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #25 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TYA PHA LDY #25 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #25 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #25 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #24 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #25 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #24 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
142 cycles
7 bytes | |
---|---|
LDY #152 @Y = * - 1 ; ^ Hides TYA NOP DEY DEY BMI @Y |
Clobbers A, Y, and Z&N |
LDX #152 @X = * - 1 ; ^ Hides TYA NOP DEX DEX BMI @X |
Clobbers A, X, and Z&N |
PHA PHA LDY #27 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA LDX #27 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
LDY #26 @Y = * - 1 ; ^ Hides !NOP NOP DEY DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
LDX #26 @X = * - 1 ; ^ Hides !NOP NOP DEX DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
NOP NOP NOP LDX #27 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP NOP LDY #27 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #27 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #26 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDY #26 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP PHP LDX #26 @X: DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHA TXA PHA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLA TAX PLA |
Clobbers Z&N |
NOP PHP SEC LDA #26 @A: SBC #1 BNE @A PLP |
Clobbers A |
11 bytes | |
PHP PHA SEC LDA #25 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
143 cycles
6 bytes | |
---|---|
NOP LDY #28 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #28 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #27 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #27 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #28 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHP SEC LDA #19 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #19 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #18 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
144 cycles
6 bytes | |
---|---|
PHA LDY #28 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #28 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDY #28 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #28 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDY #28 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #28 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDY #28 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
STA @zptemp LDX #28 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDY #28 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDX #28 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDY #28 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
JMP *+3 LDX #28 @X: DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
PHP LDX #17 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
PHP LDY #17 @Y: BIT $00 DEY BNE @Y PLP |
Clobbers Y |
NOP PLA SEC LDA #27 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #26 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #25 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #26 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #25 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
145 cycles
6 bytes | |
---|---|
LDY #18 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #18 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDY #12 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #12 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDX #27 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #27 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #28 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #27 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #27 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA PHA TXA PHA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLA TAX PLA |
Clobbers S, and Z&N |
12 bytes | |
PHA TYA PHA LDY #18 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #25 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA SEC LDA #16 @A: BIT $00 SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
146 cycles
5 bytes | |
---|---|
LDY #29 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #29 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDX #27 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHP LDY #27 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA SEC LDA #28 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #27 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #136 @Y = * - 1 ; ^ Hides DEY NOP PHP PLP BMI @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #28 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #26 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
PHP SEC LDA #17 @A: BIT $00 SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #17 @A: BIT $00 SBC #1 BNE @A PLA |
Clobbers Z&N, C, and V |
PHA SEC LDA #17 @A: STA @zptemp SBC #1 BNE @A PLA |
Clobbers Z&N, and C; and requires @zptemp |
PHA PHA SEC LDA #19 @A: NOP SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
PHA SEC LDA #17 @A: NOP $00 SBC #1 BNE @A PLA |
Clobbers Z&N, and C; and requires support for unofficial opcodes |
12 bytes | |
NOP PHA TYA PHA LDY #25 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP NOP PHP PHA SEC LDA #25 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
147 cycles
7 bytes | |
---|---|
NOP LDX #18 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
NOP LDY #18 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
8 bytes | |
NOP LDX #12 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #12 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
SEC LDA #18 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #27 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDY #27 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP PHP LDX #27 @X: DEX BNE @X PLP |
Clobbers X |
10 bytes | |
NOP PHP SEC LDA #27 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #27 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #26 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
148 cycles
6 bytes | |
---|---|
LDX #21 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #21 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #28 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #28 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #29 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #27 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #27 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #27 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #27 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHA PHA TXA PHA LDX #232 @X = * - 1 ; ^ Hides INX BNE @X PLA TAX PLA |
Clobbers S, and Z&N |
13 bytes | |
NOP NOP PHA TYA PHA LDY #25 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #25 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #25 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
149 cycles
6 bytes | |
---|---|
PHA LDX #29 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #29 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDA $00 LDX #29 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
LDA $00 LDY #29 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
BIT $00 LDY #29 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #29 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #29 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
STA @zptemp LDY #29 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
NOP $00 LDX #29 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDY #29 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDY #29 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
JMP *+3 LDX #29 @X: DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
PHP LDX #152 @X = * - 1 ; ^ Hides TYA NOP DEX DEX BMI @X PLP |
Clobbers A, and X |
PHP LDY #152 @Y = * - 1 ; ^ Hides TYA NOP DEY DEY BMI @Y PLP |
Clobbers A, and Y |
PHA PHA PHP LDY #27 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #27 @X: DEX BNE @X PLP |
Clobbers X, and S |
NOP SEC LDA #18 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
PHP LDX #26 @X = * - 1 ; ^ Hides !NOP NOP DEX DEX BNE @X PLP |
Clobbers X; and requires support for unofficial opcodes |
PHP LDY #26 @Y = * - 1 ; ^ Hides !NOP NOP DEY DEY BNE @Y PLP |
Clobbers Y; and requires support for unofficial opcodes |
10 bytes | |
NOP TYA PHA LDY #27 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDX #27 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP NOP PHP LDY #27 @Y: DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TYA PHA LDY #26 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #27 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #26 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
150 cycles
6 bytes | |
---|---|
PLA LDX #29 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #29 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP LDY #21 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #21 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #28 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #28 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #21 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #28 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #28 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #19 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
151 cycles
5 bytes | |
---|---|
LDY #30 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #30 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #28 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #28 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #29 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #28 @X: DEX BNE @X PLP |
Clobbers X |
PHP BIT $00 LDY #28 @Y: DEY BNE @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #29 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #27 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TYA PHA LDY #27 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #27 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #27 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #26 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #27 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #26 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
152 cycles
7 bytes | |
---|---|
PHA PHA LDY #29 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA LDX #29 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
NOP NOP LDX #21 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP LDY #21 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #29 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TXA PHA LDX #28 @X: DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
PHP LDX #12 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
PHP LDY #12 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #28 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #28 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #27 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
153 cycles
5 bytes | |
---|---|
LDY #234 @Y = * - 1 ; ^ Hides NOP INY BNE @Y |
Clobbers Y, and Z&N |
LDX #234 @X = * - 1 ; ^ Hides NOP INX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #29 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #29 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #30 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #28 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #28 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #28 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #28 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHP PHA SEC LDA #17 @A: BIT $00 SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
154 cycles
6 bytes | |
---|---|
PHA LDX #30 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #30 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDY #17 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #17 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
PHA PHA PHP LDY #28 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #28 @X: DEX BNE @X PLP |
Clobbers X, and S |
NOP PLA SEC LDA #29 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TXA PHA LDX #28 @X: DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
NOP PHP LDY #12 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #12 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TYA PHA LDY #27 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #28 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #27 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
155 cycles
6 bytes | |
---|---|
LDX #22 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #22 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
CLC LDA #234 @A = * - 1 ; ^ Hides NOP ADC #1 BNE @A |
Clobbers A, Z&N, and C |
8 bytes | |
PHP LDY #21 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #21 @X: NOP DEX BNE @X PLP |
Clobbers X |
9 bytes | |
PHP SEC LDA #29 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #29 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #27 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #27 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
156 cycles
5 bytes | |
---|---|
LDY #31 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #31 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #29 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #29 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #30 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDY #29 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP BIT $00 LDX #29 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #17 @A: NOP NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TXA PHA LDX #28 @X: DEX BNE @X PLA TAX |
Clobbers A, S, and Z&N |
11 bytes | |
TYA PHA LDY #12 @Y: PHP PLP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #28 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #28 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #27 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #28 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #27 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
157 cycles
6 bytes | |
---|---|
PLA LDX #234 @X = * - 1 ; ^ Hides NOP INX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #234 @Y = * - 1 ; ^ Hides NOP INY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
LDY #13 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #13 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
SEC LDA #22 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
TYA PHA LDY #29 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDY #21 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #21 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #21 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #21 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #28 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
158 cycles
6 bytes | |
---|---|
NOP LDX #31 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #31 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #30 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #30 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #31 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #29 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #29 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #29 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #29 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP NOP PHA TYA PHA LDY #27 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #27 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #27 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
159 cycles
6 bytes | |
---|---|
PHA LDY #31 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #31 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDY #31 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #31 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDY #31 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #31 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #31 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
STA @zptemp LDY #31 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
NOP $00 LDY #31 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDX #31 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #31 @X: DEX BNE @X |
Clobbers X, and Z&N |
JMP *+3 LDY #31 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
PLA CLC LDA #234 @A = * - 1 ; ^ Hides NOP ADC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
SEC LDA #13 @A: PHP PLP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHA PHP LDY #29 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #29 @X: DEX BNE @X PLP |
Clobbers X, and S |
10 bytes | |
TYA PHA LDY #21 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDY #21 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP NOP PHP LDX #21 @X: NOP DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TXA PHA LDX #28 @X: DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
NOP PHP SEC LDA #21 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #28 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
160 cycles
6 bytes | |
---|---|
PLA LDX #31 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #31 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
PHP LDX #234 @X = * - 1 ; ^ Hides NOP INX BNE @X PLP |
Clobbers X |
PHP LDY #234 @Y = * - 1 ; ^ Hides NOP INY BNE @Y PLP |
Clobbers Y |
8 bytes | |
NOP SEC LDA #31 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #30 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #30 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #28 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #28 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
161 cycles
5 bytes | |
---|---|
LDY #32 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #32 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #30 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #30 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #31 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP LDX #17 @X: NOP NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #17 @Y: NOP NOP DEY BNE @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #31 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #29 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP TYA PHA LDY #21 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #29 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #29 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TXA PHA LDX #28 @X: DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #21 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #28 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
162 cycles
6 bytes | |
---|---|
LDX #23 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #23 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP LDY #22 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #22 @X: NOP DEX BNE @X PLP |
Clobbers X |
PLA SEC LDA #31 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP CLC LDA #234 @A = * - 1 ; ^ Hides NOP ADC #1 BNE @A PLP |
Clobbers A |
PHA CLC LDA #234 @A = * - 1 ; ^ Hides NOP ADC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #29 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
163 cycles
6 bytes | |
---|---|
NOP LDX #32 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #32 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #31 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #31 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #32 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #30 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #30 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP SEC LDA #17 @A: NOP NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #17 @A: NOP NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHA TYA PHA LDY #12 @Y: PHP PLP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #28 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #28 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
164 cycles
6 bytes | |
---|---|
PHA LDX #32 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #32 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
NOP LDY #23 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #23 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
SEC LDA #23 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
TYA PHA LDY #234 @Y = * - 1 ; ^ Hides NOP INY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHP LDY #13 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #13 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #22 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #22 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA TYA PHA LDY #29 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
12 bytes | |
PHP PHA SEC LDA #21 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
165 cycles
6 bytes | |
---|---|
PLA LDX #32 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #32 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #32 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #32 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDX #31 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #31 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #32 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #31 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #31 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #29 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #29 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
166 cycles
5 bytes | |
---|---|
LDX #33 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #33 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHA PHP LDX #31 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHP LDY #31 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA SEC LDA #32 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDY #31 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP BIT $00 LDX #31 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #23 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TXA PHA LDX #22 @X: NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
11 bytes | |
PHP SEC LDA #13 @A: PHP PLP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #13 @A: PHP PLP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #21 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #21 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
167 cycles
5 bytes | |
---|---|
LDY #24 @Y = * - 1 ; ^ Hides CLC DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #24 @X = * - 1 ; ^ Hides CLC DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PLA SEC LDA #32 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #31 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDY #31 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP PHP LDX #31 @X: DEX BNE @X PLP |
Clobbers X |
10 bytes | |
NOP PHP SEC LDA #31 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #31 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #30 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
168 cycles
6 bytes | |
---|---|
NOP LDY #33 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #33 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #32 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #32 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #33 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #31 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #31 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #31 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #31 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP PHA TYA PHA LDY #21 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #29 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP PHP PHA SEC LDA #21 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
169 cycles
6 bytes | |
---|---|
LDY #24 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #24 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #23 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #23 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
9 bytes | |
NOP PLA SEC LDA #32 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #31 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHP PHA CLC LDA #234 @A = * - 1 ; ^ Hides NOP ADC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
170 cycles
6 bytes | |
---|---|
LDY #200 @Y = * - 1 ; ^ Hides INY INY INY BNE @Y |
Clobbers Y, and Z&N |
PHA LDX #24 @X = * - 1 ; ^ Hides CLC DEX BNE @X |
Clobbers X, S, and Z&N |
LDX #90 @X = * - 1 ; ^ Hides !NOP INX INX BPL @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
7 bytes | |
NOP NOP LDX #33 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #32 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #32 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #33 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #32 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #32 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #30 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA SEC LDA #17 @A: NOP NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
171 cycles
5 bytes | |
---|---|
LDY #34 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #34 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
SEC LDA #24 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHP LDX #32 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHP LDY #32 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
9 bytes | |
NOP PHP LDY #23 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #23 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #23 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #23 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA TYA PHA LDY #234 @Y = * - 1 ; ^ Hides NOP INY BNE @Y PLA TAY PLA |
Clobbers Z&N |
12 bytes | |
PHP PHA SEC LDA #22 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
172 cycles
6 bytes | |
---|---|
LDY #19 @Y: PLA DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
LDX #19 @X: PLA DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
LDY #19 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #19 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PLA SEC LDA #33 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #32 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDY #32 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP PHP LDX #32 @X: DEX BNE @X PLP |
Clobbers X |
10 bytes | |
NOP PHP SEC LDA #32 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #32 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #31 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
173 cycles
6 bytes | |
---|---|
NOP LDX #34 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #34 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #33 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #33 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #34 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TXA PHA LDX #23 @X: NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
PHA PHP SEC LDA #32 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #32 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
NOP PHP SEC LDA #23 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #23 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TXA PHA LDX #22 @X: NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
13 bytes | |
PHP PHA SEC LDA #13 @A: PHP PLP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
174 cycles
5 bytes | |
---|---|
LDX #232 @X = * - 1 ; ^ Hides INX NOP BNE @X |
Clobbers X, and Z&N |
LDY #152 @Y = * - 1 ; ^ Hides TYA DEY BMI @Y |
Clobbers A, Y, and Z&N |
6 bytes | |
PHA LDY #34 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
PHP LDX #24 @X = * - 1 ; ^ Hides CLC DEX BNE @X PLP |
Clobbers X |
PHP LDY #24 @Y = * - 1 ; ^ Hides CLC DEY BNE @Y PLP |
Clobbers Y |
9 bytes | |
SEC LDA #19 @A: NOP NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #32 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #31 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #32 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #31 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
175 cycles
6 bytes | |
---|---|
PLA LDX #34 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #34 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #34 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #34 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #33 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #33 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #34 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #33 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #33 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #31 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #31 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
176 cycles
5 bytes | |
---|---|
LDY #35 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #35 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #24 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #24 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHA SEC LDA #34 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
LDA $00 SEC LDA #34 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #32 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TYA PHA LDY #32 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #32 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #32 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #31 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #32 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #31 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
177 cycles
6 bytes | |
---|---|
LDX #22 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
LDY #22 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDY #22 @Y: LDA $00 DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDX #22 @X: LDA $00 DEX BNE @X |
Clobbers A, X, and Z&N |
LDX #22 @X: BIT $00 DEX BNE @X |
Clobbers X, Z&N, and V |
LDY #22 @Y: BIT $00 DEY BNE @Y |
Clobbers Y, Z&N, and V |
LDX #22 @X: STA @zptemp DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
LDY #22 @Y: STA @zptemp DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
LDY #22 @Y: NOP $00 DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
LDX #22 @X: NOP $00 DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
PHP LDY #200 @Y = * - 1 ; ^ Hides INY INY INY BNE @Y PLP |
Clobbers Y |
LDX #22 @X: JMP *+3 DEX BNE @X |
Clobbers X, and Z&N |
PHA PHP LDX #24 @X = * - 1 ; ^ Hides CLC DEX BNE @X PLP |
Clobbers X, and S |
PLA SEC LDA #34 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
PHP LDX #90 @X = * - 1 ; ^ Hides !NOP INX INX BPL @X PLP |
Clobbers X; and requires support for unofficial opcodes |
9 bytes | |
TXA PHA LDX #33 @X: DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
NOP NOP PHP LDX #33 @X: DEX BNE @X PLP |
Clobbers X |
10 bytes | |
NOP PHP SEC LDA #33 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #33 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #32 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
178 cycles
6 bytes | |
---|---|
NOP LDX #35 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #35 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #34 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #34 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #35 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
TYA PHA LDY #24 @Y = * - 1 ; ^ Hides CLC DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
10 bytes | |
PHP SEC LDA #24 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #24 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #23 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
179 cycles
6 bytes | |
---|---|
LDX #21 @X = * - 1 ; ^ Hides ORA zp,X DEX ;first round only DEX BNE @X |
Clobbers A, X, and Z&N |
LDY #21 @Y = * - 1 ; ^ Hides ORA zp,X DEY ;first round only DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDX #216 @X = * - 1 ; ^ Hides CLD INX INX BNE @X |
Clobbers X, Z&N, and D |
LDY #216 @Y = * - 1 ; ^ Hides CLD INY INY BNE @Y |
Clobbers Y, Z&N, and D |
PHA LDX #35 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #35 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #20 @X = * - 1 ; ^ Hides !NOP zp,X NOP DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
LDY #20 @Y = * - 1 ; ^ Hides !NOP zp,X NOP DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
7 bytes | |
LDX #236 @X = * - 1 ; ^ Hides CPX abs CMP #0 INX BNE @X |
Clobbers X, Z&N, and C |
LDY #236 @Y = * - 1 ; ^ Hides CPX abs CMP #0 INY BNE @Y |
Clobbers Y, Z&N, and C |
BIT $00 LDY #35 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #35 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDY #35 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
STA @zptemp LDX #35 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
8 bytes | |
JMP *+3 LDX #35 @X: DEX BNE @X |
Clobbers X, and Z&N |
JMP *+3 LDY #35 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
SEC LDA #22 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP LDX #19 @X: NOP NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #19 @Y: NOP NOP DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #22 @A: BIT $00 SBC #1 BNE @A |
Clobbers A, Z&N, C, and V |
SEC LDA #22 @A: STA @zptemp SBC #1 BNE @A |
Clobbers A, Z&N, and C; and requires @zptemp |
SEC LDA #22 @A: NOP $00 SBC #1 BNE @A |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
10 bytes | |
NOP TXA PHA LDX #33 @X: DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #32 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #33 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #32 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
180 cycles
6 bytes | |
---|---|
PLA LDX #35 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #35 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #35 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #35 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #34 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #34 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #35 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #34 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #34 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TXA PHA LDX #23 @X: NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #32 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
NOP PHP PHA SEC LDA #23 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
181 cycles
5 bytes | |
---|---|
LDY #36 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #36 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDX #232 @X = * - 1 ; ^ Hides INX NOP BNE @X PLP |
Clobbers X |
PHP LDY #152 @Y = * - 1 ; ^ Hides TYA DEY BMI @Y PLP |
Clobbers A, and Y |
8 bytes | |
PHA PHP LDY #34 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA SEC LDA #35 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
SEC LDA #20 @A = * - 1 ; ^ Hides !NOP zp,X NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
9 bytes | |
PHP PLP PHP LDY #24 @Y = * - 1 ; ^ Hides CLC DEY BNE @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #35 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #200 @Y = * - 1 ; ^ Hides INY INY INY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHP SEC LDA #19 @A: NOP NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #19 @A: NOP NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #32 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP NOP PHP PHA SEC LDA #32 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
182 cycles
7 bytes | |
---|---|
LDY #236 @Y = * - 1 ; ^ Hides CPX abs INC @zptemp INY BNE @Y |
Clobbers Y, Z&N, and C; and requires @zptemp |
LDX #236 @X = * - 1 ; ^ Hides CPX abs INC @zptemp INX BNE @X |
Clobbers X, Z&N, and C; and requires @zptemp |
PHA PHA LDY #35 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA LDX #35 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
NOP NOP NOP LDX #35 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP NOP LDY #35 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #35 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #34 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #34 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #34 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #34 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #34 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #33 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
183 cycles
6 bytes | |
---|---|
LDX #26 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #26 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #35 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #35 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #36 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #34 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #34 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #34 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #34 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP NOP PHA TYA PHA LDY #32 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #32 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #32 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
184 cycles
6 bytes | |
---|---|
PHA LDY #36 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #36 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDY #36 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #36 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDY #36 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #36 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDY #36 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
STA @zptemp LDX #36 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDY #36 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDX #36 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #36 @X: DEX BNE @X |
Clobbers X, and Z&N |
JMP *+3 LDY #36 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
PHA PHP LDX #232 @X = * - 1 ; ^ Hides INX NOP BNE @X PLP |
Clobbers X, and S |
PHA PHP LDY #152 @Y = * - 1 ; ^ Hides TYA DEY BMI @Y PLP |
Clobbers A, Y, and S |
9 bytes | |
PHP LDX #22 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
PHP LDY #22 @Y: BIT $00 DEY BNE @Y PLP |
Clobbers Y |
NOP PLA SEC LDA #35 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #34 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TXA PHA LDX #33 @X: DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #34 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #33 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
185 cycles
6 bytes | |
---|---|
LDX #23 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
LDY #23 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
NOP LDY #26 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #26 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #35 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #35 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #26 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #35 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #35 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA TYA PHA LDY #24 @Y = * - 1 ; ^ Hides CLC DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
12 bytes | |
PHP PHA SEC LDA #24 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
186 cycles
5 bytes | |
---|---|
LDX #37 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #37 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP LDY #216 @Y = * - 1 ; ^ Hides CLD INY INY BNE @Y PLP |
Clobbers Y |
PHP LDX #216 @X = * - 1 ; ^ Hides CLD INX INX BNE @X PLP |
Clobbers X |
PHA SEC LDA #36 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
LDA $00 SEC LDA #36 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #34 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
PHP SEC LDA #22 @A: BIT $00 SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #22 @A: BIT $00 SBC #1 BNE @A PLA |
Clobbers Z&N, C, and V |
PHA SEC LDA #22 @A: STA @zptemp SBC #1 BNE @A PLA |
Clobbers Z&N, and C; and requires @zptemp |
PHA PHA PHA SEC LDA #34 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
PHA SEC LDA #22 @A: NOP $00 SBC #1 BNE @A PLA |
Clobbers Z&N, and C; and requires support for unofficial opcodes |
12 bytes | |
NOP PHA TXA PHA LDX #33 @X: DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
13 bytes | |
NOP NOP PHP PHA SEC LDA #33 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
187 cycles
7 bytes | |
---|---|
NOP LDY #23 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
NOP LDX #23 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
NOP NOP LDX #26 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP LDY #26 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
SEC LDA #23 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #35 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #35 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #35 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #35 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #35 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #34 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
188 cycles
6 bytes | |
---|---|
NOP LDY #37 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #37 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDX #36 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #36 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #37 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #35 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #35 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
PHP SEC LDA #20 @A = * - 1 ; ^ Hides !NOP zp,X NOP SBC #1 BNE @A PLP |
Clobbers A; and requires support for unofficial opcodes |
PHA SEC LDA #20 @A = * - 1 ; ^ Hides !NOP zp,X NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C; and requires support for unofficial opcodes |
11 bytes | |
PHP LDA $00 SEC LDA #35 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #35 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #200 @Y = * - 1 ; ^ Hides INY INY INY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
PHP PHA SEC LDA #19 @A: NOP NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
189 cycles
6 bytes | |
---|---|
PHA LDY #37 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #37 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDY #37 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #37 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDY #37 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #37 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
LDY #136 @Y = * - 1 ; ^ Hides DEY JSR @rts14 BMI @Y |
Clobbers Y, and Z&N; and requires @rts14 |
STA @zptemp LDY #37 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
STA @zptemp LDX #37 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDY #37 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDX #37 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #37 @X: DEX BNE @X |
Clobbers X, and Z&N |
JMP *+3 LDY #37 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
9 bytes | |
PHP LDX #236 @X = * - 1 ; ^ Hides CPX abs INC @zptemp INX BNE @X PLP |
Clobbers X; and requires @zptemp |
PHP LDY #236 @Y = * - 1 ; ^ Hides CPX abs INC @zptemp INY BNE @Y PLP |
Clobbers Y; and requires @zptemp |
PHA PHA PHP LDY #35 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #35 @X: DEX BNE @X PLP |
Clobbers X, and S |
NOP SEC LDA #23 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #35 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDX #35 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP NOP PHP LDY #35 @Y: DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TYA PHA LDY #34 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #35 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #34 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
190 cycles
6 bytes | |
---|---|
LDY #27 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #27 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDY #26 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #26 @X: NOP DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #37 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #36 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #36 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #34 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #34 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
191 cycles
5 bytes | |
---|---|
LDY #38 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #38 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #36 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #36 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #37 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDY #36 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP BIT $00 LDX #36 @X: DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #37 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #35 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TYA PHA LDY #35 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #35 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #35 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #34 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #35 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #34 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
192 cycles
7 bytes | |
---|---|
NOP LDX #27 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #27 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
SEC LDA #27 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
TYA PHA LDY #36 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHP LDY #23 @Y: BIT $00 DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #23 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #26 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #26 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #35 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
193 cycles
6 bytes | |
---|---|
NOP LDX #38 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #38 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #37 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #37 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #38 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #36 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #36 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #36 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #36 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHP PHA SEC LDA #22 @A: BIT $00 SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
194 cycles
6 bytes | |
---|---|
PHA LDY #38 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #38 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDY #38 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #38 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDY #38 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #38 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDY #38 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
STA @zptemp LDX #38 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDY #38 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDX #38 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #38 @X: DEX BNE @X |
Clobbers X, and Z&N |
JMP *+3 LDY #38 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
9 bytes | |
NOP SEC LDA #27 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHA PHP LDX #36 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHA PHP LDY #36 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
10 bytes | |
TXA PHA LDX #26 @X: NOP DEX BNE @X PLA TAX |
Clobbers A, and Z&N |
NOP PHP LDX #23 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #23 @Y: BIT $00 DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TYA PHA LDY #35 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP PHP SEC LDA #26 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #35 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
195 cycles
6 bytes | |
---|---|
PLA LDX #38 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #38 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #38 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #38 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDX #37 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #37 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #38 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #37 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #37 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #35 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
PHP PHA SEC LDA #20 @A = * - 1 ; ^ Hides !NOP zp,X NOP SBC #1 BNE @A PLA PLP |
Requires support for unofficial opcodes |
13 bytes | |
PHP PHA LDA $00 SEC LDA #35 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
196 cycles
5 bytes | |
---|---|
LDX #39 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #39 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHA PHP LDY #37 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #37 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #38 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDX #37 @X: DEX BNE @X PLP |
Clobbers X |
PHP BIT $00 LDY #37 @Y: DEY BNE @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #38 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #36 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
TYA PHA LDY #23 @Y: LDA $00 DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #36 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #36 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #35 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #26 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #35 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
197 cycles
6 bytes | |
---|---|
LDY #28 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #28 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #27 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #27 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PLA SEC LDA #38 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #37 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
10 bytes | |
NOP PHP SEC LDA #37 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #37 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #36 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
198 cycles
6 bytes | |
---|---|
NOP LDY #39 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #39 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDX #38 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #38 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #39 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #37 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #37 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #37 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #37 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP NOP PHA TYA PHA LDY #35 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #35 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #35 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
199 cycles
5 bytes | |
---|---|
LDX #232 @X = * - 1 ; ^ Hides INX PHA BNE @X |
Clobbers X, S, and Z&N |
6 bytes | |
LDX #232 @X = * - 1 ; ^ Hides INX LDA $00 BNE @X |
Clobbers A, X, and Z&N |
LDX #232 @X = * - 1 ; ^ Hides INX BIT $00 BNE @X |
Clobbers X, Z&N, and V |
LDX #232 @X = * - 1 ; ^ Hides INX STA @zptemp BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
PHA LDY #39 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #232 @X = * - 1 ; ^ Hides INX NOP $00 BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
7 bytes | |
LDX #22 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
LDY #22 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
SEC LDA #28 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
NOP PHP LDY #27 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #27 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #27 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #27 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA TYA PHA LDY #36 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
12 bytes | |
PHP PHA SEC LDA #26 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
200 cycles
6 bytes | |
---|---|
PLA LDY #39 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
PLA LDX #39 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
NOP NOP LDX #39 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP LDY #39 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
NOP PHP LDY #38 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #38 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #39 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #38 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #38 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #36 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #36 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
201 cycles
5 bytes | |
---|---|
LDY #40 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #40 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #38 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #38 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #39 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDY #38 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP BIT $00 LDX #38 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #22 @A: NOP NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #27 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
NOP PHP SEC LDA #27 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #27 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TXA PHA LDX #26 @X: NOP DEX BNE @X PLA TAX PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #26 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
202 cycles
6 bytes | |
---|---|
PHA LDX #232 @X = * - 1 ; ^ Hides INX PHA BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
PHA PHA LDY #39 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
8 bytes | |
NOP NOP NOP LDY #39 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP NOP LDX #39 @X: DEX BNE @X |
Clobbers X, and Z&N |
PLA SEC LDA #39 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #38 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #38 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #38 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #38 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #38 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #37 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
203 cycles
6 bytes | |
---|---|
NOP LDX #40 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #40 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #39 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #39 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #40 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #38 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #38 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #38 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #38 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHA TYA PHA LDY #23 @Y: LDA $00 DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #36 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP PHP PHA SEC LDA #26 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
204 cycles
6 bytes | |
---|---|
LDY #29 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #29 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #28 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #28 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
9 bytes | |
NOP PLA SEC LDA #39 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #38 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #37 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #38 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #37 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
205 cycles
6 bytes | |
---|---|
PLA LDX #40 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #40 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
LDY #17 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #17 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #39 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #39 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #40 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #39 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #39 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #37 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #37 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
206 cycles
5 bytes | |
---|---|
LDY #41 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #41 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #232 @X = * - 1 ; ^ Hides INX BIT $00 BNE @X PLP |
Clobbers X |
SEC LDA #29 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHP LDY #39 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
9 bytes | |
PHP LDY #22 @Y: NOP NOP DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
PHP SEC LDA #28 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #28 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #27 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
207 cycles
7 bytes | |
---|---|
LDY #233 @Y = * - 1 ; ^ Hides SBC #imm BIT $EA ;hides 'NOP' INY BNE @Y |
Clobbers A, Y, Z&N, C, and V |
LDX #233 @X = * - 1 ; ^ Hides SBC #imm BIT $EA ;hides 'NOP' INX BNE @X |
Clobbers A, X, Z&N, C, and V |
PHA LDX #29 @X: NOP DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #29 @Y: NOP DEY BNE @Y |
Clobbers Y, S, and Z&N |
8 bytes | |
NOP LDX #17 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #17 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #40 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #39 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #39 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #39 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #39 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #39 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #38 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
208 cycles
6 bytes | |
---|---|
NOP LDX #41 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #41 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #40 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #40 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #41 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #28 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHP SEC LDA #39 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #39 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP SEC LDA #22 @A: NOP NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #22 @A: NOP NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #27 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #27 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
209 cycles
6 bytes | |
---|---|
LDX #26 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
LDY #26 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDX #26 @X: LDA $00 DEX BNE @X |
Clobbers A, X, and Z&N |
LDY #26 @Y: LDA $00 DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDX #26 @X: BIT $00 DEX BNE @X |
Clobbers X, Z&N, and V |
LDY #26 @Y: BIT $00 DEY BNE @Y |
Clobbers Y, Z&N, and V |
LDY #26 @Y: STA @zptemp DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
LDX #26 @X: STA @zptemp DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
LDY #26 @Y: NOP $00 DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
LDX #26 @X: NOP $00 DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
LDX #26 @X: JMP *+3 DEX BNE @X |
Clobbers X, and Z&N |
LDY #26 @Y: JMP *+3 DEY BNE @Y |
Clobbers Y, and Z&N |
9 bytes | |
PHA PHA PHP LDY #39 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #39 @X: DEX BNE @X PLP |
Clobbers X, and S |
NOP PLA SEC LDA #40 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #39 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDX #39 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP NOP PHP LDY #39 @Y: DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TYA PHA LDY #38 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #39 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #38 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
210 cycles
6 bytes | |
---|---|
PLA LDX #41 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #41 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #41 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #41 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #40 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #40 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #41 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #40 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #40 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #38 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #38 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
211 cycles
5 bytes | |
---|---|
LDY #42 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #42 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #29 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #29 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #26 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
LDA $00 SEC LDA #41 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #39 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TYA PHA LDY #39 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #39 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #39 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #38 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #39 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #38 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
212 cycles
7 bytes | |
---|---|
PHA LDX #26 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #26 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
8 bytes | |
NOP NOP NOP LDX #41 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP NOP LDY #41 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #41 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #40 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHP LDX #17 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
PHP LDY #17 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #40 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #40 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #39 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
213 cycles
6 bytes | |
---|---|
NOP LDX #42 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #42 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDY #41 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #41 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #42 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHP SEC LDA #29 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #29 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #28 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
214 cycles
6 bytes | |
---|---|
PHA LDX #42 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #42 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDA $00 LDX #42 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
LDA $00 LDY #42 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
BIT $00 LDY #42 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #42 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #42 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
STA @zptemp LDY #42 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
NOP $00 LDX #42 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDY #42 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #42 @X: DEX BNE @X |
Clobbers X, and Z&N |
JMP *+3 LDY #42 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
9 bytes | |
PHP LDX #233 @X = * - 1 ; ^ Hides SBC #imm BIT $EA ;hides 'NOP' INX BNE @X PLP |
Clobbers A, and X |
PHP LDY #233 @Y = * - 1 ; ^ Hides SBC #imm BIT $EA ;hides 'NOP' INY BNE @Y PLP |
Clobbers A, and Y |
PHA PHP LDY #29 @Y: NOP DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #29 @X: NOP DEX BNE @X PLP |
Clobbers X, and S |
NOP PLA SEC LDA #41 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #40 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDY #17 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #17 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TYA PHA LDY #39 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #40 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #39 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
215 cycles
6 bytes | |
---|---|
LDY #24 @Y = * - 1 ; ^ Hides CLC NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #24 @X = * - 1 ; ^ Hides CLC NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #41 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #41 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #42 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #41 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #41 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #28 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #39 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA SEC LDA #22 @A: NOP NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
216 cycles
5 bytes | |
---|---|
LDY #43 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #43 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #41 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #41 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #42 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP LDX #26 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
PHP LDY #26 @Y: BIT $00 DEY BNE @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #42 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #40 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
TYA PHA LDY #17 @Y: PHP PLP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHP SEC LDA #29 @A: NOP SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #29 @A: NOP SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #39 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #40 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #39 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
217 cycles
6 bytes | |
---|---|
LDY #27 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #27 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDY #18 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #18 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PLA SEC LDA #42 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #41 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #41 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #41 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #41 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #41 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #40 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
218 cycles
6 bytes | |
---|---|
LDY #31 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #31 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDX #42 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #42 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #43 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #41 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #41 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP SEC LDA #26 @A: BIT $00 SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #41 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP NOP PHA TYA PHA LDY #39 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #39 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #39 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
219 cycles
6 bytes | |
---|---|
PHA LDY #43 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #43 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDA $00 LDY #43 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDA $00 LDX #43 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
BIT $00 LDY #43 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
LDY #216 @Y = * - 1 ; ^ Hides CLD NOP INY INY BNE @Y |
Clobbers Y, Z&N, and D |
LDX #216 @X = * - 1 ; ^ Hides CLD NOP INX INX BNE @X |
Clobbers X, Z&N, and D |
BIT $00 LDX #43 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDY #43 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
STA @zptemp LDX #43 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
NOP $00 LDY #43 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDX #43 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDX #43 @X: DEX BNE @X |
Clobbers X, and Z&N |
JMP *+3 LDY #43 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
SEC LDA #27 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
SEC LDA #18 @A: PHP PLP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHA PHP LDY #41 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #41 @X: DEX BNE @X PLP |
Clobbers X, and S |
10 bytes | |
NOP TYA PHA LDY #41 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDX #41 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP NOP PHP LDY #41 @Y: DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TYA PHA LDY #40 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #41 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #40 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
220 cycles
6 bytes | |
---|---|
PLA LDX #43 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #43 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP LDX #31 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #31 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
NOP PHP LDY #42 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #42 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #31 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #42 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #42 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #29 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
221 cycles
5 bytes | |
---|---|
LDY #44 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #44 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #42 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #42 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #43 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP BIT $00 LDY #42 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP BIT $00 LDX #42 @X: DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #43 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #41 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TYA PHA LDY #41 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #41 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #41 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #40 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #41 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #40 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
222 cycles
7 bytes | |
---|---|
PHA PHA LDY #43 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA LDX #43 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
PHP LDX #24 @X = * - 1 ; ^ Hides CLC NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #24 @Y = * - 1 ; ^ Hides CLC NOP DEY BNE @Y PLP |
Clobbers Y |
PLA SEC LDA #43 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #42 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
10 bytes | |
NOP PHP SEC LDA #42 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #42 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #41 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
223 cycles
6 bytes | |
---|---|
NOP LDX #44 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #44 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #43 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #43 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #44 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #42 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #42 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #42 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #42 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHA TYA PHA LDY #17 @Y: PHP PLP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #29 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #40 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
224 cycles
5 bytes | |
---|---|
LDX #232 @X = * - 1 ; ^ Hides INX PLA BNE @X |
Clobbers A, X, S, and Z&N |
6 bytes | |
LDX #232 @X = * - 1 ; ^ Hides INX NOP NOP BNE @X |
Clobbers X, and Z&N |
LDY #152 @Y = * - 1 ; ^ Hides TYA NOP DEY BMI @Y |
Clobbers A, Y, and Z&N |
LDY #228 @Y = * - 1 ; ^ Hides CPX zp NOP INY BNE @Y |
Clobbers Y, Z&N, C, and V |
PHA LDY #44 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDY #100 @Y = * - 1 ; ^ Hides !NOP zp NOP INY BPL @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
7 bytes | |
BIT $00 LDY #44 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
STA @zptemp LDY #44 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
8 bytes | |
JMP *+3 LDY #44 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
9 bytes | |
PHP LDX #18 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
PHP LDY #18 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
NOP PLA SEC LDA #43 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #42 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #41 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #42 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #41 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
225 cycles
6 bytes | |
---|---|
LDY #32 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #32 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDY #31 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #31 @X: NOP DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #44 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #43 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #43 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #41 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA SEC LDA #26 @A: BIT $00 SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
226 cycles
5 bytes | |
---|---|
LDY #45 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #45 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #43 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #43 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #44 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
CLC LDA #100 @A = * - 1 ; ^ Hides !NOP zp NOP ADC #1 BPL @A |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
9 bytes | |
PHP BIT $00 LDY #43 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP BIT $00 LDX #43 @X: DEX BNE @X PLP |
Clobbers X |
LDA $00 SEC LDA #44 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #24 @Y = * - 1 ; ^ Hides CLC NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHP SEC LDA #18 @A: PHP PLP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #18 @A: PHP PLP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #41 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP NOP PHP PHA SEC LDA #41 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
227 cycles
6 bytes | |
---|---|
PHA LDX #232 @X = * - 1 ; ^ Hides INX PLA BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
NOP LDX #32 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #32 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
SEC LDA #32 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
TYA PHA LDY #43 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDY #31 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #31 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #31 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #31 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #42 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
228 cycles
6 bytes | |
---|---|
NOP LDX #45 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #45 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #44 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #44 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #45 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #43 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #43 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP LDA $00 SEC LDA #43 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #43 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP NOP PHA TYA PHA LDY #41 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #41 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #41 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
229 cycles
6 bytes | |
---|---|
PHA LDX #45 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #45 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDY #19 @Y: PHP PLP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #19 @X: PHP PLP DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
NOP SEC LDA #32 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHA PHP LDY #43 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #43 @X: DEX BNE @X PLP |
Clobbers X, and S |
10 bytes | |
TYA PHA LDY #31 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #31 @X: NOP DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #31 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TYA PHA LDY #42 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP PHP SEC LDA #31 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #42 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
230 cycles
6 bytes | |
---|---|
PLA LDX #45 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #45 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #45 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #45 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #44 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #44 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #45 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #44 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #44 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #42 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #42 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
231 cycles
5 bytes | |
---|---|
LDY #46 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #46 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #232 @X = * - 1 ; ^ Hides INX NOP NOP BNE @X PLP |
Clobbers X |
PHP LDY #228 @Y = * - 1 ; ^ Hides CPX zp NOP INY BNE @Y PLP |
Clobbers Y |
PHA SEC LDA #45 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
SEC LDA #19 @A: PHP PLP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #43 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP TYA PHA LDY #31 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #43 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #43 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #42 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #31 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #42 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
232 cycles
6 bytes | |
---|---|
LDY #33 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #33 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #32 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #32 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PLA SEC LDA #45 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #44 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
10 bytes | |
NOP PHP SEC LDA #44 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #44 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #43 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
233 cycles
6 bytes | |
---|---|
NOP LDX #46 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #46 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #45 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #45 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #46 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #44 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #44 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
PHP CLC LDA #100 @A = * - 1 ; ^ Hides !NOP zp NOP ADC #1 BPL @A PLP |
Clobbers A; and requires support for unofficial opcodes |
PHA CLC LDA #100 @A = * - 1 ; ^ Hides !NOP zp NOP ADC #1 BPL @A PLA |
Clobbers Z&N, and C; and requires support for unofficial opcodes |
11 bytes | |
PHP LDA $00 SEC LDA #44 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA LDA $00 SEC LDA #44 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #24 @Y = * - 1 ; ^ Hides CLC NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
PHP PHA SEC LDA #18 @A: PHP PLP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
234 cycles
6 bytes | |
---|---|
PHA LDX #46 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #46 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
NOP LDX #33 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #33 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
SEC LDA #33 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
NOP PHP LDY #32 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #32 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #32 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #32 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHA TYA PHA LDY #43 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
12 bytes | |
PHP PHA SEC LDA #31 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
235 cycles
6 bytes | |
---|---|
LDY #26 @Y: PLA DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
LDX #26 @X: PLA DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
LDY #26 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #26 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #45 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #45 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #46 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #45 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #45 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #43 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA LDA $00 SEC LDA #43 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
236 cycles
5 bytes | |
---|---|
LDX #47 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #47 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHA PHP LDY #45 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #45 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA SEC LDA #46 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP LDY #19 @Y: PHP PLP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #19 @X: PHP PLP DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #33 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #32 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
NOP PHP SEC LDA #32 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #32 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #31 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #31 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
237 cycles
7 bytes | |
---|---|
PHA PHA LDY #46 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA LDX #46 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
NOP LDX #26 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #26 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #46 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #45 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #45 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #45 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #45 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #45 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #44 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
238 cycles
6 bytes | |
---|---|
NOP LDY #47 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #47 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #46 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #46 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #47 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #45 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #45 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP SEC LDA #19 @A: PHP PLP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #19 @A: PHP PLP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
NOP PHA TYA PHA LDY #31 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #43 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP PHP PHA SEC LDA #31 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
239 cycles
6 bytes | |
---|---|
LDY #34 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #34 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHP LDX #33 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #33 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
9 bytes | |
NOP PLA SEC LDA #46 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #45 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
11 bytes | |
PHA TYA PHA LDY #44 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #45 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #44 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
240 cycles
6 bytes | |
---|---|
PLA LDY #47 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
PLA LDX #47 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
NOP NOP LDX #47 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP LDY #47 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
NOP PHP LDX #46 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #46 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP SEC LDA #47 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #46 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #46 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #44 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
PHP PHA CLC LDA #100 @A = * - 1 ; ^ Hides !NOP zp NOP ADC #1 BPL @A PLA PLP |
Requires support for unofficial opcodes |
13 bytes | |
PHP PHA LDA $00 SEC LDA #44 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
241 cycles
5 bytes | |
---|---|
LDY #48 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #48 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
SEC LDA #34 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
PHA PHP LDX #46 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHP LDY #46 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
9 bytes | |
NOP PHP LDY #33 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #33 @X: NOP DEX BNE @X PLP |
Clobbers X |
10 bytes | |
PHP SEC LDA #33 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #33 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #32 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
242 cycles
6 bytes | |
---|---|
LDY #202 @Y = * - 1 ; ^ Hides DEX INY INY BNE @Y |
Clobbers X, Y, and Z&N |
LDY #74 @Y = * - 1 ; ^ Hides LSR A INY INY BPL @Y |
Clobbers A, Y, Z&N, and C |
LDX #74 @X = * - 1 ; ^ Hides LSR A INX INX BPL @X |
Clobbers A, X, Z&N, and C |
7 bytes | |
PHA LDX #34 @X: NOP DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #34 @Y: NOP DEY BNE @Y |
Clobbers Y, S, and Z&N |
8 bytes | |
NOP NOP NOP LDY #47 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP NOP LDX #47 @X: DEX BNE @X |
Clobbers X, and Z&N |
PLA SEC LDA #47 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #46 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHP LDX #26 @X: NOP NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #26 @Y: NOP NOP DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #46 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #46 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #45 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
243 cycles
6 bytes | |
---|---|
NOP LDX #48 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #48 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
7 bytes | |
PHP LDX #47 @X: DEX BNE @X PLP |
Clobbers X |
PHP LDY #47 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #48 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
TYA PHA LDY #33 @Y: NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHP SEC LDA #46 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #46 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
NOP PHP SEC LDA #33 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #33 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #32 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
13 bytes | |
NOP PHP PHA SEC LDA #32 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
244 cycles
6 bytes | |
---|---|
PHA LDX #48 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #48 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDY #27 @Y: NOP NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #27 @X: NOP NOP DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
PHA PHA PHP LDY #46 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHA PHP LDX #46 @X: DEX BNE @X PLP |
Clobbers X, and S |
NOP PLA SEC LDA #47 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #46 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP PHP LDY #26 @Y: NOP NOP DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #26 @X: NOP NOP DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TYA PHA LDY #45 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #46 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #45 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
245 cycles
6 bytes | |
---|---|
PLA LDX #48 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #48 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP NOP LDY #48 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP LDX #48 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
NOP PHP LDY #47 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #47 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #48 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #47 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #47 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA PHP PHA SEC LDA #45 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
PHP PHA SEC LDA #19 @A: PHP PLP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
246 cycles
5 bytes | |
---|---|
LDX #49 @X: DEX BNE @X |
Clobbers X, and Z&N |
LDY #49 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
PHP LDY #34 @Y: NOP DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #34 @X: NOP DEX BNE @X PLP |
Clobbers X |
PHA SEC LDA #48 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
SEC LDA #27 @A: NOP NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #46 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
TYA PHA LDY #26 @Y: NOP NOP DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHA PHP SEC LDA #46 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA PHA SEC LDA #46 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #45 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #46 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #45 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
247 cycles
7 bytes | |
---|---|
PHA PHA LDY #48 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA PHA LDX #48 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
8 bytes | |
NOP NOP NOP LDX #48 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP NOP LDY #48 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
PLA SEC LDA #48 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #47 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #47 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #47 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #47 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #47 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #46 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
248 cycles
6 bytes | |
---|---|
NOP LDY #49 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP LDX #49 @X: DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #48 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #48 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #49 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHP SEC LDA #34 @A: NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #34 @A: NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #33 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
249 cycles
6 bytes | |
---|---|
LDY #31 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
LDX #31 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
7 bytes | |
LDY #31 @Y: LDA $00 DEY BNE @Y |
Clobbers A, Y, and Z&N |
LDX #31 @X: LDA $00 DEX BNE @X |
Clobbers A, X, and Z&N |
LDY #31 @Y: BIT $00 DEY BNE @Y |
Clobbers Y, Z&N, and V |
LDX #31 @X: BIT $00 DEX BNE @X |
Clobbers X, Z&N, and V |
LDX #31 @X: STA @zptemp DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
LDY #31 @Y: STA @zptemp DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
LDX #31 @X: NOP $00 DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
LDY #31 @Y: NOP $00 DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
LDY #31 @Y: JMP *+3 DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #31 @X: JMP *+3 DEX BNE @X |
Clobbers X, and Z&N |
PHP LDX #74 @X = * - 1 ; ^ Hides LSR A INX INX BPL @X PLP |
Clobbers A, and X |
PHP LDY #74 @Y = * - 1 ; ^ Hides LSR A INY INY BPL @Y PLP |
Clobbers A, and Y |
PHP LDY #202 @Y = * - 1 ; ^ Hides DEX INY INY BNE @Y PLP |
Clobbers X, and Y |
9 bytes | |
PHA PHP LDX #34 @X: NOP DEX BNE @X PLP |
Clobbers X, and S |
PHA PHP LDY #34 @Y: NOP DEY BNE @Y PLP |
Clobbers Y, and S |
NOP PLA SEC LDA #48 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #47 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDX #47 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP NOP PHP LDY #47 @Y: DEY BNE @Y PLP |
Clobbers Y |
11 bytes | |
PHA TYA PHA LDY #46 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #47 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #46 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
250 cycles
6 bytes | |
---|---|
PLA LDY #49 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
PLA LDX #49 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
7 bytes | |
NOP NOP LDX #49 @X: DEX BNE @X |
Clobbers X, and Z&N |
NOP NOP LDY #49 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
NOP PHP LDY #48 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP PHP LDX #48 @X: DEX BNE @X PLP |
Clobbers X |
NOP SEC LDA #49 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #48 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #48 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHA TYA PHA LDY #33 @Y: NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHP PHA SEC LDA #46 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
13 bytes | |
NOP PHP PHA SEC LDA #33 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
251 cycles
5 bytes | |
---|---|
LDY #50 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #50 @X: DEX BNE @X |
Clobbers X, and Z&N |
8 bytes | |
PHA PHP LDY #48 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
PHA PHP LDX #48 @X: DEX BNE @X PLP |
Clobbers X, and S |
SEC LDA #31 @A: PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
PHP LDX #27 @X: NOP NOP DEX BNE @X PLP |
Clobbers X |
PHP LDY #27 @Y: NOP NOP DEY BNE @Y PLP |
Clobbers Y |
LDA $00 SEC LDA #49 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PLA TYA PHA LDY #47 @Y: DEY BNE @Y PLA TAY |
Clobbers A, S, and Z&N |
11 bytes | |
NOP NOP TYA PHA LDY #47 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
PHA PHP SEC LDA #34 @A: NOP SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #34 @A: NOP SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
12 bytes | |
NOP PHA TYA PHA LDY #46 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP NOP PHP SEC LDA #47 @A: SBC #1 BNE @A PLP |
Clobbers A |
13 bytes | |
NOP NOP PHP PHA SEC LDA #46 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
252 cycles
7 bytes | |
---|---|
PHA LDY #31 @Y: PHA DEY BNE @Y |
Clobbers Y, S, and Z&N |
PHA LDX #31 @X: PHA DEX BNE @X |
Clobbers X, S, and Z&N |
LDY #84 @Y = * - 1 ; ^ Hides !NOP zp,X DEY ;first round only INY INY BPL @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
LDX #84 @X = * - 1 ; ^ Hides !NOP zp,X DEX ;first round only INX INX BPL @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
NOP NOP NOP LDY #49 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
NOP NOP NOP LDX #49 @X: DEX BNE @X |
Clobbers X, and Z&N |
PLA SEC LDA #49 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
9 bytes | |
TYA PHA LDY #48 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP PHP LDX #48 @X: DEX BNE @X PLP |
Clobbers X |
NOP NOP PHP LDY #48 @Y: DEY BNE @Y PLP |
Clobbers Y |
10 bytes | |
NOP PHP SEC LDA #48 @A: SBC #1 BNE @A PLP |
Clobbers A |
NOP PHA SEC LDA #48 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
11 bytes | |
PHP PHA SEC LDA #47 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
253 cycles
6 bytes | |
---|---|
LDY #36 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #36 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
7 bytes | |
PHP LDY #49 @Y: DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #49 @X: DEX BNE @X PLP |
Clobbers X |
SEC LDA #50 @A: SBC #1 BNE @A |
Clobbers A, Z&N, and C |
10 bytes | |
PHA PHP SEC LDA #48 @A: SBC #1 BNE @A PLP |
Clobbers A, and S |
PHA PHA SEC LDA #48 @A: SBC #1 BNE @A PLA |
Clobbers S, Z&N, and C |
11 bytes | |
PHP SEC LDA #27 @A: NOP NOP SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #27 @A: NOP NOP SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
13 bytes | |
PHA TYA PHA LDY #26 @Y: NOP NOP DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHA PHA PHP PHA SEC LDA #46 @A: SBC #1 BNE @A PLA PLP |
Clobbers S |
14 bytes | |
NOP NOP NOP PHP PHA SEC LDA #46 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
254 cycles
6 bytes | |
---|---|
PHA LDX #50 @X: DEX BNE @X |
Clobbers X, S, and Z&N |
PHA LDY #50 @Y: DEY BNE @Y |
Clobbers Y, S, and Z&N |
7 bytes | |
LDA $00 LDX #50 @X: DEX BNE @X |
Clobbers A, X, and Z&N |
LDA $00 LDY #50 @Y: DEY BNE @Y |
Clobbers A, Y, and Z&N |
BIT $00 LDY #50 @Y: DEY BNE @Y |
Clobbers Y, Z&N, and V |
BIT $00 LDX #50 @X: DEX BNE @X |
Clobbers X, Z&N, and V |
STA @zptemp LDX #50 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires @zptemp |
STA @zptemp LDY #50 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires @zptemp |
NOP $00 LDY #50 @Y: DEY BNE @Y |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
NOP $00 LDX #50 @X: DEX BNE @X |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
JMP *+3 LDY #50 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
JMP *+3 LDX #50 @X: DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
PHA PHA PHP LDX #48 @X: DEX BNE @X PLP |
Clobbers X, and S |
PHA PHA PHP LDY #48 @Y: DEY BNE @Y PLP |
Clobbers Y, and S |
NOP PLA SEC LDA #49 @A: SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
NOP TYA PHA LDY #48 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
NOP NOP NOP PHP LDY #48 @Y: DEY BNE @Y PLP |
Clobbers Y |
NOP NOP NOP PHP LDX #48 @X: DEX BNE @X PLP |
Clobbers X |
11 bytes | |
PHA TYA PHA LDY #47 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
NOP NOP PHP SEC LDA #48 @A: SBC #1 BNE @A PLP |
Clobbers A |
12 bytes | |
NOP PHP PHA SEC LDA #47 @A: SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
255 cycles
6 bytes | |
---|---|
PLA LDX #50 @X: DEX BNE @X |
Clobbers A, X, S, and Z&N |
PLA LDY #50 @Y: DEY BNE @Y |
Clobbers A, Y, S, and Z&N |
7 bytes | |
NOP LDX #36 @X: NOP DEX BNE @X |
Clobbers X, and Z&N |
NOP LDY #36 @Y: NOP DEY BNE @Y |
Clobbers Y, and Z&N |
8 bytes | |
NOP PHP LDX #49 @X: DEX BNE @X PLP |
Clobbers X |
NOP PHP LDY #49 @Y: DEY BNE @Y PLP |
Clobbers Y |
SEC LDA #36 @A: NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
9 bytes | |
PHP SEC LDA #49 @A: SBC #1 BNE @A PLP |
Clobbers A |
PHA SEC LDA #49 @A: SBC #1 BNE @A PLA |
Clobbers Z&N, and C |
12 bytes | |
PHP PHA SEC LDA #34 @A: NOP SBC #1 BNE @A PLA PLP |
Clobbers nothing, requires nothing |
256 cycles
5 bytes | |
---|---|
LDY #51 @Y: DEY BNE @Y |
Clobbers Y, and Z&N |
LDX #51 @X: DEX BNE @X |
Clobbers X, and Z&N |
9 bytes | |
PHP LDY #31 @Y: BIT $00 DEY BNE @Y PLP |
Clobbers Y |
PHP LDX #31 @X: BIT $00 DEX BNE @X PLP |
Clobbers X |
SEC LDA #23 @A: PHA PHA SBC #1 BNE @A |
Clobbers A, S, Z&N, and C |
10 bytes | |
SEC LDA #23 @A: NOP NOP NOP SBC #1 BNE @A |
Clobbers A, Z&N, and C |
11 bytes | |
TYA PHA NOP NOP LDY #48 @Y: DEY BNE @Y PLA TAY |
Clobbers A, and Z&N |
12 bytes | |
PHA NOP TYA PHA LDY #47 @Y: DEY BNE @Y PLA TAY PLA |
Clobbers Z&N |
PHP NOP TYA PHA LDY #47 @Y: DEY BNE @Y PLA TAY PLP |
Clobbers A |
13 bytes | |
PHP PHA TYA PHA LDY #46 @Y: DEY BNE @Y PLA TAY PLA PLP |
Clobbers nothing, requires nothing |
More
Bisqwit's 6502 delay_n macro set for ca65: http://bisqwit.iki.fi/src/6502-inline_delay.7z