Fixed cycle delay: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(Add opcodes)
(A few more missing instructions)
Line 23: Line 23:
!colspan="2"|1 bytes
!colspan="2"|1 bytes
|-
|-
|<pre>EA      NOP</pre> || No requirements
|<pre>EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 32: Line 32:
!colspan="2"|1 bytes
!colspan="2"|1 bytes
|-
|-
|<pre>48      PHA</pre> || Clobbers S; and writes in stack
|<pre>48      PHA</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|2 bytes
!colspan="2"|2 bytes
|-
|-
|<pre>A5 00    LDA $00</pre> || Clobbers A, and Z&amp;N
|<pre>A5 00    LDA $00</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00</pre> || Clobbers Z&amp;N, and V
|<pre>A4 00    LDY $00</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>85 xx   STA @zptemp</pre> || Requires @zptemp
|<pre>A6 00   LDX $00</pre>||Clobbers X, and Z&N
|-
|-
|<pre>04 00    NOP $00</pre> || Requires support for unofficial opcodes
|<pre>24 00    BIT $00</pre>||Clobbers Z&N, and V
|-
|<pre>85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|<pre>04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|3 bytes
!colspan="2"|3 bytes
|-
|-
|<pre>4C xx xx JMP *+3</pre> || Not relocatable code
|<pre>4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 55: Line 59:
!colspan="2"|1 bytes
!colspan="2"|1 bytes
|-
|-
|<pre>68      PLA</pre> || Clobbers A, S, and Z&amp;N
|<pre>68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|2 bytes
!colspan="2"|2 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 70: Line 74:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA</pre> || Clobbers S; and writes in stack
48      PHA</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|3 bytes
!colspan="2"|3 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00    LDA $00</pre> || Clobbers A, and Z&amp;N
A5 00    LDA $00</pre>||Clobbers A, and Z&N
|-
|<pre>EA      NOP
A6 00    LDX $00</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A4 00    LDY $00</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>B8      CLV
|<pre>B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 102: Line 112:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA</pre> || Clobbers S; and writes in stack
48      PHA</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|3 bytes
!colspan="2"|3 bytes
Line 111: Line 121:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 121: Line 131:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|3 bytes
!colspan="2"|3 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
Line 132: Line 142:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A5 00    LDA $00</pre> || Clobbers A, and Z&amp;N
A5 00    LDA $00</pre>||Clobbers A, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A6 00    LDX $00</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A4 00    LDY $00</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 154: Line 172:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 164: Line 182:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|3 bytes
!colspan="2"|3 bytes
Line 170: Line 188:
|<pre>BA      TSX
|<pre>BA      TSX
68      PLA
68      PLA
9A      TXS</pre> || Clobbers A, X, and Z&amp;N
9A      TXS</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
48      PHA</pre> || Clobbers S; and writes in stack
48      PHA</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
Line 181: Line 199:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 192: Line 210:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
Line 198: Line 216:
|<pre>EA      NOP
|<pre>EA      NOP
A5 00    LDA $00
A5 00    LDA $00
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 205: Line 223:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A5 00    LDA $00</pre> || Clobbers A, and Z&amp;N
A5 00    LDA $00</pre>||Clobbers A, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A6 00    LDX $00</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A4 00    LDY $00</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 232: Line 260:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 243: Line 271:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
Line 253: Line 281:
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>26 00    ROL $00
|<pre>26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N
66 00    ROR $00</pre>||Clobbers Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 264: Line 292:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 275: Line 303:
|<pre>48      PHA
|<pre>48      PHA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
Line 282: Line 310:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 02    LDX #2
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 02    LDY #2
|<pre>A0 02    LDY #2
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 02    LDX #2
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 306: Line 334:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A5 00    LDA $00</pre> || Clobbers A, and Z&amp;N
A5 00    LDA $00</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 312: Line 340:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 318: Line 346:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 324: Line 352:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 330: Line 358:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 338: Line 366:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 347: Line 375:
!colspan="2"|3 bytes
!colspan="2"|3 bytes
|-
|-
|<pre>20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
|<pre>20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>36 00    ROL $00,X
|<pre>36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 368: Line 396:
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 377: Line 405:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 389: Line 417:
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 397: Line 425:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00    LDA $00
A5 00    LDA $00
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 408: Line 436:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers A, and Z&amp;N
66 00    ROR $00</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A6 00   LDX $00
A2 02   LDX #2
26 00    ROL $00
@X:
66 00   ROR $00</pre>||Clobbers X, and Z&N
CA      DEX
D0 xx   BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
|<pre>EA      NOP
|<pre>A4 00   LDY $00
A0 02   LDY #2
26 00    ROL $00
@Y:
66 00   ROR $00</pre>||Clobbers Y, and Z&N
88      DEY
D0 xx   BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N, and V
66 00    ROR $00</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N; and requires @zptemp
66 00    ROR $00</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
66 00    ROR $00</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 438: Line 462:
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N; and not relocatable code
66 00    ROR $00</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 445: Line 469:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 452: Line 476:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 459: Line 483:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 466: Line 490:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 475: Line 499:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 484: Line 508:
!colspan="2"|3 bytes
!colspan="2"|3 bytes
|-
|-
|<pre>20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
|<pre>20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
Line 491: Line 515:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 502: Line 526:
|<pre>EA      NOP
|<pre>EA      NOP
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 512: Line 536:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 521: Line 545:
!colspan="2"|3 bytes
!colspan="2"|3 bytes
|-
|-
|<pre>20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
|<pre>20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
20 xx xx JSR @rts12</pre> || Clobbers A, and Z&amp;N; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers A, and Z&N; requires @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 542: Line 566:
68      PLA
68      PLA
9A      TXS
9A      TXS
68      PLA</pre> || Clobbers X, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers X, and Z&N; and writes in stack
|-
|<pre>A4 00    LDY $00
20 xx xx JSR @rts12</pre>||Clobbers Y, and Z&N; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 548: Line 575:
68      PLA
68      PLA
9A      TXS
9A      TXS
28      PLP</pre> || Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts12</pre> || Clobbers Z&amp;N, and V; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers Z&N, and V; requires @rts12; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts12</pre> || Requires @zptemp, and @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 560: Line 587:
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts12</pre> || Requires @rts12, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 577: Line 604:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>A2 02   LDX #2
|<pre>A6 00   LDX $00
@X:
36 00    ROL $00,X
EA      NOP
76 00   ROR $00,X</pre>||Clobbers X, and Z&N
CA      DEX
D0 xx   BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
|<pre>A0 02   LDY #2
|<pre>A4 00   LDY $00
@Y:
36 00    ROL $00,X
EA      NOP
76 00   ROR $00,X</pre>||Clobbers Y, and Z&N
88      DEY
D0 xx   BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 611: Line 634:
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
90 00    BCC *+2
90 00    BCC *+2
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N, and C
66 00    ROR $00</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 626: Line 649:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 634: Line 657:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 642: Line 665:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 650: Line 673:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 660: Line 683:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 670: Line 693:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 683: Line 706:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A2 03    LDX #3
|<pre>A2 03    LDX #3
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 700: Line 723:
EA      NOP
EA      NOP
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 711: Line 734:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 721: Line 744:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
20 xx xx JSR @rts14</pre> || Clobbers A, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, and Z&N; requires @rts14; and writes in stack
|-
|<pre>A4 00    LDY $00
20 xx xx JSR @rts14</pre>||Clobbers Y, and Z&N; requires @rts14; and writes in stack
|-
|<pre>A6 00    LDX $00
20 xx xx JSR @rts14</pre>||Clobbers X, and Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts14</pre> || Clobbers Z&amp;N, and V; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts14</pre> || Requires @zptemp, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 741: Line 770:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts14</pre> || Requires @rts14, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 751: Line 780:
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 757: Line 786:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 764: Line 793:
A5 00    LDA $00
A5 00    LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 02   LDX #2
A6 00   LDX $00
@X:
36 00    ROL $00,X
EA      NOP
76 00   ROR $00,X</pre>||Clobbers X, and Z&N
CA      DEX
D0 xx   BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 02   LDY #2
A4 00   LDY $00
@Y:
36 00    ROL $00,X
EA      NOP
76 00   ROR $00,X</pre>||Clobbers Y, and Z&N
88      DEY
D0 xx   BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
90 00    BCC *+2
90 00    BCC *+2
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
24 00    BIT $00
24 00    BIT $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
85 xx    STA @zptemp
85 xx    STA @zptemp
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00    NOP $00
04 00    NOP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 805: Line 830:
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 816: Line 841:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 825: Line 850:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 834: Line 859:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 843: Line 868:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 854: Line 879:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 864: Line 889:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
20 xx xx JSR @rts14</pre> || Clobbers A, S, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
20 xx xx JSR @rts15</pre> || Clobbers A, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack
|-
|<pre>A6 00    LDX $00
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack
|-
|<pre>A4 00    LDY $00
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts15</pre> || Clobbers Z&amp;N, and V; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts15</pre> || Requires @zptemp, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 892: Line 923:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 904: Line 935:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 910: Line 941:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 916: Line 947:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 924: Line 955:
EA      NOP
EA      NOP
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 936: Line 967:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 946: Line 977:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
20 xx xx JSR @rts15</pre> || Clobbers A, S, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 952: Line 983:
|<pre>08      PHP
|<pre>08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 962: Line 993:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 973: Line 1,004:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 979: Line 1,010:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 02   LDY #2
|<pre>A4 00    LDY $00
A0 03   LDY #3
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 02   LDX #2
|<pre>A6 00    LDX $00
A2 03   LDX #3
@X:
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,003: Line 1,032:
A5 00    LDA $00
A5 00    LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,009: Line 1,038:
90 00    BCC *+2
90 00    BCC *+2
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,015: Line 1,044:
24 00    BIT $00
24 00    BIT $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,021: Line 1,050:
85 xx    STA @zptemp
85 xx    STA @zptemp
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,027: Line 1,056:
04 00    NOP $00
04 00    NOP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 1,035: Line 1,064:
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,047: Line 1,076:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,057: Line 1,086:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,067: Line 1,096:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,077: Line 1,106:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 1,089: Line 1,118:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 1,100: Line 1,129:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 1,106: Line 1,135:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 1,116: Line 1,145:
|<pre>EA      NOP
|<pre>EA      NOP
A5 00    LDA $00
A5 00    LDA $00
20 xx xx JSR @rts15</pre> || Clobbers A, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack
|-
|<pre>EA      NOP
A6 00    LDX $00
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack
|-
|<pre>EA      NOP
A4 00    LDY $00
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>BA      TSX
|<pre>BA      TSX
Line 1,123: Line 1,160:
68      PLA
68      PLA
68      PLA
68      PLA
9A      TXS</pre> || Clobbers A, X, and Z&amp;N
9A      TXS</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
90 00    BCC *+2
90 00    BCC *+2
20 xx xx JSR @rts15</pre> || Clobbers C; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers C; requires @rts15; and writes in stack
|-
|-
|<pre>B8      CLV
|<pre>B8      CLV
50 00    BVC *+2
50 00    BVC *+2
20 xx xx JSR @rts15</pre> || Clobbers V; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers V; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts15</pre> || Requires @zptemp, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,147: Line 1,184:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00    NOP $00
04 00    NOP $00
20 xx xx JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,161: Line 1,198:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,168: Line 1,205:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,175: Line 1,212:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,182: Line 1,219:
66 00    ROR $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N
66 00    ROR $00</pre>||Clobbers Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,195: Line 1,232:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 1,207: Line 1,244:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 1,229: Line 1,266:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,238: Line 1,275:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 1,247: Line 1,284:
A5 00    LDA $00
A5 00    LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,254: Line 1,291:
90 00    BCC *+2
90 00    BCC *+2
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,261: Line 1,298:
24 00    BIT $00
24 00    BIT $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,268: Line 1,305:
85 xx    STA @zptemp
85 xx    STA @zptemp
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,275: Line 1,312:
04 00    NOP $00
04 00    NOP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,284: Line 1,321:
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 1,297: Line 1,334:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,308: Line 1,345:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,319: Line 1,356:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,330: Line 1,367:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 1,343: Line 1,380:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 1,354: Line 1,391:
|<pre>08      PHP
|<pre>08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts14</pre> || Clobbers A, S, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 1,366: Line 1,403:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 03    LDX #3
|<pre>A2 03    LDX #3
Line 1,372: Line 1,409:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,384: Line 1,421:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,396: Line 1,433:
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,404: Line 1,441:
9A      TXS
9A      TXS
68      PLA
68      PLA
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,410: Line 1,447:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,416: Line 1,453:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,424: Line 1,461:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>26 00    ROL $00
|<pre>26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 1,443: Line 1,480:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 1,454: Line 1,491:
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts15</pre> || Clobbers A, S, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,462: Line 1,505:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,485: Line 1,522:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,495: Line 1,532:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 1,501: Line 1,538:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 1,508: Line 1,545:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,516: Line 1,553:
66 00    ROR $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers A, and Z&amp;N
66 00    ROR $00</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,524: Line 1,561:
90 00    BCC *+2
90 00    BCC *+2
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 1,530: Line 1,567:
66 00    ROR $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N, and V
66 00    ROR $00</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 1,536: Line 1,573:
66 00    ROR $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N; and requires @zptemp
66 00    ROR $00</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 1,542: Line 1,579:
66 00    ROR $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
66 00    ROR $00</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 1,550: Line 1,587:
66 00    ROR $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N; and not relocatable code
66 00    ROR $00</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 1,564: Line 1,601:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,576: Line 1,613:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,588: Line 1,625:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,600: Line 1,637:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 1,614: Line 1,651:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 1,624: Line 1,661:
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 1,636: Line 1,673:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|<pre>48      PHA
A2 04    LDX #4
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,642: Line 1,685:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 04    LDX #4
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>A4 00    LDY $00
A0 03   LDY #3
A0 04   LDY #4
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
A2 03   LDX #3
A2 04   LDX #4
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,682: Line 1,717:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,691: Line 1,726:
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>36 00    ROL $00,X
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 1,711: Line 1,746:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 1,723: Line 1,758:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|<pre>A2 03    LDX #3
@X:
48      PHA
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
Line 1,729: Line 1,770:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 03   LDX #3
|<pre>68      PLA
@X:
A0 04   LDY #4
48      PHA
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 1,741: Line 1,782:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
68      PLA
68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts14</pre> || Clobbers A, S, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,759: Line 1,794:
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,766: Line 1,801:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,773: Line 1,808:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,779: Line 1,814:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,785: Line 1,820:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,793: Line 1,828:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,804: Line 1,839:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,811: Line 1,846:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,819: Line 1,854:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,827: Line 1,862:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 1,833: Line 1,868:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 1,839: Line 1,874:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 1,845: Line 1,880:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 1,853: Line 1,888:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 1,860: Line 1,895:
66 00    ROR $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre> || Clobbers Z&amp;N, and C
66 00    ROR $00</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 1,875: Line 1,910:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,888: Line 1,923:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,901: Line 1,936:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,914: Line 1,949:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 1,929: Line 1,964:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 1,941: Line 1,976:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 05    LDX #5
|<pre>A2 05    LDX #5
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
68      PLA
68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts15</pre> || Clobbers A, S, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts14</pre> || Clobbers A, S, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,967: Line 2,002:
|<pre>EA      NOP
|<pre>EA      NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,973: Line 2,008:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>36 00    ROL $00,X
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
20 xx xx JSR @rts14</pre> || Clobbers Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,985: Line 2,020:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,991: Line 2,026:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,000: Line 2,035:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 2,008: Line 2,043:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 2,024: Line 2,059:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 2,034: Line 2,069:
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts15</pre> || Requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts15</pre> || Clobbers A, S, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,045: Line 2,080:
|<pre>36 00    ROL $00,X
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
20 xx xx JSR @rts15</pre> || Clobbers Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,055: Line 2,090:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,063: Line 2,098:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,070: Line 2,105:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,077: Line 2,112:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A2 02    LDX #2
@X:
68      PLA
68      PLA
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 02    LDY #2
|<pre>A0 02    LDY #2
Line 2,084: Line 2,126:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>A2 02    LDX #2
@X:
68      PLA
68      PLA
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,097: Line 2,132:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,105: Line 2,140:
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers A, and Z&amp;N; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers A, and Z&N; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 04    LDY #4
A2 04    LDX #4
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 04    LDX #4
A0 04    LDY #4
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,134: Line 2,169:
68      PLA
68      PLA
9A      TXS
9A      TXS
28      PLP</pre> || Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers Z&amp;N, and V; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers Z&N, and V; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,145: Line 2,180:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @zptemp, and @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,158: Line 2,193:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 2,166: Line 2,201:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 2,182: Line 2,217:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,190: Line 2,225:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 2,198: Line 2,233:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 2,204: Line 2,239:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 2,210: Line 2,245:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 2,216: Line 2,251:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 2,224: Line 2,259:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 2,231: Line 2,266:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 2,247: Line 2,282:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,261: Line 2,296:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,275: Line 2,310:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,289: Line 2,324:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 2,305: Line 2,340:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 2,318: Line 2,353:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,324: Line 2,359:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 04    LDX #4
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,336: Line 2,378:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 04    LDX #4
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 2,349: Line 2,384:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,355: Line 2,390:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,363: Line 2,398:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,374: Line 2,409:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 2,383: Line 2,418:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 2,400: Line 2,435:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 2,413: Line 2,448:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
Line 2,419: Line 2,454:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,430: Line 2,465:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,440: Line 2,475:
68      PLA
68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts14</pre> || Clobbers A, S, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,450: Line 2,485:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,458: Line 2,493:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Clobbers A, and Z&amp;N; requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, and Z&N; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Clobbers Z&amp;N, and V; requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Requires @zptemp, @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @zptemp, @rts12, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,484: Line 2,519:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,491: Line 2,526:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 2,503: Line 2,538:
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
28      PLP</pre> || Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,511: Line 2,546:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,519: Line 2,554:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,528: Line 2,563:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 2,537: Line 2,572:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,546: Line 2,581:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 2,555: Line 2,590:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 2,562: Line 2,597:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,569: Line 2,604:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,576: Line 2,611:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,583: Line 2,618:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 2,592: Line 2,627:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 2,609: Line 2,644:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,624: Line 2,659:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,639: Line 2,674:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,654: Line 2,689:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 2,671: Line 2,706:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 2,681: Line 2,716:
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,687: Line 2,722:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,693: Line 2,728:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,702: Line 2,737:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,709: Line 2,744:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,723: Line 2,766:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,738: Line 2,773:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,752: Line 2,787:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 2,764: Line 2,799:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 2,774: Line 2,809:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 2,792: Line 2,827:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 2,800: Line 2,835:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,815: Line 2,850:
|<pre>EA      NOP
|<pre>EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,821: Line 2,856:
68      PLA
68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts15</pre> || Clobbers A, S, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,832: Line 2,867:
28      PLP
28      PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,839: Line 2,874:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 2,846: Line 2,881:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers A, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, and Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers Z&amp;N, and V; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @zptemp, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,867: Line 2,902:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,875: Line 2,910:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,883: Line 2,918:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>08      PHP
08      PHP
A6 00    LDX $00
A0 03   LDY #3
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 04   LDY #4
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 03    LDX #3
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
Line 2,913: Line 2,946:
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
28      PLP</pre> || Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,923: Line 2,956:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 2,932: Line 2,965:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 2,941: Line 2,974:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 2,951: Line 2,984:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,959: Line 2,992:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,967: Line 3,000:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,975: Line 3,008:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,983: Line 3,016:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 2,993: Line 3,026:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 3,011: Line 3,044:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,027: Line 3,060:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,043: Line 3,076:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,059: Line 3,092:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 3,077: Line 3,110:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 3,088: Line 3,121:
|<pre>EA      NOP
|<pre>EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,095: Line 3,128:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,102: Line 3,135:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,109: Line 3,142:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,116: Line 3,149:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers A, S, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
EA      NOP
A2 04    LDX #4
@X:
EA      NOP
EA      NOP
A2 05    LDX #5
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A4 00    LDY $00
EA      NOP
A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 3,152: Line 3,183:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 04   LDX #4
A0 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
A2 03   LDX #3
@X:
@X:
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
68       PLA
28       PLP</pre>||Clobbers X; and writes in stack
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,171: Line 3,210:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 03    LDX #3
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,187: Line 3,218:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,193: Line 3,224:
48      PHA
48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 3,206: Line 3,237:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 3,215: Line 3,246:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 3,234: Line 3,265:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 3,247: Line 3,278:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,253: Line 3,284:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 05    LDY #5
A2 05    LDX #5
@Y:
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 05    LDX #5
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 3,275: Line 3,306:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 3,285: Line 3,316:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers A, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers Z&amp;N, and V; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @zptemp, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 3,320: Line 3,351:
28      PLP
28      PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,328: Line 3,359:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
Line 3,334: Line 3,365:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,344: Line 3,375:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 3,355: Line 3,386:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,365: Line 3,396:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 3,376: Line 3,407:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,385: Line 3,416:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,394: Line 3,425:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,403: Line 3,434:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,412: Line 3,443:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 3,423: Line 3,454:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 3,442: Line 3,473:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,459: Line 3,490:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,476: Line 3,507:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,493: Line 3,524:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 3,512: Line 3,543:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 3,520: Line 3,551:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,531: Line 3,556:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>48       PHA
|-
|<pre>A5 00    LDA $00
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>A5 00    LDA $00
A0 06    LDY #6
A0 06    LDY #6
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|7 bytes
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>24 00    BIT $00
A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>A4 00   LDY $00
A0 06    LDY #6
A0 06    LDY #6
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>A6 00   LDX $00
A2 06    LDX #6
A2 06    LDX #6
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers A, S, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|<pre>04 00    NOP $00
A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 3,592: Line 3,587:
EA      NOP
EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>A2 03    LDX #3
@X:
EA      NOP
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>A0 03    LDY #3
@Y:
EA      NOP
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 3,621: Line 3,600:
EA      NOP
EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,627: Line 3,606:
28      PLP
28      PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,637: Line 3,616:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 04    LDX #4
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,646: Line 3,634:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 04    LDX #4
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 3,663: Line 3,642:
28      PLP
28      PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 04   LDX #4
A0 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 03   LDX #3
@X:
@X:
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
68       PLA
28       PLP</pre>||Clobbers X; and writes in stack
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,682: Line 3,670:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 03    LDX #3
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 3,699: Line 3,678:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,710: Line 3,689:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 3,724: Line 3,703:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 3,733: Line 3,712:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 3,753: Line 3,732:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 3,766: Line 3,745:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 3,772: Line 3,751:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,781: Line 3,767:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 3,794: Line 3,773:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 05    LDX #5
A0 05    LDY #5
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 05    LDY #5
A2 05    LDX #5
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,813: Line 3,792:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 3,833: Line 3,812:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
90 00    BCC *+2
90 00    BCC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers C; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers C; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,846: Line 3,825:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>B8      CLV
|<pre>B8      CLV
50 00    BVC *+2
50 00    BVC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers V; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers V; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @zptemp, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00    NOP $00
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 3,874: Line 3,853:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 3,884: Line 3,863:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 3,894: Line 3,873:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,904: Line 3,883:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 3,912: Line 3,891:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 3,920: Line 3,899:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 3,928: Line 3,907:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 3,938: Line 3,917:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 3,958: Line 3,937:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,976: Line 3,955:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,994: Line 3,973:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,012: Line 3,991:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 4,032: Line 4,011:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 4,044: Line 4,023:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 07    LDX #7
|<pre>A2 07    LDX #7
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 4,059: Line 4,038:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,067: Line 4,046:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,084: Line 4,063:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers A, S, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 4,095: Line 4,074:
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,101: Line 4,080:
EA      NOP
EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 4,108: Line 4,087:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 4,118: Line 4,097:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,124: Line 4,103:
48      PHA
48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 4,133: Line 4,112:
EA      NOP
EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 4,145: Line 4,124:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,155: Line 4,134:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 4,166: Line 4,145:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>36 00    ROL $00,X
|<pre>36 00    ROL $00,X
Line 4,173: Line 4,152:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 4,194: Line 4,173:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 4,202: Line 4,181:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 04    LDX #4
@X:
68      PLA
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
Line 4,207: Line 4,192:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
@X:
@X:
68       PLA
EA       NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
Line 4,222: Line 4,208:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 04    LDX #4
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 4,236: Line 4,215:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 4,243: Line 4,222:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 4,254: Line 4,233:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,263: Line 4,242:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,272: Line 4,251:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,280: Line 4,259:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,286: Line 4,265:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 4,297: Line 4,276:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,306: Line 4,285:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,313: Line 4,292:
28      PLP
28      PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 4,327: Line 4,306:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,338: Line 4,317:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 4,348: Line 4,327:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 4,356: Line 4,335:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 4,364: Line 4,343:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 4,372: Line 4,351:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 4,382: Line 4,361:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 4,391: Line 4,370:
66 00    ROR $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 4,412: Line 4,391:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,431: Line 4,410:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,450: Line 4,429:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,469: Line 4,448:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 4,490: Line 4,469:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 4,503: Line 4,482:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,509: Line 4,488:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,518: Line 4,504:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 4,531: Line 4,510:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 4,538: Line 4,517:
68      PLA
68      PLA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers A, S, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 4,544: Line 4,523:
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,550: Line 4,529:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,556: Line 4,535:
48      PHA
48      PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,562: Line 4,541:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 4,569: Line 4,548:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,576: Line 4,555:
EA      NOP
EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,585: Line 4,564:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,594: Line 4,573:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,600: Line 4,579:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,611: Line 4,590:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 4,625: Line 4,604:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 4,636: Line 4,615:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 4,646: Line 4,625:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 4,668: Line 4,647:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 4,681: Line 4,660:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,687: Line 4,666:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A4 00    LDY $00
A2 07    LDX #7
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>A5 00    LDA $00
A0 07   LDY #7
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>24 00    BIT $00
A2 07    LDX #7
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>24 00    BIT $00
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A0 07    LDY #7
A0 07    LDY #7
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>A6 00   LDX $00
A2 07    LDX #7
A2 07    LDX #7
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>04 00    NOP $00
A2 07    LDX #7
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
A2 04    LDX #4
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>EA      NOP
A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 4,763: Line 4,688:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 4,771: Line 4,696:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,780: Line 4,705:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,789: Line 4,714:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,795: Line 4,720:
68      PLA
68      PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers A, S, and Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 4,807: Line 4,732:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
EA      NOP
A6 00    LDX $00
A2 04    LDX #4
@X:
EA      NOP
EA      NOP
08      PHP
A2 05    LDX #5
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
A4 00    LDY $00
A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
EA      NOP
08      PHP
A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,834: Line 4,757:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 04    LDX #4
A0 04    LDY #4
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,862: Line 4,785:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @zptemp, and @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 4,878: Line 4,801:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 4,898: Line 4,821:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 4,908: Line 4,831:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 4,916: Line 4,839:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 4,924: Line 4,847:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 4,932: Line 4,855:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 4,942: Line 4,865:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 4,951: Line 4,874:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 4,973: Line 4,896:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,993: Line 4,916:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,013: Line 4,936:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,033: Line 4,956:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 5,055: Line 4,978:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 5,068: Line 4,991:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 5,074: Line 4,997:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,083: Line 5,013:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
08       PHP
A0 07   LDY #7
A0 06   LDY #6
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,100: Line 5,031:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,115: Line 5,038:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 5,125: Line 5,048:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,133: Line 5,056:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,143: Line 5,066:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 5,151: Line 5,074:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>36 00    ROL $00,X
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers Z&amp;N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 5,167: Line 5,090:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,174: Line 5,097:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 5,182: Line 5,105:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,189: Line 5,112:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 5,202: Line 5,125:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 5,213: Line 5,136:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 5,236: Line 5,159:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 5,244: Line 5,167:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 08    LDX #8
|<pre>A2 08    LDX #8
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 5,263: Line 5,186:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,271: Line 5,194:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,278: Line 5,201:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 06    LDX #6
A2 06    LDX #6
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 06    LDY #6
A0 06    LDY #6
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 5,303: Line 5,226:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre> || Requires @rts12, @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,313: Line 5,236:
68      PLA
68      PLA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers A, S, and Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 5,322: Line 5,245:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 5,332: Line 5,255:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,339: Line 5,262:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 5,352: Line 5,275:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,360: Line 5,283:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,366: Line 5,289:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,376: Line 5,299:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,386: Line 5,309:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 5,395: Line 5,318:
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
28      PLP</pre> || Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 04    LDX #4
A0 04    LDY #4
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,417: Line 5,340:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,430: Line 5,353:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,442: Line 5,365:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 5,458: Line 5,381:
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 5,469: Line 5,392:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 5,478: Line 5,401:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,487: Line 5,410:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,496: Line 5,419:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,505: Line 5,428:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 5,516: Line 5,439:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 5,539: Line 5,462:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,560: Line 5,483:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,581: Line 5,504:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,602: Line 5,525:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 5,625: Line 5,548:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 5,639: Line 5,562:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,646: Line 5,569:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,653: Line 5,576:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,660: Line 5,583:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 5,670: Line 5,593:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,678: Line 5,601:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 5,685: Line 5,608:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 5,691: Line 5,614:
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>98      TYA
|<pre>98      TYA
Line 5,700: Line 5,623:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,709: Line 5,641:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,726: Line 5,649:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 5,737: Line 5,660:
76 00    ROR $00,X
76 00    ROR $00,X
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers Z&amp;N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,746: Line 5,669:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,755: Line 5,678:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,762: Line 5,685:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 5,774: Line 5,697:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,786: Line 5,709:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 5,798: Line 5,721:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 5,822: Line 5,745:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 5,835: Line 5,758:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
Line 5,841: Line 5,764:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,850: Line 5,773:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,857: Line 5,780:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 5,863: Line 5,786:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 5,869: Line 5,792:
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 5,878: Line 5,801:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,887: Line 5,810:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,896: Line 5,819:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 5,909: Line 5,832:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,917: Line 5,840:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,926: Line 5,849:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,935: Line 5,858:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,943: Line 5,866:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 5,954: Line 5,877:
28      PLP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 5,966: Line 5,889:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 5,980: Line 5,903:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,992: Line 5,915:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 6,003: Line 5,926:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 6,015: Line 5,938:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,025: Line 5,948:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,035: Line 5,958:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,045: Line 5,968:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,055: Line 5,978:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 6,067: Line 5,990:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 6,091: Line 6,014:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,113: Line 6,036:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,135: Line 6,058:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,157: Line 6,080:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 6,181: Line 6,104:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 6,189: Line 6,112:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 08    LDX #8
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,200: Line 6,117:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>48       PHA
|-
|<pre>A5 00    LDA $00
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>A5 00    LDA $00
A2 08    LDX #8
A2 08    LDX #8
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|7 bytes
A0 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>24 00    BIT $00
A2 08    LDX #8
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A0 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A2 08    LDX #8
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>A4 00    LDY $00
A0 08    LDY #8
A0 08    LDY #8
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>04 00    NOP $00
|<pre>A6 00    LDX $00
A2 08    LDX #8
A2 08    LDX #8
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A2 08    LDX #8
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|<pre>4C xx xx JMP *+3
A0 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 6,275: Line 6,148:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,284: Line 6,157:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
68      PLA
EA      NOP
38      SEC
EA      NOP
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 07    LDX #7
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 07    LDA #7
A9 07    LDA #7
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 6,323: Line 6,178:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,333: Line 6,188:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,342: Line 6,197:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 6,360: Line 6,215:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,370: Line 6,225:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 6,382: Line 6,237:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 6,395: Line 6,250:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 6,406: Line 6,261:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 6,431: Line 6,286:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 6,444: Line 6,299:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 6,450: Line 6,305:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 6,459: Line 6,314:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,466: Line 6,321:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,476: Line 6,339:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 6,491: Line 6,346:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 6,497: Line 6,352:
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,505: Line 6,360:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,513: Line 6,368:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 6,520: Line 6,375:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 6,528: Line 6,383:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers Z&amp;N, and V; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @zptemp, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 6,556: Line 6,411:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 6,571: Line 6,426:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 6,584: Line 6,439:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,595: Line 6,450:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,606: Line 6,461:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,617: Line 6,472:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,628: Line 6,483:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 6,641: Line 6,496:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 6,666: Line 6,521:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,689: Line 6,544:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,712: Line 6,567:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,735: Line 6,590:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 6,760: Line 6,615:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 6,772: Line 6,627:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 6,787: Line 6,642:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,795: Line 6,650:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,802: Line 6,657:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 07    LDX #7
A2 07    LDX #7
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
24 00    BIT $00
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 6,827: Line 6,682:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 6,834: Line 6,689:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 6,844: Line 6,699:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 6,854: Line 6,709:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,864: Line 6,719:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,874: Line 6,729:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,880: Line 6,735:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 6,894: Line 6,749:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,901: Line 6,756:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,914: Line 6,769:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 6,928: Line 6,783:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 6,939: Line 6,794:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 6,965: Line 6,820:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 6,979: Line 6,834:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,986: Line 6,841:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,993: Line 6,848:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,000: Line 6,855:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 7,010: Line 6,865:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,018: Line 6,873:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 7,025: Line 6,880:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,036: Line 6,891:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,045: Line 6,900:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,054: Line 6,909:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,062: Line 6,917:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 7,069: Line 6,924:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,078: Line 6,933:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,087: Line 6,942:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 7,099: Line 6,954:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 7,114: Line 6,969:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 7,126: Line 6,981:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,138: Line 6,993:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 7,148: Line 7,003:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 7,158: Line 7,013:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 7,168: Line 7,023:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 7,180: Line 7,035:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 7,206: Line 7,061:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,230: Line 7,085:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,254: Line 7,109:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,278: Line 7,133:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 7,304: Line 7,159:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 7,317: Line 7,172:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,323: Line 7,178:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 7,332: Line 7,187:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,339: Line 7,194:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 7,345: Line 7,200:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 7,352: Line 7,207:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,361: Line 7,216:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,370: Line 7,225:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 7,381: Line 7,236:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,390: Line 7,245:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers Z&amp;N, and V; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,401: Line 7,256:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @zptemp, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,412: Line 7,267:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 7,424: Line 7,279:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre> || Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,433: Line 7,288:
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,440: Line 7,295:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 7,453: Line 7,308:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 7,468: Line 7,323:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,480: Line 7,335:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 7,495: Line 7,350:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 7,506: Line 7,361:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 7,533: Line 7,388:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 7,545: Line 7,400:
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
; ^ Hides DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 7,553: Line 7,408:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 04    LDX #4
|<pre>A6 00    LDX $00
@X:
A2 09   LDX #9
08      PHP
28      PLP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and writes in stack
|-
|<pre>A2 06    LDX #6
@X:
A5 00   LDA $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>A2 06   LDX #6
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>A2 06   LDX #6
@X:
@X:
85 xx    STA @zptemp
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A2 06    LDX #6
@X:
04 00    NOP $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>A2 06    LDX #6
@X:
4C xx xx JMP *+3
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
EA       NOP
48       PHA
EA       NOP
08       PHP
A2 06   LDX #6
A2 07   LDX #7
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,614: Line 7,436:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 07    LDX #7
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,631: Line 7,444:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 7,643: Line 7,456:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,653: Line 7,466:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,663: Line 7,476:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,672: Line 7,485:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 7,680: Line 7,493:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,691: Line 7,504:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,701: Line 7,514:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,707: Line 7,520:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 7,720: Line 7,533:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 7,736: Line 7,549:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 7,748: Line 7,561:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 7,758: Line 7,571:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 7,768: Line 7,581:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 7,778: Line 7,591:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 7,790: Line 7,603:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 7,801: Line 7,614:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 7,828: Line 7,641:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,853: Line 7,666:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,878: Line 7,691:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,903: Line 7,716:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 7,930: Line 7,743:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 7,943: Line 7,756:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 07    LDX #7
|<pre>A2 07    LDX #7
Line 7,949: Line 7,762:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 7,959: Line 7,772:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,967: Line 7,780:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,974: Line 7,787:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,984: Line 7,797:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,992: Line 7,805:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 8,000: Line 7,813:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,006: Line 7,819:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 8,014: Line 7,827:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers C; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers C; requires @rts15; and writes in stack
|-
|-
|<pre>B8      CLV
|<pre>B8      CLV
Line 8,020: Line 7,833:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers V; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers V; requires @rts15; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre> || Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,031: Line 7,844:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @zptemp, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,042: Line 7,855:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,048: Line 7,861:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 8,061: Line 7,874:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,075: Line 7,888:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 8,087: Line 7,900:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 8,115: Line 7,928:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 8,123: Line 7,936:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0A    LDX #10
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0A    LDY #10
|<pre>A0 0A    LDY #10
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0A    LDX #10
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 8,142: Line 7,955:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,150: Line 7,963:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 8,157: Line 7,970:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 08    LDX #8
A2 08    LDX #8
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
24 00    BIT $00
A0 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 8,182: Line 7,995:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 8,194: Line 8,007:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 8,207: Line 8,020:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,213: Line 8,026:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,219: Line 8,032:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,229: Line 8,042:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,239: Line 8,052:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 8,248: Line 8,061:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,260: Line 8,073:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,271: Line 8,084:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,278: Line 8,091:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 8,292: Line 8,105:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 8,308: Line 8,121:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 8,320: Line 8,133:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 8,330: Line 8,143:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 8,340: Line 8,153:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 8,350: Line 8,163:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 8,362: Line 8,175:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 8,373: Line 8,186:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 8,401: Line 8,214:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,427: Line 8,240:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,453: Line 8,266:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,479: Line 8,292:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 8,507: Line 8,320:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 8,520: Line 8,333:
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
; ^ Hides DEY
30 xx    BMI @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A4 00    LDY $00
A0 88   LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>24 00    BIT $00
A0 88    LDY #136
A0 88    LDY #136
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
; ^ Hides DEY
30 xx    BMI @Y</pre> || Clobbers Y, Z&amp;N, and V
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>85 xx    STA @zptemp
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
A0 07    LDY #7
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,562: Line 8,350:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 8,571: Line 8,359:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 8,582: Line 8,370:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 06    LDY #6
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,591: Line 8,388:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 06    LDY #6
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 8,611: Line 8,399:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,620: Line 8,408:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 8,632: Line 8,420:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 8,648: Line 8,436:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 8,661: Line 8,449:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 8,690: Line 8,478:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 8,703: Line 8,491:
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
; ^ Hides DEY
30 xx    BMI @Y</pre> || Clobbers A, Y, S, and Z&amp;N
30 xx    BMI @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 0A    LDY #10
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,711: Line 8,505:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 0A    LDY #10
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 8,726: Line 8,514:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,733: Line 8,521:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 8,739: Line 8,527:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 8,750: Line 8,538:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,759: Line 8,547:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 8,770: Line 8,558:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,779: Line 8,567:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 8,788: Line 8,576:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,795: Line 8,583:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 8,809: Line 8,597:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 8,826: Line 8,614:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 8,839: Line 8,627:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 8,850: Line 8,638:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,861: Line 8,649:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,872: Line 8,660:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,883: Line 8,671:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 8,896: Line 8,684:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 8,925: Line 8,713:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,952: Line 8,740:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,979: Line 8,767:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,006: Line 8,794:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 9,035: Line 8,823:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 9,048: Line 8,836:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,054: Line 8,842:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 0A    LDX #10
A2 0A    LDX #10
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 0A    LDY #10
A0 0A    LDY #10
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
!colspan="2"|9 bytes
90 00    BCC *+2
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y</pre> || Clobbers Y, Z&amp;N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>EA      NOP
A0 0A   LDY #10
38      SEC
@Y:
A9 07   LDA #7
88       DEY
@A:
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>48      PHA
A2 0A    LDX #10
48      PHA
@X:
08       PHP
CA       DEX
A0 08   LDY #8
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A0 0A   LDY #10
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>48      PHA
A2 0A   LDX #10
48      PHA
08      PHP
A2 08   LDX #8
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>04 00    NOP $00
!colspan="2"|10 bytes
A2 0A    LDX #10
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|-
|<pre>04 00    NOP $00
|<pre>98      TYA
A0 0A   LDY #10
48      PHA
A0 06   LDY #6
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @Y
|-
68      PLA
!colspan="2"|8 bytes
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 07   LDX #7
08      PHP
A2 06   LDX #6
@X:
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 07   LDY #7
08      PHP
A0 06   LDY #6
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>48      PHA
38      SEC
98      TYA
A9 07    LDA #7
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 08    LDX #8
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>98      TYA
48      PHA
A0 06    LDY #6
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A0 06    LDY #6
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A2 06    LDX #6
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
48      PHA
A0 07    LDY #7
A0 07    LDY #7
Line 9,202: Line 8,929:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,212: Line 8,939:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 9,225: Line 8,952:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 9,242: Line 8,969:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 9,256: Line 8,983:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 9,286: Line 9,013:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 9,300: Line 9,027:
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
; ^ Hides DEY
30 xx    BMI @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
Line 9,306: Line 9,033:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
Line 9,312: Line 9,039:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
Line 9,321: Line 9,055:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 9,338: Line 9,065:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,346: Line 9,073:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,353: Line 9,080:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 9,363: Line 9,090:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,371: Line 9,098:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 9,378: Line 9,105:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre> || Requires @rts12, @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,389: Line 9,116:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 9,402: Line 9,129:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 9,419: Line 9,146:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 9,433: Line 9,160:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,445: Line 9,172:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,457: Line 9,184:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,469: Line 9,196:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,481: Line 9,208:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 9,495: Line 9,222:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 9,525: Line 9,252:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,553: Line 9,280:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,581: Line 9,308:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,609: Line 9,336:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 9,639: Line 9,366:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 9,651: Line 9,378:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0B    LDY #11
|<pre>A0 0B    LDY #11
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 9,665: Line 9,392:
; ^ Hides DEY
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 9,675: Line 9,402:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,682: Line 9,409:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 9,692: Line 9,419:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 9,699: Line 9,426:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 9,711: Line 9,438:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 9,724: Line 9,451:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,734: Line 9,461:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,744: Line 9,471:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 9,758: Line 9,485:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,769: Line 9,496:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 9,788: Line 9,515:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 9,805: Line 9,532:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 9,818: Line 9,545:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 9,849: Line 9,576:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 9,857: Line 9,584:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 08    LDY #8
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 08    LDX #8
|<pre>A2 08    LDX #8
Line 9,862: Line 9,595:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 08    LDY #8
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 9,877: Line 9,604:
; ^ Hides SED
; ^ Hides SED
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, C, and D
D0 xx    BNE @A</pre>||Clobbers A, Z&N, C, and D
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 9,887: Line 9,614:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,895: Line 9,622:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,902: Line 9,629:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 9,913: Line 9,640:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 9,921: Line 9,648:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 9,932: Line 9,659:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,941: Line 9,668:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 9,953: Line 9,680:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 9,971: Line 9,698:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 9,986: Line 9,713:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,999: Line 9,726:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,012: Line 9,739:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,025: Line 9,752:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,038: Line 9,765:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 10,053: Line 9,780:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 10,084: Line 9,811:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,113: Line 9,840:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,142: Line 9,869:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,171: Line 9,898:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 10,202: Line 9,929:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 10,215: Line 9,942:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,221: Line 9,948:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 10,230: Line 9,957:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,237: Line 9,964:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 10,243: Line 9,970:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 10,254: Line 9,981:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,263: Line 9,990:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 10,274: Line 10,001:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,283: Line 10,010:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 10,290: Line 10,017:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 10,305: Line 10,032:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,311: Line 10,038:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre> || Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,323: Line 10,050:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 10,338: Line 10,065:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 10,356: Line 10,083:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 10,369: Line 10,096:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 10,401: Line 10,128:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 10,414: Line 10,141:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,420: Line 10,147:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
A2 08   LDX #8
A2 0B   LDX #11
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A4 00    LDY $00
A0 08   LDY #8
A0 0B   LDY #11
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,444: Line 10,169:
; ^ Hides DEY
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 88    LDY #136
A0 88    LDY #136
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 10,461: Line 10,186:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 10,472: Line 10,197:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 10,483: Line 10,208:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,492: Line 10,217:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 10,505: Line 10,230:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 10,518: Line 10,243:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 10,536: Line 10,261:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 10,550: Line 10,275:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,564: Line 10,289:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 10,576: Line 10,301:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 10,588: Line 10,313:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 10,600: Line 10,325:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 10,614: Line 10,339:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 10,646: Line 10,371:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,676: Line 10,401:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,706: Line 10,431:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,736: Line 10,461:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 10,768: Line 10,493:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 10,781: Line 10,506:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 10,787: Line 10,512:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 10,796: Line 10,521:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,803: Line 10,528:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 10,814: Line 10,539:
30 xx    BMI @Y
30 xx    BMI @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,822: Line 10,547:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,830: Line 10,555:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,837: Line 10,562:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 10,847: Line 10,572:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,855: Line 10,580:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 10,862: Line 10,587:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre> || Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,873: Line 10,598:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 10,886: Line 10,611:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 10,904: Line 10,629:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 10,917: Line 10,642:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 10,950: Line 10,675:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 10,962: Line 10,687:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 10,977: Line 10,702:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,985: Line 10,710:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,992: Line 10,717:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 11,000: Line 10,725:
; ^ Hides SED
; ^ Hides SED
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, C, and D
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, C, and D
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 0A    LDX #10
A2 0A    LDX #10
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 0A    LDY #10
A0 0A    LDY #10
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 11,025: Line 10,750:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 11,037: Line 10,762:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 11,049: Line 10,774:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,059: Line 10,784:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 11,073: Line 10,798:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 11,087: Line 10,812:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 11,106: Line 10,831:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 11,120: Line 10,845:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 11,132: Line 10,857:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 11,144: Line 10,869:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 11,156: Line 10,881:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 11,170: Line 10,895:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 11,183: Line 10,908:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 11,216: Line 10,941:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,247: Line 10,972:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,278: Line 11,003:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,309: Line 11,034:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 11,342: Line 11,067:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 11,356: Line 11,081:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,363: Line 11,088:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,370: Line 11,095:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,377: Line 11,102:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 11,387: Line 11,112:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,395: Line 11,120:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,404: Line 11,129:
; ^ Hides DEY
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 11,411: Line 11,136:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 11,422: Line 11,147:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,431: Line 11,156:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,440: Line 11,165:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,448: Line 11,173:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 11,459: Line 11,184:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,468: Line 11,193:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 11,480: Line 11,205:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 11,499: Line 11,224:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 11,513: Line 11,238:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 11,547: Line 11,272:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 11,560: Line 11,285:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,566: Line 11,291:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 11,575: Line 11,300:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,582: Line 11,307:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 11,588: Line 11,313:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 11,600: Line 11,325:
30 xx    BMI @Y
30 xx    BMI @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 11,612: Line 11,337:
30 xx    BMI @Y
30 xx    BMI @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,621: Line 11,346:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,630: Line 11,355:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 11,641: Line 11,366:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,650: Line 11,375:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 11,665: Line 11,390:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,677: Line 11,402:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 11,692: Line 11,417:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 11,711: Line 11,436:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 11,725: Line 11,450:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 11,737: Line 11,462:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 11,749: Line 11,474:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 11,761: Line 11,486:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 11,775: Line 11,500:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 11,788: Line 11,513:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 11,822: Line 11,547:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,854: Line 11,579:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,886: Line 11,611:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,918: Line 11,643:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 11,952: Line 11,677:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 11,965: Line 11,690:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
Line 11,971: Line 11,696:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 11,981: Line 11,706:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,989: Line 11,714:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 12,000: Line 11,725:
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,009: Line 11,734:
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, C, and D; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and D; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,017: Line 11,742:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 12,028: Line 11,753:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 12,041: Line 11,766:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 12,054: Line 11,779:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 12,073: Line 11,798:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 12,088: Line 11,813:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 12,123: Line 11,848:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 12,131: Line 11,856:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 08    LDX #8
@X:
48      PHA
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
Line 12,136: Line 11,867:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A2 08    LDX #8
@X:
48      PHA
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 12,148: Line 11,873:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 12,154: Line 11,879:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 12,163: Line 11,888:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,170: Line 11,895:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 12,180: Line 11,905:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,188: Line 11,913:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,195: Line 11,920:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 12,205: Line 11,930:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,213: Line 11,938:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 12,226: Line 11,951:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 12,239: Line 11,964:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 12,259: Line 11,984:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 12,274: Line 11,999:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 12,287: Line 12,012:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,300: Line 12,025:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,313: Line 12,038:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,326: Line 12,051:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 12,341: Line 12,066:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 12,376: Line 12,101:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,409: Line 12,134:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,442: Line 12,167:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,475: Line 12,200:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 12,510: Line 12,235:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 12,522: Line 12,247:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0D    LDX #13
|<pre>A2 0D    LDX #13
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 12,536: Line 12,261:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,544: Line 12,269:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,552: Line 12,277:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A4 00    LDY $00
A0 08   LDY #8
A0 0B   LDY #11
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A6 00    LDX $00
A2 08   LDX #8
A2 0B   LDX #11
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 12,583: Line 12,306:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,592: Line 12,315:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 12,605: Line 12,328:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 12,625: Line 12,348:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 12,641: Line 12,364:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 12,677: Line 12,400:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 12,685: Line 12,408:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 06    LDX #6
@X:
48      PHA
48      PHA
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
Line 12,691: Line 12,421:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
@X:
@X:
48       PHA
EA       NOP
48       PHA
68       PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
Line 12,705: Line 12,435:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>A2 06   LDX #6
|<pre>A4 00   LDY $00
@X:
A0 09    LDY #9
@Y:
EA      NOP
EA      NOP
68       PLA
88       DEY
CA      DEX
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
|<pre>A6 00    LDX $00
|-
A2 09   LDX #9
|<pre>A2 06   LDX #6
@X:
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 12,737: Line 12,458:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 12,748: Line 12,469:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A0 0B    LDY #11
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,757: Line 12,487:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A0 0B    LDY #11
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,774: Line 12,495:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 12,787: Line 12,508:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,796: Line 12,517:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 12,808: Line 12,529:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 12,828: Line 12,549:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 12,844: Line 12,565:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,858: Line 12,579:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,872: Line 12,593:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,886: Line 12,607:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,900: Line 12,621:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 12,916: Line 12,637:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 12,952: Line 12,673:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,986: Line 12,707:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,020: Line 12,741:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,054: Line 12,775:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 13,090: Line 12,811:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 13,103: Line 12,824:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,109: Line 12,830:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 13,118: Line 12,839:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,125: Line 12,846:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 13,131: Line 12,852:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 13,143: Line 12,864:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,152: Line 12,873:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,161: Line 12,882:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 13,172: Line 12,893:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,181: Line 12,902:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 13,195: Line 12,916:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 13,209: Line 12,930:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 13,229: Line 12,950:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 13,244: Line 12,965:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 13,281: Line 13,002:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 13,294: Line 13,015:
; ^ Hides DEY
; ^ Hides DEY
88      DEY
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 13,302: Line 13,023:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A6 00    LDX $00
A2 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>24 00    BIT $00
A2 0D   LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A2 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A2 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A2 0D    LDX #13
A2 0D    LDX #13
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A2 04    LDX #4
@X:
20 xx xx JSR @rts12
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; requires @rts12; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A2 04   LDX #4
|<pre>48      PHA
48      PHA
08      PHP
A2 0B   LDX #11
@X:
@X:
36 00    ROL $00,X
76 00    ROR $00,X
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,360: Line 13,051:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 0B    LDX #11
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,377: Line 13,059:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 13,389: Line 13,071:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,395: Line 13,077:
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 0B    LDX #11
A0 0B    LDY #11
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,405: Line 13,087:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 0B    LDY #11
A2 0B    LDX #11
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 13,417: Line 13,099:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 13,430: Line 13,112:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,440: Line 13,122:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 13,453: Line 13,135:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 13,474: Line 13,156:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 13,491: Line 13,173:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,506: Line 13,188:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,521: Line 13,203:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,536: Line 13,218:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,551: Line 13,233:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 13,568: Line 13,250:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 13,605: Line 13,287:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,640: Line 13,322:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,675: Line 13,357:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,710: Line 13,392:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 13,747: Line 13,429:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 13,760: Line 13,442:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 13,766: Line 13,448:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 13,775: Line 13,457:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,782: Line 13,464:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 13,792: Line 13,474:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,800: Line 13,482:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,807: Line 13,489:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 13,817: Line 13,499:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,825: Line 13,507:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 13,839: Line 13,521:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers S, and Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 13,853: Line 13,535:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,864: Line 13,546:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 13,877: Line 13,559:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 13,898: Line 13,580:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 13,913: Line 13,595:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 13,951: Line 13,633:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 13,963: Line 13,645:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0E    LDX #14
|<pre>A2 0E    LDX #14
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 13,978: Line 13,660:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,986: Line 13,668:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,993: Line 13,675:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 14,002: Line 13,684:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 14,014: Line 13,696:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 14,027: Line 13,709:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 14,048: Line 13,730:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 14,064: Line 13,746:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,080: Line 13,762:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 14,094: Line 13,776:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 14,108: Line 13,790:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 14,122: Line 13,804:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 14,138: Line 13,820:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 14,176: Line 13,858:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,212: Line 13,894:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,248: Line 13,930:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,284: Line 13,966:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 14,322: Line 14,004:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 14,336: Line 14,018:
; ^ Hides DEY
; ^ Hides DEY
88      DEY
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 88    LDY #136
A0 88    LDY #136
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
; ^ Hides DEY
88      DEY
88      DEY
30 xx    BMI @Y</pre> || Clobbers A, Y, and Z&amp;N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>24 00    BIT $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 14,366: Line 14,034:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,373: Line 14,041:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>04 00    NOP $00
!colspan="2"|8 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,390: Line 14,051:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 0D    LDY #13
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 14,405: Line 14,058:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 14,416: Line 14,069:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,424: Line 14,077:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,432: Line 14,085:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,440: Line 14,093:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 14,451: Line 14,104:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,460: Line 14,113:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 14,472: Line 14,125:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 14,493: Line 14,146:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 14,508: Line 14,161:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 14,547: Line 14,200:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 14,560: Line 14,213:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,566: Line 14,219:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 14,575: Line 14,228:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,582: Line 14,235:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 14,588: Line 14,241:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 14,599: Line 14,252:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 14,608: Line 14,261:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 14,621: Line 14,274:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 14,643: Line 14,296:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 14,659: Line 14,312:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 14,673: Line 14,326:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 14,687: Line 14,340:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 14,701: Line 14,354:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 14,717: Line 14,370:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 14,732: Line 14,385:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 14,771: Line 14,424:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,808: Line 14,461:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,845: Line 14,498:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,882: Line 14,535:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 14,921: Line 14,574:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 14,929: Line 14,582:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 14,940: Line 14,587:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>48       PHA
|-
|<pre>A5 00    LDA $00
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>A5 00    LDA $00
A2 0E    LDX #14
A2 0E    LDX #14
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|7 bytes
A0 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|-
|<pre>24 00    BIT $00
|<pre>A6 00    LDX $00
A2 0E    LDX #14
A2 0E    LDX #14
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>A4 00   LDY $00
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>04 00    NOP $00
!colspan="2"|9 bytes
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|-
|<pre>04 00    NOP $00
|<pre>48       PHA
A0 0E    LDY #14
08       PHP
@Y:
A0 09   LDY #9
88       DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|<pre>4C xx xx JMP *+3
A0 0E   LDY #14
@Y:
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
|<pre>18      CLC
90 00    BCC *+2
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, Z&amp;N, and C
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y
|-
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,041: Line 14,627:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 09    LDY #9
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,058: Line 14,635:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 15,070: Line 14,647:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,079: Line 14,656:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,088: Line 14,665:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,097: Line 14,674:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,110: Line 14,687:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,119: Line 14,696:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 15,132: Line 14,709:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 15,154: Line 14,731:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 15,170: Line 14,747:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 15,210: Line 14,787:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 15,223: Line 14,800:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 15,229: Line 14,806:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,238: Line 14,822:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 15,255: Line 14,832:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,263: Line 14,840:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,270: Line 14,847:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,280: Line 14,857:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,288: Line 14,865:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 15,302: Line 14,879:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,313: Line 14,890:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 15,326: Line 14,903:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 15,348: Line 14,925:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 15,364: Line 14,941:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 15,378: Line 14,955:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 15,392: Line 14,969:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 15,406: Line 14,983:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 15,422: Line 14,999:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 15,437: Line 15,014:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 15,477: Line 15,054:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,515: Line 15,092:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,553: Line 15,130:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,591: Line 15,168:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 15,631: Line 15,208:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
4C xx xx JMP *+3</pre> || Not relocatable code
4C xx xx JMP *+3</pre>||Not relocatable code
|-
|-
|}
|}
Line 15,643: Line 15,220:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0F    LDX #15
|<pre>A2 0F    LDX #15
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 15,658: Line 15,235:
88      DEY
88      DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 15,668: Line 15,245:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,675: Line 15,252:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 0D    LDX #13
A2 0D    LDX #13
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 15,692: Line 15,269:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 15,704: Line 15,281:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,716: Line 15,293:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,726: Line 15,303:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,736: Line 15,313:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 15,750: Line 15,327:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,760: Line 15,337:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 15,774: Line 15,351:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 15,796: Line 15,373:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 15,813: Line 15,390:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 15,854: Line 15,431:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 15,868: Line 15,445:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,875: Line 15,452:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>EA      NOP
68      PLA
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,882: Line 15,466:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|8 bytes
68      PLA
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,899: Line 15,476:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,907: Line 15,484:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 15,914: Line 15,491:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,925: Line 15,502:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,934: Line 15,511:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,943: Line 15,520:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,951: Line 15,528:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 15,962: Line 15,539:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,971: Line 15,548:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,983: Line 15,560:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 16,006: Line 15,583:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 16,023: Line 15,600:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 16,038: Line 15,615:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,053: Line 15,630:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,068: Line 15,645:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,083: Line 15,660:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 16,100: Line 15,677:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 16,141: Line 15,718:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2</pre> || Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,180: Line 15,757:
EA      NOP
EA      NOP
B8      CLV
B8      CLV
50 00    BVC *+2</pre> || Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,219: Line 15,796:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
85 xx    STA @zptemp</pre> || Requires @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,258: Line 15,835:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
04 00    NOP $00</pre> || Requires support for unofficial opcodes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|-
|}
|}
Line 16,271: Line 15,848:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
Line 16,277: Line 15,854:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 16,286: Line 15,863:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,293: Line 15,870:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 16,299: Line 15,876:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 16,310: Line 15,887:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,319: Line 15,896:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 16,330: Line 15,907:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,339: Line 15,916:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 16,354: Line 15,931:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 16,377: Line 15,954:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 16,395: Line 15,972:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 16,437: Line 16,014:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP</pre> || No requirements
EA      NOP</pre>||No requirements
|-
|-
|}
|}
Line 16,450: Line 16,027:
; ^ Hides DEY
; ^ Hides DEY
48      PHA
48      PHA
30 xx    BMI @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 16,458: Line 16,035:
; ^ Hides DEY
; ^ Hides DEY
A5 00    LDA $00
A5 00    LDA $00
30 xx    BMI @Y</pre> || Clobbers A, Y, and Z&amp;N
30 xx    BMI @Y</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
A6 00    LDX $00
30 xx    BMI @Y</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136
Line 16,464: Line 16,047:
; ^ Hides DEY
; ^ Hides DEY
24 00    BIT $00
24 00    BIT $00
30 xx    BMI @Y</pre> || Clobbers Y, Z&amp;N, and V
30 xx    BMI @Y</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136
Line 16,470: Line 16,053:
; ^ Hides DEY
; ^ Hides DEY
85 xx    STA @zptemp
85 xx    STA @zptemp
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,476: Line 16,059:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136
Line 16,482: Line 16,065:
; ^ Hides DEY
; ^ Hides DEY
04 00    NOP $00
04 00    NOP $00
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 88   LDY #136
|<pre>A4 00   LDY $00
@Y = * - 1
A0 0F    LDY #15
; ^ Hides DEY
@Y:
4C xx xx JMP *+3
88       DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A5 00    LDA $00
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>24 00    BIT $00
A2 0F    LDX #15
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A2 0F    LDX #15
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>A6 00    LDX $00
A2 0F    LDX #15
A2 0F    LDX #15
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A2 0F    LDX #15
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,531: Line 16,090:
88      DEY
88      DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 88    LDY #136
A0 88    LDY #136
@Y = * - 1
@Y = * - 1
Line 16,542: Line 16,101:
88      DEY
88      DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>A2 06    LDX #6
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,569: Line 16,110:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,577: Line 16,118:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 16,589: Line 16,130:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,599: Line 16,140:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,608: Line 16,149:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 16,621: Line 16,162:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,631: Line 16,172:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 16,644: Line 16,185:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 16,667: Line 16,208:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 16,685: Line 16,226:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,701: Line 16,242:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,717: Line 16,258:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,733: Line 16,274:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,749: Line 16,290:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 16,767: Line 16,308:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 16,780: Line 16,321:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 16,786: Line 16,327:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 16,795: Line 16,336:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,802: Line 16,343:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 16,812: Line 16,353:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,820: Line 16,361:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 16,827: Line 16,368:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 16,837: Line 16,378:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,845: Line 16,386:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 16,858: Line 16,399:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 16,881: Line 16,422:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 16,898: Line 16,439:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 16,910: Line 16,451:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 16,925: Line 16,466:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,933: Line 16,474:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,940: Line 16,481:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 0E    LDX #14
A2 0E    LDX #14
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 16,965: Line 16,506:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 16,977: Line 16,518:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 16,990: Line 16,531:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,000: Line 16,541:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,010: Line 16,551:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 17,024: Line 16,565:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,035: Line 16,576:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 17,049: Line 16,590:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 17,073: Line 16,614:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 17,092: Line 16,633:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,109: Line 16,650:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,126: Line 16,667:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,143: Line 16,684:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,160: Line 16,701:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 17,179: Line 16,720:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 17,193: Line 16,734:
; ^ Hides DEY
; ^ Hides DEY
48      PHA
48      PHA
30 xx    BMI @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 09    LDY #9
|<pre>A0 09    LDY #9
Line 17,199: Line 16,740:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
Line 17,205: Line 16,746:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 17,214: Line 16,755:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
Line 17,221: Line 16,762:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 17,230: Line 16,771:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,241: Line 16,782:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,250: Line 16,791:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,259: Line 16,800:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,267: Line 16,808:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 17,278: Line 16,819:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,287: Line 16,828:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 17,299: Line 16,840:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 17,323: Line 16,864:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 17,340: Line 16,881:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 17,353: Line 16,894:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,359: Line 16,900:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 17,368: Line 16,909:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,375: Line 16,916:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 17,381: Line 16,922:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 17,392: Line 16,933:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,401: Line 16,942:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 17,412: Line 16,953:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,421: Line 16,962:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 17,435: Line 16,976:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,447: Line 16,988:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 17,462: Line 17,003:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 17,486: Line 17,027:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 17,504: Line 17,045:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,522: Line 17,063:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 17,538: Line 17,079:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 17,554: Line 17,095:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 17,570: Line 17,111:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 17,588: Line 17,129:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 17,601: Line 17,142:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,607: Line 17,148:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 10    LDX #16
A2 10    LDX #16
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 10    LDY #16
A0 10    LDY #16
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|9 bytes
A2 10    LDX #16
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|-
|<pre>24 00    BIT $00
|<pre>38      SEC
A0 10   LDY #16
A9 09   LDA #9
@Y:
@A:
88       DEY
EA      NOP
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>48      PHA
A0 10   LDY #16
48      PHA
08      PHP
A0 0E   LDY #14
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>48      PHA
A2 10   LDX #16
48      PHA
08      PHP
A2 0E   LDX #14
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>04 00    NOP $00
|<pre>EA      NOP
A0 10   LDY #16
98      TYA
48      PHA
A0 0E   LDY #14
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @Y
|-
68      PLA
|<pre>04 00    NOP $00
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 09    LDY #9
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 09    LDX #9
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
08      PHP
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
!colspan="2"|9 bytes
|-
|<pre>38      SEC
A9 09    LDA #9
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
98      TYA
48      PHA
A0 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
A0 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 17,748: Line 17,235:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,758: Line 17,245:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 17,771: Line 17,258:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 17,795: Line 17,282:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 17,812: Line 17,299:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 17,825: Line 17,312:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 17,831: Line 17,318:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 17,841: Line 17,328:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,849: Line 17,336:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,856: Line 17,343:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,866: Line 17,353:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,874: Line 17,361:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 17,887: Line 17,374:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 17,900: Line 17,387:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 17,925: Line 17,412:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 17,943: Line 17,430:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 17,959: Line 17,446:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 17,975: Line 17,462:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 17,991: Line 17,478:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 18,009: Line 17,496:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 18,026: Line 17,513:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|}
|}
Line 18,038: Line 17,525:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 18,053: Line 17,540:
24 00    BIT $00
24 00    BIT $00
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,061: Line 17,548:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,068: Line 17,555:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 0F    LDX #15
A2 0F    LDX #15
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 18,085: Line 17,572:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 18,097: Line 17,584:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 18,110: Line 17,597:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,120: Line 17,607:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,130: Line 17,617:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 18,144: Line 17,631:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,155: Line 17,642:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 18,169: Line 17,656:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 18,194: Line 17,681:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 18,212: Line 17,699:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 18,226: Line 17,713:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,233: Line 17,720:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 18,242: Line 17,729:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,253: Line 17,740:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,262: Line 17,749:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,271: Line 17,758:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 18,282: Line 17,769:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,291: Line 17,778:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 18,303: Line 17,790:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 18,328: Line 17,815:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 18,346: Line 17,833:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 18,362: Line 17,849:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 18,378: Line 17,865:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 18,394: Line 17,881:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 18,412: Line 17,899:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 18,429: Line 17,916:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|}
|}
Line 18,442: Line 17,929:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,448: Line 17,935:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 18,457: Line 17,944:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,464: Line 17,951:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 18,470: Line 17,957:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 18,481: Line 17,968:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,490: Line 17,977:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 18,501: Line 17,988:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,510: Line 17,997:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 18,525: Line 18,012:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,537: Line 18,024:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 18,552: Line 18,039:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 18,577: Line 18,064:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 18,596: Line 18,083:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 18,609: Line 18,096:
; ^ Hides DEY
; ^ Hides DEY
68      PLA
68      PLA
30 xx    BMI @Y</pre> || Clobbers A, Y, S, and Z&amp;N
30 xx    BMI @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 18,618: Line 18,105:
EA      NOP
EA      NOP
88      DEY
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
Line 18,624: Line 18,111:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 0B   LDX #11
|<pre>A6 00   LDX $00
@X:
A2 11    LDX #17
A5 00    LDA $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>A2 0B    LDX #11
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>A2 0B   LDX #11
@X:
@X:
85 xx    STA @zptemp
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A2 0B    LDX #11
@X:
04 00    NOP $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>A2 08    LDX #8
@X:
EA      NOP
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,671: Line 18,130:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,680: Line 18,139:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,688: Line 18,147:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 18,700: Line 18,159:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 18,713: Line 18,172:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,723: Line 18,182:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 18,736: Line 18,195:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 18,762: Line 18,221:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 18,781: Line 18,240:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 18,798: Line 18,257:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,815: Line 18,274:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,832: Line 18,291:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,849: Line 18,308:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 18,868: Line 18,327:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 18,881: Line 18,340:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 18,887: Line 18,346:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 18,896: Line 18,355:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,903: Line 18,362:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 18,913: Line 18,372:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,921: Line 18,380:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,928: Line 18,387:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,938: Line 18,397:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,946: Line 18,405:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 18,959: Line 18,418:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 18,972: Line 18,431:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 18,998: Line 18,457:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 19,018: Line 18,477:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 19,030: Line 18,489:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 12    LDY #18
|<pre>A0 12    LDY #18
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 19,045: Line 18,504:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,053: Line 18,512:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 19,060: Line 18,519:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 10    LDX #16
A2 10    LDX #16
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 10    LDY #16
A0 10    LDY #16
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 19,085: Line 18,544:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 19,097: Line 18,556:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,109: Line 18,568:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,119: Line 18,578:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 19,133: Line 18,592:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 19,147: Line 18,606:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 19,173: Line 18,632:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 19,193: Line 18,652:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,211: Line 18,670:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,229: Line 18,688:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,247: Line 18,706:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,265: Line 18,724:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 19,285: Line 18,744:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 19,298: Line 18,757:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0D    LDY #13
|<pre>A0 0D    LDY #13
Line 19,304: Line 18,763:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 19,314: Line 18,773:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,322: Line 18,781:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 19,329: Line 18,788:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 19,340: Line 18,799:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,348: Line 18,807:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 19,359: Line 18,818:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,368: Line 18,827:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,380: Line 18,839:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 19,406: Line 18,865:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 19,425: Line 18,884:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 19,438: Line 18,897:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,444: Line 18,903:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 19,453: Line 18,912:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,460: Line 18,919:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 19,466: Line 18,925:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 19,477: Line 18,936:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,486: Line 18,945:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,497: Line 18,956:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,506: Line 18,965:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 19,521: Line 18,980:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,533: Line 18,992:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 19,548: Line 19,007:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 19,575: Line 19,034:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 19,596: Line 19,055:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,615: Line 19,074:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,634: Line 19,093:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,653: Line 19,112:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,672: Line 19,131:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 19,693: Line 19,152:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 19,706: Line 19,165:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,712: Line 19,171:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA       NOP
|<pre>A6 00    LDX $00
A0 0D   LDY #13
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 12   LDY #18
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 0D    LDX #13
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 19,737: Line 19,194:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 19,748: Line 19,205:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,757: Line 19,214:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 19,768: Line 19,225:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,777: Line 19,234:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,790: Line 19,247:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 19,803: Line 19,260:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 19,830: Line 19,287:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 19,849: Line 19,306:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 19,862: Line 19,319:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 19,868: Line 19,325:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 19,877: Line 19,334:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,884: Line 19,341:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 19,894: Line 19,351:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,902: Line 19,359:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,909: Line 19,366:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 19,919: Line 19,376:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,927: Line 19,384:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 19,940: Line 19,397:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 19,953: Line 19,410:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 19,980: Line 19,437:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 20,000: Line 19,457:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,020: Line 19,477:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 20,038: Line 19,495:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 20,056: Line 19,513:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 20,074: Line 19,531:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 20,094: Line 19,551:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 20,106: Line 19,563:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 13    LDX #19
|<pre>A2 13    LDX #19
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,122: Line 19,579:
88      DEY
88      DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 20,130: Line 19,587:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 20,137: Line 19,594:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,147: Line 19,604:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 20,154: Line 19,611:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 20,166: Line 19,623:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 20,178: Line 19,635:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,188: Line 19,645:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 20,202: Line 19,659:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 20,216: Line 19,673:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 20,243: Line 19,700:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 20,262: Line 19,719:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 20,275: Line 19,732:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 20,281: Line 19,738:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 20,290: Line 19,747:
28      PLP
28      PLP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and writes in stack
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
Line 20,297: Line 19,754:
28      PLP
28      PLP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and writes in stack
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 20,303: Line 19,760:
A5 00    LDA $00
A5 00    LDA $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 20,309: Line 19,766:
A5 00    LDA $00
A5 00    LDA $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A2 0C    LDX #12
@X:
A4 00    LDY $00
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 20,315: Line 19,778:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 20,321: Line 19,784:
24 00    BIT $00
24 00    BIT $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 20,327: Line 19,790:
85 xx    STA @zptemp
85 xx    STA @zptemp
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 20,333: Line 19,796:
85 xx    STA @zptemp
85 xx    STA @zptemp
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 20,339: Line 19,802:
04 00    NOP $00
04 00    NOP $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 20,345: Line 19,808:
04 00    NOP $00
04 00    NOP $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,352: Line 19,815:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 12    LDY #18
A2 12    LDX #18
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 12    LDX #18
A0 12    LDY #18
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 20,370: Line 19,833:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,381: Line 19,844:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 11    LDX #17
A0 11    LDY #17
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 11    LDY #17
A2 11    LDX #17
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,407: Line 19,870:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 20,418: Line 19,881:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,427: Line 19,890:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 20,439: Line 19,902:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 20,467: Line 19,930:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 20,487: Line 19,950:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 20,505: Line 19,968:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 20,523: Line 19,986:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 20,541: Line 20,004:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 20,561: Line 20,024:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 20,580: Line 20,043:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|}
|}
Line 20,593: Line 20,056:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,599: Line 20,062:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 20,608: Line 20,071:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,615: Line 20,078:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 20,621: Line 20,084:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 20,632: Line 20,095:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 20,641: Line 20,104:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 20,652: Line 20,115:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 20,661: Line 20,124:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 20,675: Line 20,138:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 20,703: Line 20,166:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 20,723: Line 20,186:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 20,736: Line 20,199:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0E    LDX #14
|<pre>A2 0E    LDX #14
Line 20,742: Line 20,205:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,752: Line 20,215:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,760: Line 20,223:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 20,767: Line 20,230:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,777: Line 20,240:
28      PLP
28      PLP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 20,784: Line 20,247:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, C, and V
D0 xx    BNE @A</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 20,791: Line 20,254:
85 xx    STA @zptemp
85 xx    STA @zptemp
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C; and requires @zptemp
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,799: Line 20,262:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 20,806: Line 20,269:
04 00    NOP $00
04 00    NOP $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C; and requires support for unofficial opcodes
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 20,818: Line 20,281:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,827: Line 20,290:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 20,840: Line 20,303:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,850: Line 20,313:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 20,863: Line 20,326:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 20,891: Line 20,354:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 20,911: Line 20,374:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 20,929: Line 20,392:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 20,947: Line 20,410:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 20,965: Line 20,428:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 20,985: Line 20,448:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 21,004: Line 20,467:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|}
|}
Line 21,017: Line 20,480:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
Line 21,023: Line 20,486:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,032: Line 20,495:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
Line 21,039: Line 20,502:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 21,049: Line 20,512:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,057: Line 20,520:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,064: Line 20,527:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 21,074: Line 20,537:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,082: Line 20,545:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 21,095: Line 20,558:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 21,108: Line 20,571:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 21,136: Line 20,599:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 21,157: Line 20,620:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 21,169: Line 20,632:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 14    LDY #20
|<pre>A0 14    LDY #20
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 21,183: Line 20,646:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
08      PHP
A0 12    LDY #18
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,191: Line 20,662:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 12    LDY #18
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A6 00    LDX $00
A2 0D   LDX #13
A2 12   LDX #18
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A4 00    LDY $00
A0 0D   LDY #13
A0 12   LDY #18
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 21,230: Line 20,691:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,239: Line 20,700:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 21,252: Line 20,713:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 21,281: Line 20,742:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 21,302: Line 20,763:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 21,321: Line 20,782:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,340: Line 20,801:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,359: Line 20,820:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,378: Line 20,839:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 21,399: Line 20,860:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 21,413: Line 20,874:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,420: Line 20,881:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,427: Line 20,888:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,434: Line 20,895:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
A2 0B   LDX #11
A2 0E   LDX #14
@X:
@X:
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A4 00    LDY $00
A0 0B   LDY #11
A0 0E   LDY #14
@Y:
@Y:
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 21,459: Line 20,918:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 21,470: Line 20,929:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,479: Line 20,938:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,488: Line 20,947:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 21,496: Line 20,955:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 21,507: Line 20,966:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,516: Line 20,975:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 21,528: Line 20,987:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 21,557: Line 21,016:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 21,579: Line 21,038:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 21,592: Line 21,051:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,598: Line 21,057:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,607: Line 21,066:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,614: Line 21,073:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 21,620: Line 21,079:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 21,632: Line 21,091:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,641: Line 21,100:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,650: Line 21,109:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 21,661: Line 21,120:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,670: Line 21,129:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 21,684: Line 21,143:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 21,698: Line 21,157:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 21,727: Line 21,186:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 21,749: Line 21,208:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,769: Line 21,228:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,789: Line 21,248:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,809: Line 21,268:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,829: Line 21,288:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 21,851: Line 21,310:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 21,864: Line 21,323:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,870: Line 21,329:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A6 00    LDX $00
A2 14   LDX #20
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>A5 00    LDA $00
A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>24 00    BIT $00
A2 14    LDX #20
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>24 00    BIT $00
A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A2 14    LDX #20
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A2 14    LDX #20
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A2 14    LDX #20
A2 14    LDX #20
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>A4 00    LDY $00
A0 14    LDY #20
A0 14    LDY #20
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 0C    LDX #12
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,952: Line 21,353:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
EA      NOP
A2 0C   LDX #12
A0 0B    LDY #11
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
A2 0B   LDX #11
@X:
@X:
EA      NOP
24 00    BIT $00
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,978: Line 21,369:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 21,990: Line 21,381:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 21,998: Line 21,389:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 22,011: Line 21,402:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,021: Line 21,412:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 22,034: Line 21,425:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 22,063: Line 21,454:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 22,084: Line 21,475:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 22,097: Line 21,488:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 0D    LDY #13
|<pre>A0 0D    LDY #13
Line 22,103: Line 21,494:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 22,109: Line 21,500:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 22,115: Line 21,506:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 22,124: Line 21,515:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,131: Line 21,522:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 22,141: Line 21,532:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,149: Line 21,540:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,156: Line 21,547:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 22,166: Line 21,557:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,174: Line 21,565:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 22,187: Line 21,578:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 22,200: Line 21,591:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 22,230: Line 21,621:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 22,253: Line 21,644:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,274: Line 21,665:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,295: Line 21,686:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,316: Line 21,707:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,337: Line 21,728:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 22,360: Line 21,751:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 22,372: Line 21,763:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 15    LDY #21
|<pre>A0 15    LDY #21
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 22,387: Line 21,778:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,395: Line 21,786:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,402: Line 21,793:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 22,411: Line 21,802:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 22,423: Line 21,814:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 22,434: Line 21,825:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,444: Line 21,835:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 22,458: Line 21,849:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 22,472: Line 21,863:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 22,502: Line 21,893:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 22,523: Line 21,914:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 22,537: Line 21,928:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,544: Line 21,935:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,551: Line 21,942:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,558: Line 21,949:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 22,568: Line 21,959:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,576: Line 21,967:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 22,583: Line 21,974:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 22,594: Line 21,985:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,603: Line 21,994:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,612: Line 22,003:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,620: Line 22,011:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 22,631: Line 22,022:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,640: Line 22,031:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 22,652: Line 22,043:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 22,682: Line 22,073:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 22,704: Line 22,095:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,726: Line 22,117:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 22,746: Line 22,137:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 22,766: Line 22,157:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 22,786: Line 22,177:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 22,808: Line 22,199:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 22,821: Line 22,212:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,827: Line 22,218:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 22,836: Line 22,227:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,843: Line 22,234:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 22,849: Line 22,240:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 22,860: Line 22,251:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,869: Line 22,260:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 22,882: Line 22,273:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 22,912: Line 22,303:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 22,933: Line 22,324:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 22,946: Line 22,337:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,952: Line 22,343:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 22,958: Line 22,349:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 22,964: Line 22,355:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 0C   LDX #12
|<pre>A6 00    LDX $00
A2 15   LDX #21
@X:
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0C   LDY #12
|<pre>A4 00    LDY $00
A0 15   LDY #21
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 22,990: Line 22,379:
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C; and requires support for unofficial opcodes
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
08      PHP
A0 0E    LDY #14
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,001: Line 22,399:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 0E    LDY #14
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,018: Line 22,407:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 23,030: Line 22,419:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A6 00    LDX $00
A2 0B   LDX #11
A2 0E   LDX #14
@X:
@X:
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A4 00    LDY $00
A0 0B   LDY #11
A0 0E   LDY #14
@Y:
@Y:
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,059: Line 22,446:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 23,072: Line 22,459:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,082: Line 22,469:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 23,095: Line 22,482:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 23,126: Line 22,513:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 23,148: Line 22,535:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 23,168: Line 22,555:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 23,188: Line 22,575:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 23,208: Line 22,595:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 23,230: Line 22,617:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 23,251: Line 22,638:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|}
|}
Line 23,264: Line 22,651:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 23,270: Line 22,657:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 23,279: Line 22,666:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,286: Line 22,673:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,296: Line 22,691:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,311: Line 22,698:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,321: Line 22,708:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,329: Line 22,716:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 23,343: Line 22,730:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,354: Line 22,741:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 23,367: Line 22,754:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 23,398: Line 22,785:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 23,420: Line 22,807:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 23,432: Line 22,819:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 23,447: Line 22,834:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,455: Line 22,842:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,462: Line 22,849:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 14    LDX #20
A2 14    LDX #20
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 14    LDY #20
A0 14    LDY #20
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 23,487: Line 22,874:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 23,499: Line 22,886:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 23,512: Line 22,899:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,522: Line 22,909:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,532: Line 22,919:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 23,546: Line 22,933:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,556: Line 22,943:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 23,570: Line 22,957:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 23,601: Line 22,988:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 23,623: Line 23,010:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 23,643: Line 23,030:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 23,663: Line 23,050:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 23,683: Line 23,070:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 23,705: Line 23,092:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 23,726: Line 23,113:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|}
|}
Line 23,740: Line 23,127:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,747: Line 23,134:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,754: Line 23,141:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,761: Line 23,148:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 23,771: Line 23,158:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,779: Line 23,166:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 23,786: Line 23,173:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,797: Line 23,184:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,805: Line 23,192:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,813: Line 23,200:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,821: Line 23,208:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 23,832: Line 23,219:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,841: Line 23,228:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 23,853: Line 23,240:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 23,884: Line 23,271:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 23,907: Line 23,294:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 23,920: Line 23,307:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
Line 23,926: Line 23,313:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 23,935: Line 23,322:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,942: Line 23,329:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 23,948: Line 23,335:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 23,959: Line 23,346:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,968: Line 23,355:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 23,979: Line 23,366:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,988: Line 23,375:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 24,002: Line 23,389:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 24,034: Line 23,421:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 24,057: Line 23,444:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers A, and Z&amp;N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 24,078: Line 23,465:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,099: Line 23,486:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,120: Line 23,507:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,141: Line 23,528:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|}
|}
Line 24,154: Line 23,541:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,160: Line 23,547:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 16    LDY #22
A0 16    LDY #22
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 16    LDX #22
A2 16    LDX #22
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|9 bytes
A2 16    LDX #22
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|-
|<pre>24 00    BIT $00
|<pre>48      PHA
A0 16   LDY #22
48      PHA
08      PHP
A0 14   LDY #20
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>48      PHA
A0 16    LDY #22
48      PHA
@Y:
08       PHP
88       DEY
A2 14   LDX #20
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A2 16   LDX #22
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|10 bytes
|-
|-
|<pre>04 00    NOP $00
|<pre>EA      NOP
A0 16   LDY #22
98      TYA
48      PHA
A0 14   LDY #20
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>EA      NOP
A2 16   LDX #22
08      PHP
A2 0D   LDX #13
@X:
@X:
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>EA      NOP
|-
08       PHP
|<pre>4C xx xx JMP *+3
A0 0D   LDY #13
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|<pre>4C xx xx JMP *+3
A0 16   LDY #22
@Y:
@Y:
24 00    BIT $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
D0 xx    BNE @Y
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
38      SEC
A2 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 15    LDY #21
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 14    LDX #20
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
98      TYA
48      PHA
A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 0D    LDY #13
@Y:
24 00    BIT $00
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 0D    LDX #13
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 24,322: Line 23,641:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,331: Line 23,650:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 24,344: Line 23,663:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 24,376: Line 23,695:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 24,400: Line 23,719:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre> || Clobbers Z&amp;N
76 00    ROR $00,X</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 24,413: Line 23,732:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 24,419: Line 23,738:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,428: Line 23,747:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,435: Line 23,754:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 24,445: Line 23,764:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,453: Line 23,772:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 24,460: Line 23,779:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,470: Line 23,789:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,478: Line 23,797:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 24,491: Line 23,810:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 24,523: Line 23,842:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 24,535: Line 23,854:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 17    LDY #23
|<pre>A0 17    LDY #23
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 24,550: Line 23,869:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,558: Line 23,877:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,565: Line 23,884:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0C   LDX #12
A6 00    LDX $00
A2 15   LDX #21
@X:
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0C   LDY #12
A4 00    LDY $00
A0 15   LDY #21
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 24,592: Line 23,909:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 24,604: Line 23,921:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,614: Line 23,931:
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,624: Line 23,941:
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 24,636: Line 23,953:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,646: Line 23,963:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,656: Line 23,973:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 24,670: Line 23,987:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,680: Line 23,997:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 24,694: Line 24,011:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 24,726: Line 24,043:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 24,734: Line 24,051:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
48      PHA
A0 16    LDY #22
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,740: Line 24,064:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
48      PHA
A0 16    LDY #22
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,754: Line 24,071:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,761: Line 24,078:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 24,771: Line 24,088:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,779: Line 24,096:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 24,786: Line 24,103:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,797: Line 24,114:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,806: Line 24,123:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,815: Line 24,132:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,823: Line 24,140:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 24,834: Line 24,151:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,843: Line 24,160:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 24,855: Line 24,172:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 24,888: Line 24,205:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 24,901: Line 24,218:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,907: Line 24,224:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,916: Line 24,233:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,923: Line 24,240:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 24,929: Line 24,246:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 24,940: Line 24,257:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,949: Line 24,266:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 24,960: Line 24,277:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,969: Line 24,286:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 24,984: Line 24,301:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,996: Line 24,313:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 25,011: Line 24,328:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 25,044: Line 24,361:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 25,058: Line 24,375:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,064: Line 24,381:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 17    LDX #23
A2 17    LDX #23
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 17    LDY #23
A0 17    LDY #23
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|9 bytes
A0 17    LDY #23
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|-
|<pre>24 00    BIT $00
|<pre>48      PHA
A2 17   LDX #23
48      PHA
08      PHP
A2 15   LDX #21
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>48      PHA
A0 17   LDY #23
48      PHA
08      PHP
A0 15   LDY #21
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>EA      NOP
A2 17    LDX #23
68      PLA
@X:
38      SEC
CA      DEX
A9 16    LDA #22
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
@A:
|-
|<pre>04 00    NOP $00
A0 17    LDY #23
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A2 17    LDX #23
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A2 17    LDX #23
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|<pre>4C xx xx JMP *+3
A0 17    LDY #23
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
|<pre>A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
18      CLC
90 00    BCC *+2
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, Z&amp;N, and C
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 10    LDX #16
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 10    LDY #16
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 15    LDY #21
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 25,194: Line 24,435:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,204: Line 24,445:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,214: Line 24,455:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,223: Line 24,464:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 25,236: Line 24,477:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,246: Line 24,487:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 25,259: Line 24,500:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 25,292: Line 24,533:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 25,305: Line 24,546:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 25,311: Line 24,552:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 25,321: Line 24,562:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,329: Line 24,570:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,336: Line 24,577:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,346: Line 24,587:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,354: Line 24,595:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 25,367: Line 24,608:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 25,380: Line 24,621:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 25,413: Line 24,654:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 25,425: Line 24,666:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 18    LDX #24
|<pre>A2 18    LDX #24
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 25,440: Line 24,681:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,448: Line 24,689:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,455: Line 24,696:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 16    LDX #22
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 16    LDY #22
A0 16    LDY #22
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
24 00    BIT $00
A2 16    LDX #22
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 25,480: Line 24,721:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 25,492: Line 24,733:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 25,505: Line 24,746:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,515: Line 24,756:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,525: Line 24,766:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 25,539: Line 24,780:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,550: Line 24,791:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 25,564: Line 24,805:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 25,598: Line 24,839:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 25,612: Line 24,853:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,619: Line 24,860:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 25,628: Line 24,869:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,639: Line 24,880:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,648: Line 24,889:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,657: Line 24,898:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 25,668: Line 24,909:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,677: Line 24,918:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 25,689: Line 24,930:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 25,723: Line 24,964:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 25,736: Line 24,977:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,742: Line 24,983:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 25,751: Line 24,992:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,758: Line 24,999:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 25,764: Line 25,005:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 25,775: Line 25,016:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,784: Line 25,025:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 25,795: Line 25,036:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,804: Line 25,045:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 25,818: Line 25,059:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 25,832: Line 25,073:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,844: Line 25,085:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 25,859: Line 25,100:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 25,893: Line 25,134:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 25,905: Line 25,146:
@X = * - 1
@X = * - 1
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 25,913: Line 25,154:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A4 00    LDY $00
A0 18   LDY #24
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>24 00    BIT $00
A0 18    LDY #24
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A0 18    LDY #24
A0 18    LDY #24
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>04 00    NOP $00
A0 18    LDY #24
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
A0 11    LDY #17
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,959: Line 25,172:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 16    LDX #22
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,968: Line 25,190:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 16    LDX #22
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 25,989: Line 25,202:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,999: Line 25,212:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,009: Line 25,222:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 26,022: Line 25,235:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,032: Line 25,245:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 26,045: Line 25,258:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 26,079: Line 25,292:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 26,092: Line 25,305:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 26,098: Line 25,311:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 26,107: Line 25,320:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,114: Line 25,327:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 26,124: Line 25,337:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,132: Line 25,345:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,139: Line 25,352:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,149: Line 25,362:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,157: Line 25,370:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 26,170: Line 25,383:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 26,183: Line 25,396:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 26,218: Line 25,431:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 26,230: Line 25,443:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 19    LDX #25
|<pre>A2 19    LDX #25
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 26,246: Line 25,459:
28      PLP
28      PLP
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,254: Line 25,467:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,261: Line 25,474:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 17    LDX #23
A2 17    LDX #23
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 26,278: Line 25,491:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 26,290: Line 25,503:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 26,303: Line 25,516:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,313: Line 25,526:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,323: Line 25,536:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 26,337: Line 25,550:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,348: Line 25,561:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 26,362: Line 25,575:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 26,397: Line 25,610:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 26,410: Line 25,623:
@X = * - 1
@X = * - 1
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 26,418: Line 25,631:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 12    LDX #18
|<pre>A2 12    LDX #18
Line 26,424: Line 25,637:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 26,434: Line 25,647:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,442: Line 25,655:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 26,449: Line 25,662:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,460: Line 25,673:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,468: Line 25,681:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 26,479: Line 25,692:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,488: Line 25,701:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 26,500: Line 25,713:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 26,535: Line 25,748:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 26,548: Line 25,761:
@X = * - 1
@X = * - 1
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 26,556: Line 25,769:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,562: Line 25,775:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 26,571: Line 25,784:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,578: Line 25,791:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 26,584: Line 25,797:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 26,595: Line 25,808:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,604: Line 25,817:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 26,615: Line 25,828:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,624: Line 25,837:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 26,639: Line 25,852:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,651: Line 25,864:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 26,666: Line 25,879:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 26,701: Line 25,914:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 26,714: Line 25,927:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
Line 26,720: Line 25,933:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136
Line 26,727: Line 25,940:
68      PLA
68      PLA
68      PLA
68      PLA
30 xx    BMI @Y</pre> || Clobbers A, Y, S, and Z&amp;N
30 xx    BMI @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
A2 12   LDX #18
A2 19   LDX #25
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A4 00    LDY $00
A0 12   LDY #18
A0 19   LDY #25
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 26,752: Line 25,963:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,763: Line 25,974:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,772: Line 25,983:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 26,783: Line 25,994:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,792: Line 26,003:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 26,805: Line 26,016:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 26,818: Line 26,029:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 26,854: Line 26,065:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 26,868: Line 26,079:
@X = * - 1
@X = * - 1
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 26,874: Line 26,085:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 26,880: Line 26,091:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 26,889: Line 26,100:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,896: Line 26,107:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 26,906: Line 26,117:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,914: Line 26,125:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,921: Line 26,132:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,931: Line 26,142:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,939: Line 26,150:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 26,952: Line 26,163:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 26,965: Line 26,176:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 27,001: Line 26,212:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,009: Line 26,220:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 1A    LDY #26
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1A    LDX #26
|<pre>A2 1A    LDX #26
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 1A    LDY #26
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 27,027: Line 26,238:
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 27,037: Line 26,248:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 27,044: Line 26,255:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 18    LDY #24
A0 18    LDY #24
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 27,061: Line 26,272:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 27,073: Line 26,284:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,085: Line 26,296:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,095: Line 26,306:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 27,109: Line 26,320:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 27,123: Line 26,334:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 27,159: Line 26,370:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,173: Line 26,384:
@X = * - 1
@X = * - 1
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 27,183: Line 26,394:
@X = * - 1
@X = * - 1
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,190: Line 26,401:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,197: Line 26,408:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,204: Line 26,415:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 27,214: Line 26,425:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,222: Line 26,433:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 27,229: Line 26,440:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 27,240: Line 26,451:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,249: Line 26,460:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,258: Line 26,469:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,266: Line 26,477:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 27,277: Line 26,488:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,286: Line 26,497:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,298: Line 26,509:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 27,334: Line 26,545:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,342: Line 26,553:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,347: Line 26,564:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 27,362: Line 26,573:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,369: Line 26,580:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 27,375: Line 26,586:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 27,386: Line 26,597:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,395: Line 26,606:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,406: Line 26,617:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,415: Line 26,626:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 27,430: Line 26,641:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,442: Line 26,653:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 27,457: Line 26,668:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 27,494: Line 26,705:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,507: Line 26,718:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 13    LDX #19
|<pre>A2 13    LDX #19
Line 27,513: Line 26,724:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 27,523: Line 26,734:
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 27,533: Line 26,744:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,541: Line 26,752:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 27,551: Line 26,762:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 27,563: Line 26,774:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,572: Line 26,783:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,585: Line 26,796:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,595: Line 26,806:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 27,608: Line 26,819:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 27,645: Line 26,856:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,653: Line 26,864:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 27,658: Line 26,875:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A2 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
|-
|-
!colspan="2"|7 bytes
|<pre>EA      NOP
EA      NOP
A0 1A    LDY #26
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,673: Line 26,891:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A0 1A    LDY #26
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 27,691: Line 26,902:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,699: Line 26,910:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,707: Line 26,918:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,714: Line 26,925:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 27,724: Line 26,935:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,732: Line 26,943:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 27,745: Line 26,956:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 27,758: Line 26,969:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 27,795: Line 27,006:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,807: Line 27,018:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1B    LDX #27
|<pre>A2 1B    LDX #27
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 27,821: Line 27,032:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,829: Line 27,040:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,837: Line 27,048:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 27,847: Line 27,058:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,855: Line 27,066:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 27,866: Line 27,077:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,875: Line 27,086:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 27,888: Line 27,099:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 27,925: Line 27,136:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,938: Line 27,149:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 27,944: Line 27,155:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 27,952: Line 27,163:
A5 00    LDA $00
A5 00    LDA $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 27,958: Line 27,169:
A5 00    LDA $00
A5 00    LDA $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A2 11    LDX #17
@X:
A4 00    LDY $00
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 27,964: Line 27,181:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 27,970: Line 27,187:
24 00    BIT $00
24 00    BIT $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 27,976: Line 27,193:
85 xx    STA @zptemp
85 xx    STA @zptemp
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 27,982: Line 27,199:
85 xx    STA @zptemp
85 xx    STA @zptemp
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 27,988: Line 27,205:
04 00    NOP $00
04 00    NOP $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 27,994: Line 27,211:
04 00    NOP $00
04 00    NOP $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
A2 13    LDX #19
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 13    LDY #19
@Y:
EA      NOP
EA      NOP
A0 1A    LDY #26
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,021: Line 27,236:
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,028: Line 27,243:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,039: Line 27,254:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,048: Line 27,263:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,057: Line 27,272:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,065: Line 27,280:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 28,076: Line 27,291:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,085: Line 27,300:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 28,097: Line 27,312:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 28,135: Line 27,350:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 28,148: Line 27,363:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,154: Line 27,369:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,163: Line 27,385:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 28,176: Line 27,391:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,188: Line 27,403:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 28,200: Line 27,415:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,209: Line 27,424:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,218: Line 27,433:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 28,229: Line 27,444:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,238: Line 27,453:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 28,252: Line 27,467:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 28,266: Line 27,481:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 28,304: Line 27,519:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 28,317: Line 27,532:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,323: Line 27,538:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 88    LDY #136
|<pre>A4 00    LDY $00
@Y = * - 1
; ^ Hides DEY
08      PHP
28      PLP
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and writes in stack
|-
|<pre>20 xx xx JSR @rts15
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; requires @rts15; and writes in stack
|-
|<pre>A5 00    LDA $00
A2 1B    LDX #27
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>A5 00    LDA $00
A0 1B   LDY #27
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>24 00    BIT $00
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>A6 00    LDX $00
A2 1B    LDX #27
A2 1B    LDX #27
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>85 xx    STA @zptemp
!colspan="2"|8 bytes
A0 1B    LDY #27
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A2 1B    LDX #27
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A2 1B    LDX #27
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A0 1B    LDY #27
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A2 1B    LDX #27
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|<pre>4C xx xx JMP *+3
A0 1B    LDY #27
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 28,408: Line 27,561:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 1A    LDY #26
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,438: Line 27,573:
; ^ Hides INX
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 28,445: Line 27,580:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, C, and V
D0 xx    BNE @A</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 28,452: Line 27,587:
85 xx    STA @zptemp
85 xx    STA @zptemp
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C; and requires @zptemp
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,462: Line 27,597:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,471: Line 27,615:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,488: Line 27,623:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 28,495: Line 27,630:
04 00    NOP $00
04 00    NOP $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C; and requires support for unofficial opcodes
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 28,507: Line 27,642:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,513: Line 27,648:
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 19    LDX #25
A0 19    LDY #25
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,523: Line 27,658:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 19    LDY #25
A2 19    LDX #25
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 28,535: Line 27,670:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 28,548: Line 27,683:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,558: Line 27,693:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 28,571: Line 27,706:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 28,609: Line 27,744:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 28,622: Line 27,757:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,628: Line 27,763:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 28,637: Line 27,772:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,644: Line 27,779:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 1A    LDY #26
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,654: Line 27,797:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 1A    LDY #26
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,669: Line 27,804:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,679: Line 27,814:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,687: Line 27,822:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 28,700: Line 27,835:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 28,713: Line 27,848:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 28,751: Line 27,886:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 28,763: Line 27,898:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1C    LDX #28
|<pre>A2 1C    LDX #28
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 28,778: Line 27,913:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,786: Line 27,921:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,793: Line 27,928:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,802: Line 27,937:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 28,814: Line 27,949:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 28,827: Line 27,962:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,837: Line 27,972:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,847: Line 27,982:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 28,861: Line 27,996:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,872: Line 28,007:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 28,886: Line 28,021:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 28,925: Line 28,060:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 28,939: Line 28,074:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,946: Line 28,081:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,953: Line 28,088:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,960: Line 28,095:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 28,970: Line 28,105:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,978: Line 28,113:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,985: Line 28,120:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A0 1A    LDY #26
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A2 1A    LDX #26
A2 1A    LDX #26
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
68       PLA
28       PLP</pre>||Clobbers X; and writes in stack
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,005: Line 28,149:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A2 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,022: Line 28,157:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 29,035: Line 28,170:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,044: Line 28,179:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 29,056: Line 28,191:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 29,095: Line 28,230:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 29,108: Line 28,243:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,114: Line 28,249:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,123: Line 28,258:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,130: Line 28,265:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 29,136: Line 28,271:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 29,147: Line 28,282:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,156: Line 28,291:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 29,169: Line 28,304:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 29,208: Line 28,343:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 29,221: Line 28,356:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,227: Line 28,362:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 1C    LDX #28
A2 1C    LDX #28
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|9 bytes
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>24 00    BIT $00
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>A2 0D    LDX #13
@X:
EA      NOP
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>A0 0D    LDY #13
@Y:
EA      NOP
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,305: Line 28,386:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,313: Line 28,394:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,321: Line 28,402:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1A    LDX #26
A0 1A    LDY #26
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
68      PLA
68      PLA
AA       TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,342: Line 28,423:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 29,355: Line 28,436:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,365: Line 28,446:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 29,378: Line 28,459:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 29,417: Line 28,498:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 29,430: Line 28,511:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 12    LDX #18
|<pre>A2 12    LDX #18
Line 29,436: Line 28,517:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
Line 29,442: Line 28,523:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
Line 29,448: Line 28,529:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,457: Line 28,538:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
Line 29,464: Line 28,545:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 29,474: Line 28,555:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,482: Line 28,563:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,489: Line 28,570:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 29,499: Line 28,580:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,507: Line 28,588:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 29,521: Line 28,602:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers S, and Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 29,535: Line 28,616:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,546: Line 28,627:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 29,559: Line 28,640:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 29,599: Line 28,680:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 29,611: Line 28,692:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1D    LDY #29
|<pre>A0 1D    LDY #29
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 29,626: Line 28,707:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,634: Line 28,715:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,641: Line 28,722:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 1B    LDX #27
A2 1B    LDX #27
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 29,666: Line 28,747:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>68      PLA
|<pre>68      PLA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1A    LDX #26
A0 1A    LDY #26
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
68      PLA
68      PLA
AA       TAX</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8       TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 29,689: Line 28,770:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,698: Line 28,779:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,707: Line 28,788:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,717: Line 28,798:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,726: Line 28,807:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 29,740: Line 28,821:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 29,754: Line 28,835:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 29,794: Line 28,875:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 29,808: Line 28,889:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,815: Line 28,896:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,822: Line 28,903:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,829: Line 28,910:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 29,839: Line 28,920:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,847: Line 28,928:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 29,854: Line 28,935:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 29,865: Line 28,946:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,874: Line 28,955:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,883: Line 28,964:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 29,891: Line 28,972:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 29,902: Line 28,983:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,911: Line 28,992:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 29,923: Line 29,004:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 29,963: Line 29,044:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 29,976: Line 29,057:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 15    LDY #21
|<pre>A0 15    LDY #21
Line 29,982: Line 29,063:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,991: Line 29,079:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 30,004: Line 29,085:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 30,015: Line 29,096:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,024: Line 29,105:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 30,035: Line 29,116:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,044: Line 29,125:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 30,059: Line 29,140:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers S, and Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers S, and Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 30,074: Line 29,155:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,086: Line 29,167:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 30,101: Line 29,182:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 30,141: Line 29,222:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 30,154: Line 29,235:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,160: Line 29,241:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 1D    LDX #29
A2 1D    LDX #29
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|9 bytes
A0 1D    LDY #29
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|-
|<pre>24 00    BIT $00
|<pre>48      PHA
A2 1D   LDX #29
48      PHA
08      PHP
A2 1B   LDX #27
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>48      PHA
A2 1D    LDX #29
48      PHA
@X:
08       PHP
CA       DEX
A0 1B   LDY #27
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A0 1D   LDY #29
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>EA      NOP
A0 1D    LDY #29
68      PLA
@Y:
38      SEC
88      DEY
A9 1C    LDA #28
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
@A:
|-
E9 01    SBC #1
|<pre>04 00    NOP $00
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
A2 1D    LDX #29
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
26 00    ROL $00
66 00    ROR $00
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N
|-
|<pre>4C xx xx JMP *+3
A2 1D    LDX #29
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
EA      NOP
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 1B    LDY #27
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 1B    LDX #27
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 30,274: Line 29,295:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,284: Line 29,305:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,294: Line 29,315:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,303: Line 29,324:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1A    LDX #26
A0 1A    LDY #26
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,326: Line 29,347:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 30,339: Line 29,360:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 30,380: Line 29,401:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 30,393: Line 29,414:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 30,399: Line 29,420:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,408: Line 29,429:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,415: Line 29,436:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,425: Line 29,454:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 30,440: Line 29,461:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 30,450: Line 29,471:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,458: Line 29,479:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 30,471: Line 29,492:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 30,512: Line 29,533:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 30,524: Line 29,545:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1E    LDX #30
|<pre>A2 1E    LDX #30
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
08      PHP
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,539: Line 29,568:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,554: Line 29,575:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
24 00    BIT $00
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 30,579: Line 29,600:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 30,591: Line 29,612:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 30,604: Line 29,625:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,614: Line 29,635:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,624: Line 29,645:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 30,630: Line 29,651:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1A    LDX #26
A0 1A    LDY #26
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,649: Line 29,670:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 30,663: Line 29,684:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 30,704: Line 29,725:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 30,718: Line 29,739:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,725: Line 29,746:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,732: Line 29,753:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,739: Line 29,760:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 30,749: Line 29,770:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,757: Line 29,778:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 30,764: Line 29,785:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 30,775: Line 29,796:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,784: Line 29,805:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,793: Line 29,814:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,801: Line 29,822:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 30,812: Line 29,833:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,821: Line 29,842:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 30,833: Line 29,854:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 30,874: Line 29,895:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 30,887: Line 29,908:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,893: Line 29,914:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,902: Line 29,923:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,909: Line 29,930:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 30,915: Line 29,936:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 30,926: Line 29,947:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,935: Line 29,956:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 30,946: Line 29,967:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,955: Line 29,976:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 30,968: Line 29,989:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 30,981: Line 30,002:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,987: Line 30,008:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 30,993: Line 30,014:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 30,999: Line 30,020:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 11   LDX #17
|<pre>A4 00    LDY $00
A0 1E    LDY #30
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 1E   LDX #30
@X:
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
!colspan="2"|9 bytes
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|9 bytes
|<pre>48      PHA
48      PHA
08      PHP
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,026: Line 30,054:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,043: Line 30,062:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 31,055: Line 30,074:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,065: Line 30,084:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,075: Line 30,094:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,084: Line 30,103:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 31,097: Line 30,116:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,107: Line 30,126:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 31,120: Line 30,139:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 31,162: Line 30,181:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 31,175: Line 30,194:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 16    LDX #22
|<pre>A2 16    LDX #22
Line 31,181: Line 30,200:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 31,190: Line 30,209:
; ^ Hides NOP
; ^ Hides NOP
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 31,200: Line 30,219:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,208: Line 30,227:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 31,218: Line 30,237:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,226: Line 30,245:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 31,239: Line 30,258:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 31,252: Line 30,271:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 31,260: Line 30,279:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 1F    LDY #31
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1F    LDX #31
|<pre>A2 1F    LDX #31
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 1F    LDY #31
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 31,279: Line 30,298:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,287: Line 30,306:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,294: Line 30,313:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 1D    LDX #29
A2 1D    LDX #29
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 31,319: Line 30,338:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 31,331: Line 30,350:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 31,344: Line 30,363:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,354: Line 30,373:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,364: Line 30,383:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 31,378: Line 30,397:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,389: Line 30,408:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 31,403: Line 30,422:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 31,445: Line 30,464:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre> || Clobbers A, S, and Z&amp;N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 31,459: Line 30,478:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,466: Line 30,485:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 31,475: Line 30,494:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 31,486: Line 30,505:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,495: Line 30,514:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,504: Line 30,523:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 31,515: Line 30,534:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,524: Line 30,543:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 31,536: Line 30,555:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 31,549: Line 30,568:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,555: Line 30,574:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 1E    LDX #30
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,564: Line 30,590:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1E    LDX #30
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 31,577: Line 30,596:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 31,588: Line 30,607:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,597: Line 30,616:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 31,608: Line 30,627:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,617: Line 30,636:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 31,632: Line 30,651:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,644: Line 30,663:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 31,659: Line 30,678:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 31,672: Line 30,691:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,678: Line 30,697:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A6 00    LDX $00
A2 1F   LDX #31
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>A5 00    LDA $00
A0 1F    LDY #31
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>24 00    BIT $00
A0 1F    LDY #31
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>24 00    BIT $00
A2 1F    LDX #31
A2 1F    LDX #31
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>A4 00   LDY $00
A2 1F    LDX #31
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A0 1F   LDY #31
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A2 1F    LDX #31
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
A2 16    LDX #22
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
A0 16    LDY #22
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 31,754: Line 30,721:
; ^ Hides NOP
; ^ Hides NOP
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 31,764: Line 30,731:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 1D    LDX #29
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,773: Line 30,749:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 1D    LDX #29
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 31,794: Line 30,761:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,804: Line 30,771:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,814: Line 30,781:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 31,827: Line 30,794:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,837: Line 30,804:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 31,850: Line 30,817:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 31,863: Line 30,830:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 31,869: Line 30,836:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 31,878: Line 30,845:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,885: Line 30,852:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 1E    LDY #30
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,895: Line 30,870:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 1E    LDY #30
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,910: Line 30,877:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 31,920: Line 30,887:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,928: Line 30,895:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 31,941: Line 30,908:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 31,954: Line 30,921:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 31,966: Line 30,933:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 20    LDX #32
|<pre>A2 20    LDX #32
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
08      PHP
A0 1E    LDY #30
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,981: Line 30,956:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 1E    LDY #30
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,996: Line 30,963:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 11   LDX #17
A6 00    LDX $00
A2 1E   LDX #30
@X:
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 11   LDY #17
A4 00    LDY $00
A0 1E   LDY #30
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 32,023: Line 30,988:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 32,035: Line 31,000:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 32,048: Line 31,013:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,058: Line 31,023:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,068: Line 31,033:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 32,082: Line 31,047:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,093: Line 31,058:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 32,107: Line 31,072:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 32,120: Line 31,085:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 17    LDX #23
|<pre>A2 17    LDX #23
Line 32,126: Line 31,091:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 32,136: Line 31,101:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,144: Line 31,109:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 32,151: Line 31,116:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 32,162: Line 31,127:
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,171: Line 31,136:
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,179: Line 31,144:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 32,191: Line 31,156:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 32,204: Line 31,169:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,210: Line 31,175:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 32,219: Line 31,184:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,226: Line 31,191:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 32,232: Line 31,197:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 32,243: Line 31,208:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,252: Line 31,217:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 32,263: Line 31,228:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,272: Line 31,237:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 32,287: Line 31,252:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,299: Line 31,264:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 32,314: Line 31,279:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 32,327: Line 31,292:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,333: Line 31,298:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
A2 17   LDX #23
A2 20   LDX #32
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A4 00    LDY $00
A0 17   LDY #23
A0 20   LDY #32
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 32,358: Line 31,321:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 32,369: Line 31,332:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,378: Line 31,341:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 32,389: Line 31,352:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,398: Line 31,361:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 32,411: Line 31,374:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 32,424: Line 31,387:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 32,437: Line 31,400:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 32,443: Line 31,406:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 32,452: Line 31,415:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,459: Line 31,422:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 32,469: Line 31,432:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,477: Line 31,440:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,484: Line 31,447:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 32,494: Line 31,457:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,502: Line 31,465:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 32,515: Line 31,478:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 32,528: Line 31,491:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 32,540: Line 31,503:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 21    LDX #33
|<pre>A2 21    LDX #33
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 32,555: Line 31,518:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,563: Line 31,526:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,570: Line 31,533:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 1F    LDX #31
A2 1F    LDX #31
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 32,595: Line 31,558:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 32,607: Line 31,570:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 32,619: Line 31,582:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,629: Line 31,592:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 32,643: Line 31,606:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 32,657: Line 31,620:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 32,671: Line 31,634:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,678: Line 31,641:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,685: Line 31,648:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,692: Line 31,655:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 32,702: Line 31,665:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,710: Line 31,673:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 32,717: Line 31,680:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 32,728: Line 31,691:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,737: Line 31,700:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,746: Line 31,709:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,754: Line 31,717:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 32,765: Line 31,728:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,774: Line 31,737:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 32,786: Line 31,749:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 32,799: Line 31,762:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,805: Line 31,768:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 32,814: Line 31,777:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,821: Line 31,784:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 32,827: Line 31,790:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 32,838: Line 31,801:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,847: Line 31,810:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 32,858: Line 31,821:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,867: Line 31,830:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 32,882: Line 31,845:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,894: Line 31,857:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 32,909: Line 31,872:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 32,922: Line 31,885:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 18    LDX #24
|<pre>A2 18    LDX #24
Line 32,928: Line 31,891:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 32,938: Line 31,901:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,946: Line 31,909:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 32,956: Line 31,919:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 32,968: Line 31,931:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,977: Line 31,940:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 32,990: Line 31,953:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 33,003: Line 31,966:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 33,009: Line 31,972:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 33,018: Line 31,981:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,025: Line 31,988:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 33,035: Line 31,998:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,043: Line 32,006:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,050: Line 32,013:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 33,060: Line 32,023:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,068: Line 32,031:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 33,081: Line 32,044:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 33,094: Line 32,057:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 33,106: Line 32,069:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 22    LDX #34
|<pre>A2 22    LDX #34
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 33,120: Line 32,083:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,128: Line 32,091:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,136: Line 32,099:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A4 00    LDY $00
A0 17   LDY #23
A0 20   LDY #32
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A6 00    LDX $00
A2 17   LDX #23
A2 20   LDX #32
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 33,167: Line 32,128:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,176: Line 32,137:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 33,189: Line 32,150:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 33,202: Line 32,163:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 13    LDX #19
|<pre>A2 13    LDX #19
Line 33,208: Line 32,169:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 33,217: Line 32,178:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 13    LDX #19
|<pre>A2 13    LDX #19
Line 33,224: Line 32,185:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 33,233: Line 32,194:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 33,244: Line 32,205:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,253: Line 32,214:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,262: Line 32,223:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,270: Line 32,231:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 33,281: Line 32,242:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,290: Line 32,251:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 33,302: Line 32,263:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 33,315: Line 32,276:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,321: Line 32,282:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 33,330: Line 32,291:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,337: Line 32,298:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 33,343: Line 32,304:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 33,355: Line 32,316:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,364: Line 32,325:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,373: Line 32,334:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 33,384: Line 32,345:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,393: Line 32,354:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 33,407: Line 32,368:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 33,421: Line 32,382:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 33,434: Line 32,395:
; ^ Hides INX
; ^ Hides INX
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 33,442: Line 32,403:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A4 00    LDY $00
A0 22   LDY #34
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>24 00    BIT $00
A0 22    LDY #34
A0 22    LDY #34
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>85 xx    STA @zptemp
A0 22    LDY #34
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A0 22    LDY #34
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
A0 13    LDY #19
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 33,488: Line 32,421:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,497: Line 32,430:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,506: Line 32,439:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 33,518: Line 32,451:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,528: Line 32,461:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,538: Line 32,471:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 33,551: Line 32,484:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,561: Line 32,494:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 33,574: Line 32,507:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 33,587: Line 32,520:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 33,593: Line 32,526:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 33,602: Line 32,535:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,609: Line 32,542:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 33,619: Line 32,552:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,627: Line 32,560:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,634: Line 32,567:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 33,644: Line 32,577:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,652: Line 32,585:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 33,665: Line 32,598:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 33,678: Line 32,611:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 33,690: Line 32,623:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 23    LDX #35
|<pre>A2 23    LDX #35
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 33,705: Line 32,638:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,713: Line 32,646:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,720: Line 32,653:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 33,729: Line 32,662:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 33,741: Line 32,674:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 33,754: Line 32,687:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,764: Line 32,697:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,774: Line 32,707:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 33,788: Line 32,721:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,799: Line 32,732:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 33,813: Line 32,746:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 33,821: Line 32,754:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 16    LDY #22
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 16    LDX #22
|<pre>A2 16    LDX #22
Line 33,826: Line 32,765:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 16    LDY #22
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 16   LDX #22
|<pre>A6 00    LDX $00
@X:
A2 E8   LDX #232
A5 00    LDA $00
@X = * - 1
; ^ Hides INX
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
Line 33,846: Line 32,780:
A5 00    LDA $00
A5 00    LDA $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A2 16    LDX #22
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
Line 33,858: Line 32,786:
24 00    BIT $00
24 00    BIT $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
Line 33,864: Line 32,792:
85 xx    STA @zptemp
85 xx    STA @zptemp
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|<pre>A2 16    LDX #22
@X:
85 xx    STA @zptemp
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
Line 33,876: Line 32,798:
04 00    NOP $00
04 00    NOP $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|<pre>A2 16    LDX #22
@X:
04 00    NOP $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 33,892: Line 32,808:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>68      PLA
@X:
38      SEC
EA      NOP
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>68      PLA
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 33,918: Line 32,826:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A0 21    LDY #33
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,927: Line 32,844:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A0 21    LDY #33
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,944: Line 32,852:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 33,955: Line 32,863:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,964: Line 32,872:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 33,976: Line 32,884:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 33,989: Line 32,897:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,995: Line 32,903:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 34,004: Line 32,912:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,011: Line 32,919:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 34,017: Line 32,925:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 34,028: Line 32,936:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,037: Line 32,945:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 34,050: Line 32,958:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 34,058: Line 32,966:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 23    LDX #35
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,069: Line 32,971:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>48      PHA
|-
|<pre>A5 00    LDA $00
A2 23    LDX #35
A2 23    LDX #35
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
!colspan="2"|7 bytes
A0 23    LDY #35
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|-
|<pre>24 00    BIT $00
|<pre>A6 00    LDX $00
A0 23    LDY #35
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>24 00    BIT $00
A2 23    LDX #35
A2 23    LDX #35
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>A4 00   LDY $00
A2 23    LDX #35
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A0 23   LDY #35
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A0 23    LDY #35
A0 23    LDY #35
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>04 00    NOP $00
A2 23    LDX #35
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A0 23    LDY #35
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
|<pre>4C xx xx JMP *+3
A2 23    LDX #35
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|<pre>18      CLC
90 00    BCC *+2
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and C
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 34,148: Line 33,000:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 13    LDX #19
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,168: Line 33,011:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
A2 10   LDX #16
A2 13   LDX #19
@X:
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X; and writes in stack
|<pre>EA      NOP
A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 34,193: Line 33,027:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, C, and V
D0 xx    BNE @A</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 34,200: Line 33,034:
85 xx    STA @zptemp
85 xx    STA @zptemp
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C; and requires @zptemp
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,208: Line 33,042:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 34,215: Line 33,049:
04 00    NOP $00
04 00    NOP $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C; and requires support for unofficial opcodes
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 34,227: Line 33,061:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 34,236: Line 33,070:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 34,249: Line 33,083:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,259: Line 33,093:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 34,272: Line 33,106:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 34,285: Line 33,119:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 34,291: Line 33,125:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 34,300: Line 33,134:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,307: Line 33,141:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 34,317: Line 33,151:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,325: Line 33,159:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,332: Line 33,166:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 34,342: Line 33,176:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,350: Line 33,184:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 34,364: Line 33,198:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,375: Line 33,209:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 34,388: Line 33,222:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 34,400: Line 33,234:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 24    LDX #36
|<pre>A2 24    LDX #36
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 34,415: Line 33,249:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 34,425: Line 33,259:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,432: Line 33,266:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 34,440: Line 33,274:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C; and requires support for unofficial opcodes
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 22    LDY #34
A0 22    LDY #34
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 34,457: Line 33,291:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 34,469: Line 33,303:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 34,481: Line 33,315:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,491: Line 33,325:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 34,505: Line 33,339:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 34,519: Line 33,353:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 34,533: Line 33,367:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,540: Line 33,374:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,547: Line 33,381:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,554: Line 33,388:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 34,564: Line 33,398:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,572: Line 33,406:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 34,579: Line 33,413:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 34,590: Line 33,424:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,599: Line 33,433:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,608: Line 33,442:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,616: Line 33,450:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 34,627: Line 33,461:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,636: Line 33,470:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 34,648: Line 33,482:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 34,656: Line 33,490:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 1A    LDY #26
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1A    LDX #26
|<pre>A2 1A    LDX #26
Line 34,661: Line 33,501:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 1A    LDY #26
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 34,676: Line 33,510:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,683: Line 33,517:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 34,689: Line 33,523:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 34,700: Line 33,534:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,709: Line 33,543:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 34,720: Line 33,554:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,729: Line 33,563:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 34,744: Line 33,578:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,756: Line 33,590:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 34,771: Line 33,605:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 34,784: Line 33,618:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,790: Line 33,624:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 24    LDX #36
A2 24    LDX #36
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 24    LDY #36
A0 24    LDY #36
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|8 bytes
A0 24    LDY #36
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>24 00    BIT $00
A2 24    LDX #36
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A2 24    LDX #36
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A0 24    LDY #36
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A0 24    LDY #36
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A2 24    LDX #36
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A0 24    LDY #36
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
|<pre>4C xx xx JMP *+3
A2 24    LDX #36
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,863: Line 33,649:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 16    LDX #22
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,881: Line 33,659:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
EA      NOP
A2 16   LDX #22
EA      NOP
EA      NOP
A2 23   LDX #35
@X:
@X:
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X; and writes in stack
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 23    LDY #35
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,907: Line 33,675:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 34,919: Line 33,687:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,928: Line 33,696:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 34,941: Line 33,709:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,951: Line 33,719:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 34,964: Line 33,732:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 34,977: Line 33,745:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 17    LDX #23
|<pre>A2 17    LDX #23
Line 34,983: Line 33,751:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 34,989: Line 33,757:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 34,995: Line 33,763:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
A2 1A    LDX #26
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,004: Line 33,779:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 1A    LDX #26
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 35,021: Line 33,789:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,029: Line 33,797:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 35,036: Line 33,804:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 35,046: Line 33,814:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,054: Line 33,822:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 35,067: Line 33,835:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 35,079: Line 33,847:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 25    LDX #37
|<pre>A2 25    LDX #37
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 35,094: Line 33,862:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,102: Line 33,870:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,109: Line 33,877:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 23    LDX #35
A2 23    LDX #35
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 23    LDY #35
A0 23    LDY #35
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 35,134: Line 33,902:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 35,146: Line 33,914:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 35,157: Line 33,925:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,166: Line 33,934:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,175: Line 33,943:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,185: Line 33,953:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,194: Line 33,962:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 35,208: Line 33,976:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 35,222: Line 33,990:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 35,236: Line 34,004:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,243: Line 34,011:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,250: Line 34,018:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,257: Line 34,025:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 35,267: Line 34,035:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,275: Line 34,043:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 35,282: Line 34,050:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 35,293: Line 34,061:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,302: Line 34,070:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,311: Line 34,079:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,319: Line 34,087:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 35,330: Line 34,098:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,339: Line 34,107:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 35,351: Line 34,119:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 35,364: Line 34,132:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,370: Line 34,138:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 35,379: Line 34,147:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,386: Line 34,154:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 35,392: Line 34,160:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 35,403: Line 34,171:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,412: Line 34,180:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,422: Line 34,190:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,432: Line 34,200:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 35,443: Line 34,211:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,452: Line 34,220:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 35,466: Line 34,234:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 35,479: Line 34,247:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,485: Line 34,253:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 25    LDX #37
A2 25    LDX #37
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 25    LDY #37
A0 25    LDY #37
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|9 bytes
A0 25    LDY #37
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|-
|<pre>24 00    BIT $00
|<pre>48      PHA
A2 25   LDX #37
48      PHA
08      PHP
A2 23   LDX #35
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>A0 88    LDY #136
|<pre>48      PHA
@Y = * - 1
48      PHA
; ^ Hides DEY
08       PHP
20 xx xx JSR @rts14
A0 23   LDY #35
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; requires @rts14; and writes in stack
|-
|<pre>85 xx    STA @zptemp
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A0 25   LDY #37
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>EA      NOP
A0 25    LDY #37
68      PLA
@Y:
38      SEC
88      DEY
A9 24    LDA #36
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A2 25    LDX #37
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A2 25    LDX #37
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|<pre>4C xx xx JMP *+3
A0 25    LDY #37
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
|<pre>A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
08      PHP
28      PLP
08      PHP
28      PLP
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; and writes in stack
|-
|<pre>20 xx xx JSR @rts15
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; requires @rts15; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 1A    LDY #26
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 1A    LDX #26
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 23    LDY #35
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 23    LDX #35
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 24    LDA #36
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 35,629: Line 34,307:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,639: Line 34,317:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,649: Line 34,327:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,658: Line 34,336:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 35,671: Line 34,349:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,681: Line 34,359:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 35,694: Line 34,372:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 35,707: Line 34,385:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1B    LDX #27
|<pre>A2 1B    LDX #27
Line 35,713: Line 34,391:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 35,723: Line 34,401:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,731: Line 34,409:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,738: Line 34,416:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 35,748: Line 34,426:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,756: Line 34,434:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 35,769: Line 34,447:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 35,782: Line 34,460:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 35,794: Line 34,472:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 26    LDX #38
|<pre>A2 26    LDX #38
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 35,809: Line 34,487:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,817: Line 34,495:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,824: Line 34,502:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 24    LDY #36
A0 24    LDY #36
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 24    LDX #36
A2 24    LDX #36
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 35,849: Line 34,527:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 35,861: Line 34,539:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 35,874: Line 34,552:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,884: Line 34,562:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 35,894: Line 34,572:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 35,908: Line 34,586:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,919: Line 34,597:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 35,933: Line 34,611:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 35,947: Line 34,625:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,954: Line 34,632:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 35,963: Line 34,641:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 35,974: Line 34,652:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,982: Line 34,660:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,990: Line 34,668:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 36,001: Line 34,679:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,010: Line 34,688:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 36,022: Line 34,700:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 36,035: Line 34,713:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,041: Line 34,719:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 36,050: Line 34,728:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 36,057: Line 34,735:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 36,063: Line 34,741:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 36,074: Line 34,752:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,083: Line 34,761:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 36,094: Line 34,772:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,103: Line 34,781:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 36,116: Line 34,794:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 36,129: Line 34,807:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,135: Line 34,813:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 26    LDX #38
A2 26    LDX #38
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 26    LDY #38
A0 26    LDY #38
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
38      SEC
A9 1B    LDA #27
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>48      PHA
A0 26   LDY #38
48      PHA
08      PHP
A0 24   LDY #36
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>48      PHA
A2 26   LDX #38
48      PHA
08      PHP
A2 24   LDX #36
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
!colspan="2"|10 bytes
A0 26   LDY #38
|-
|<pre>98      TYA
48      PHA
A0 1A   LDY #26
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>EA      NOP
A2 26   LDX #38
08      PHP
A2 17   LDX #23
@X:
@X:
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>EA      NOP
A2 26    LDX #38
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A0 26    LDY #38
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
A2 1B    LDX #27
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
A0 1B    LDY #27
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
38      SEC
A9 1B    LDA #27
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 24    LDY #36
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 24    LDX #36
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>8C      TXA
48      PHA
A2 1A    LDX #26
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
08      PHP
A0 17    LDY #23
A0 17    LDY #23
Line 36,252: Line 34,885:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 17    LDX #23
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 36,274: Line 34,898:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 36,283: Line 34,907:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 36,296: Line 34,920:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 36,309: Line 34,933:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 36,315: Line 34,939:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 36,324: Line 34,948:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,331: Line 34,955:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 36,341: Line 34,965:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,349: Line 34,973:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,356: Line 34,980:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 36,366: Line 34,990:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,374: Line 34,998:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 36,387: Line 35,011:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 36,399: Line 35,023:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 36,412: Line 35,036:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 36,420: Line 35,044:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 27    LDY #39
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 27    LDX #39
|<pre>A2 27    LDX #39
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 27    LDY #39
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 36,439: Line 35,063:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,447: Line 35,071:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,454: Line 35,078:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 25    LDY #37
A0 25    LDY #37
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 25    LDX #37
A2 25    LDX #37
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 36,479: Line 35,103:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 36,491: Line 35,115:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 36,503: Line 35,127:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,513: Line 35,137:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,523: Line 35,147:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 36,537: Line 35,161:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,547: Line 35,171:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 36,561: Line 35,185:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 36,574: Line 35,198:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1C    LDX #28
|<pre>A2 1C    LDX #28
Line 36,580: Line 35,204:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 36,590: Line 35,214:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 36,598: Line 35,222:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 36,605: Line 35,229:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 36,616: Line 35,240:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,624: Line 35,248:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 36,635: Line 35,259:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,644: Line 35,268:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 36,656: Line 35,280:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 36,669: Line 35,293:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,675: Line 35,299:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 36,684: Line 35,308:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 36,691: Line 35,315:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 36,697: Line 35,321:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 36,708: Line 35,332:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,717: Line 35,341:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 36,728: Line 35,352:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,737: Line 35,361:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 36,752: Line 35,376:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,764: Line 35,388:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 36,779: Line 35,403:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 36,792: Line 35,416:
; ^ Hides INX
; ^ Hides INX
48      PHA
48      PHA
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 36,800: Line 35,424:
; ^ Hides INX
; ^ Hides INX
A5 00    LDA $00
A5 00    LDA $00
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, and Z&N
|-
|<pre>A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
A4 00    LDY $00
D0 xx    BNE @X</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232
Line 36,806: Line 35,436:
; ^ Hides INX
; ^ Hides INX
24 00    BIT $00
24 00    BIT $00
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232
Line 36,812: Line 35,442:
; ^ Hides INX
; ^ Hides INX
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,818: Line 35,448:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
Line 36,824: Line 35,454:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232
Line 36,830: Line 35,460:
; ^ Hides INX
; ^ Hides INX
04 00    NOP $00
04 00    NOP $00
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 16   LDY #22
|<pre>A6 00    LDX $00
A2 27    LDX #39
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 27   LDY #39
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 16    LDX #22
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 36,855: Line 35,483:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
08      PHP
A2 1B    LDX #27
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,866: Line 35,503:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 1B    LDX #27
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 36,886: Line 35,514:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,895: Line 35,523:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 36,908: Line 35,536:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 36,921: Line 35,549:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 36,934: Line 35,562:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 36,940: Line 35,568:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 36,949: Line 35,577:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,956: Line 35,584:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 36,966: Line 35,594:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,974: Line 35,602:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,981: Line 35,609:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 36,991: Line 35,619:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,999: Line 35,627:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 37,012: Line 35,640:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 37,025: Line 35,653:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 37,037: Line 35,665:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 28    LDX #40
|<pre>A2 28    LDX #40
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 37,052: Line 35,680:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,060: Line 35,688:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,067: Line 35,695:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 26    LDY #38
A0 26    LDY #38
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 26    LDX #38
A2 26    LDX #38
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 37,092: Line 35,720:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 37,104: Line 35,732:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 37,116: Line 35,744:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,126: Line 35,754:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1A    LDX #26
A0 1A    LDY #26
@X:
@Y:
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 37,154: Line 35,782:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 37,168: Line 35,796:
; ^ Hides INX
; ^ Hides INX
48      PHA
48      PHA
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 37,177: Line 35,805:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,184: Line 35,812:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,191: Line 35,819:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 37,201: Line 35,829:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,209: Line 35,837:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 37,216: Line 35,844:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 37,227: Line 35,855:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,236: Line 35,864:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,245: Line 35,873:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,253: Line 35,881:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 37,264: Line 35,892:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,273: Line 35,901:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 37,285: Line 35,913:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 37,298: Line 35,926:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,304: Line 35,932:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 37,313: Line 35,941:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 37,320: Line 35,948:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 37,326: Line 35,954:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 37,337: Line 35,965:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,346: Line 35,974:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 37,357: Line 35,985:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,366: Line 35,994:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 37,380: Line 36,008:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,392: Line 36,020:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 37,407: Line 36,035:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 37,420: Line 36,048:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1D    LDY #29
|<pre>A0 1D    LDY #29
Line 37,426: Line 36,054:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 37,436: Line 36,064:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 37,444: Line 36,072:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 37,454: Line 36,082:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 37,466: Line 36,094:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,475: Line 36,103:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 37,488: Line 36,116:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,498: Line 36,126:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 37,511: Line 36,139:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 37,524: Line 36,152:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 37,530: Line 36,158:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 37,539: Line 36,167:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,546: Line 36,174:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 37,556: Line 36,184:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,564: Line 36,192:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,571: Line 36,199:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 37,581: Line 36,209:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,589: Line 36,217:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 37,602: Line 36,230:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 37,615: Line 36,243:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 37,627: Line 36,255:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 29    LDX #41
|<pre>A2 29    LDX #41
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 37,642: Line 36,270:
24 00    BIT $00
24 00    BIT $00
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 37,649: Line 36,277:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,657: Line 36,285:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 16   LDY #22
A4 00    LDY $00
A0 27   LDY #39
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 37,679: Line 36,306:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,688: Line 36,315:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 37,701: Line 36,328:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 37,715: Line 36,342:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,722: Line 36,349:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,729: Line 36,356:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,736: Line 36,363:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
A2 1D    LDX #29
@X:
EA      NOP
EA      NOP
EA      NOP
A2 28    LDX #40
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A4 00    LDY $00
A0 1D    LDY #29
@Y:
EA      NOP
EA      NOP
EA      NOP
A0 28    LDY #40
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 37,761: Line 36,386:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 37,772: Line 36,397:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,781: Line 36,406:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,790: Line 36,415:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,798: Line 36,423:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 37,809: Line 36,434:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,818: Line 36,443:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 37,830: Line 36,455:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 37,843: Line 36,468:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,849: Line 36,474:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 37,858: Line 36,483:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 37,865: Line 36,490:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 37,871: Line 36,496:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 37,883: Line 36,508:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,892: Line 36,517:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,901: Line 36,526:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 37,912: Line 36,537:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,921: Line 36,546:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 37,935: Line 36,560:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 37,949: Line 36,574:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 37,957: Line 36,582:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 1A    LDX #26
@X:
48      PHA
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
|-
|-
|<pre>A0 1A    LDY #26
|<pre>A0 1A    LDY #26
Line 37,968: Line 36,587:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A2 1A    LDX #26
|<pre>A2 1A    LDX #26
@X:
@X:
A5 00    LDA $00
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 1A    LDY #26
!colspan="2"|7 bytes
@Y:
A5 00    LDA $00
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|-
|<pre>A2 1A   LDX #26
|<pre>A6 00    LDX $00
A2 29   LDX #41
@X:
@X:
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1A    LDY #26
|<pre>A4 00    LDY $00
@Y:
A0 29   LDY #41
24 00   BIT $00
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>A0 1A   LDY #26
@Y:
85 xx    STA @zptemp
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>A2 1A    LDX #26
@X:
85 xx    STA @zptemp
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>A2 1A    LDX #26
@X:
04 00    NOP $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>A0 1A   LDY #26
@Y:
@Y:
04 00    NOP $00
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>A2 1A    LDX #26
@X:
4C xx xx JMP *+3
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|<pre>A0 1A    LDY #26
@Y:
4C xx xx JMP *+3
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
|<pre>A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
20 xx xx JSR @rts14
88      DEY
88      DEY
30 xx    BMI @Y</pre> || Clobbers Y, and Z&amp;N; requires @rts14; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A2 10   LDX #16
|<pre>48      PHA
48      PHA
08      PHP
A2 27   LDX #39
@X:
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X, and S; and writes in stack
|<pre>A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,068: Line 36,627:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 27    LDX #39
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,085: Line 36,635:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 38,097: Line 36,647:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,107: Line 36,657:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,117: Line 36,667:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 38,125: Line 36,675:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 38,138: Line 36,688:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,148: Line 36,698:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 38,161: Line 36,711:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 38,174: Line 36,724:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 38,180: Line 36,730:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 38,189: Line 36,739:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,196: Line 36,746:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 38,206: Line 36,756:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,214: Line 36,764:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,221: Line 36,771:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 38,231: Line 36,781:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,239: Line 36,789:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 38,252: Line 36,802:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 38,265: Line 36,815:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 38,277: Line 36,827:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 2A    LDX #42
|<pre>A2 2A    LDX #42
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 38,292: Line 36,842:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 38,300: Line 36,850:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 38,307: Line 36,857:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 38,316: Line 36,866:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 38,328: Line 36,878:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 38,341: Line 36,891:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,351: Line 36,901:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,361: Line 36,911:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 38,375: Line 36,925:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,386: Line 36,936:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 38,400: Line 36,950:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 38,414: Line 36,964:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,421: Line 36,971:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,428: Line 36,978:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,435: Line 36,985:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 38,445: Line 36,995:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,453: Line 37,003:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 38,460: Line 37,010:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 38,471: Line 37,021:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 38,480: Line 37,030:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 38,489: Line 37,039:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,497: Line 37,047:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 38,508: Line 37,058:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,517: Line 37,067:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 38,529: Line 37,079:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 38,542: Line 37,092:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,548: Line 37,098:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 38,557: Line 37,107:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 38,564: Line 37,114:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 38,570: Line 37,120:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 38,581: Line 37,131:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,590: Line 37,140:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 38,603: Line 37,153:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 38,616: Line 37,166:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,622: Line 37,172:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 2A    LDX #42
A2 2A    LDX #42
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 2A    LDY #42
A0 2A    LDY #42
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|9 bytes
A0 2A    LDY #42
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|-
|<pre>24 00    BIT $00
|<pre>48       PHA
A2 2A    LDX #42
08       PHP
@X:
A2 1D   LDX #29
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A2 2A    LDX #42
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A0 2A    LDY #42
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A2 2A   LDX #42
@X:
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|<pre>4C xx xx JMP *+3
A0 2A    LDY #42
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 29    LDX #41
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X, and S; and writes in stack
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 29    LDY #41
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,715: Line 37,206:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 1D    LDX #29
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,732: Line 37,214:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 38,744: Line 37,226:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A4 00    LDY $00
A0 11   LDY #17
A0 1D   LDY #29
@Y:
@Y:
08       PHP
EA       NOP
28      PLP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A6 00    LDX $00
A2 11   LDX #17
A2 1D   LDX #29
@X:
@X:
08       PHP
EA       NOP
28      PLP
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,773: Line 37,253:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 38,786: Line 37,266:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,796: Line 37,276:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 38,809: Line 37,289:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 38,822: Line 37,302:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 38,828: Line 37,308:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 38,837: Line 37,317:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,844: Line 37,324:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 38,854: Line 37,334:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,862: Line 37,342:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,869: Line 37,349:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 38,879: Line 37,359:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,887: Line 37,367:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 38,901: Line 37,381:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,912: Line 37,392:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 38,925: Line 37,405:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 38,937: Line 37,417:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 2B    LDX #43
|<pre>A2 2B    LDX #43
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 38,952: Line 37,432:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,960: Line 37,440:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 38,967: Line 37,447:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 38,977: Line 37,457:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 38,985: Line 37,465:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 38,992: Line 37,472:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 39,004: Line 37,484:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 39,017: Line 37,497:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,027: Line 37,507:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,037: Line 37,517:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 39,051: Line 37,531:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 39,061: Line 37,541:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 39,075: Line 37,555:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 39,088: Line 37,568:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 1B    LDX #27
|<pre>A2 1B    LDX #27
Line 39,094: Line 37,574:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 18    LDY #24
|<pre>A0 18    LDY #24
Line 39,100: Line 37,580:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 18    LDX #24
|<pre>A2 18    LDX #24
Line 39,106: Line 37,586:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 39,115: Line 37,595:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 18    LDX #24
|<pre>A2 18    LDX #24
Line 39,122: Line 37,602:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 39,131: Line 37,611:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 39,142: Line 37,622:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,151: Line 37,631:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,160: Line 37,640:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,168: Line 37,648:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 39,179: Line 37,659:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,188: Line 37,668:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 39,200: Line 37,680:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 39,213: Line 37,693:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1F    LDY #31
|<pre>A0 1F    LDY #31
Line 39,219: Line 37,699:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 39,228: Line 37,708:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 39,235: Line 37,715:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 39,241: Line 37,721:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 39,252: Line 37,732:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,261: Line 37,741:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 39,272: Line 37,752:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,281: Line 37,761:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 39,296: Line 37,776:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,308: Line 37,788:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 39,323: Line 37,803:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 39,336: Line 37,816:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,342: Line 37,822:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 2B    LDX #43
A2 2B    LDX #43
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 2B    LDY #43
A0 2B    LDY #43
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 1B    LDA #27
@A:
48      PHA
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>24 00   BIT $00
|<pre>38      SEC
A0 2B   LDY #43
A9 18    LDA #24
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 29   LDY #41
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>48      PHA
A2 2B   LDX #43
48      PHA
08      PHP
A2 29   LDX #41
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X, and S; and writes in stack
|<pre>85 xx    STA @zptemp
A2 2B    LDX #43
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A0 2B    LDY #43
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A0 2B    LDY #43
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A2 2B    LDX #43
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
A2 18    LDX #24
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>EA      NOP
A0 18    LDY #24
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|<pre>38      SEC
A9 1B    LDA #27
@A:
48      PHA
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>38      SEC
A9 18    LDA #24
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 29    LDY #41
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 29    LDX #41
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 39,457: Line 37,885:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,467: Line 37,895:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,477: Line 37,905:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 39,490: Line 37,918:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,500: Line 37,928:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 39,513: Line 37,941:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 39,526: Line 37,954:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 39,532: Line 37,960:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 39,541: Line 37,969:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,548: Line 37,976:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 39,558: Line 37,986:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,566: Line 37,994:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 39,573: Line 38,001:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 39,583: Line 38,011:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,591: Line 38,019:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 39,604: Line 38,032:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 39,616: Line 38,044:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 2C    LDX #44
|<pre>A2 2C    LDX #44
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 39,631: Line 38,059:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,639: Line 38,067:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,646: Line 38,074:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 2A    LDY #42
A0 2A    LDY #42
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 2A    LDX #42
A2 2A    LDX #42
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 39,671: Line 38,099:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 39,683: Line 38,111:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 39,696: Line 38,124:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,706: Line 38,134:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,716: Line 38,144:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 39,730: Line 38,158:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,741: Line 38,169:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 39,755: Line 38,183:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 39,769: Line 38,197:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,776: Line 38,204:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 39,783: Line 38,211:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 39,790: Line 38,218:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 39,800: Line 38,228:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,808: Line 38,236:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 39,815: Line 38,243:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 39,826: Line 38,254:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,835: Line 38,263:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,844: Line 38,272:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,852: Line 38,280:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 39,863: Line 38,291:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,872: Line 38,300:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 39,884: Line 38,312:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 39,897: Line 38,325:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,903: Line 38,331:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 39,912: Line 38,340:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 39,919: Line 38,347:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 39,925: Line 38,353:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 39,936: Line 38,364:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,945: Line 38,373:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 39,956: Line 38,384:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,965: Line 38,393:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 39,980: Line 38,408:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 39,992: Line 38,420:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 40,007: Line 38,435:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 40,020: Line 38,448:
; ^ Hides INX
; ^ Hides INX
68      PLA
68      PLA
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 40,029: Line 38,457:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,035: Line 38,463:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A4 00    LDY $00
A0 2C    LDY #44
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>24 00    BIT $00
A0 2C   LDY #44
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A0 2C    LDY #44
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A0 2C    LDY #44
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>4C xx xx JMP *+3
A0 2C    LDY #44
A0 2C    LDY #44
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 40,080: Line 38,482:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 40,089: Line 38,491:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 1F    LDY #31
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,106: Line 38,499:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 40,118: Line 38,511:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,127: Line 38,520:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 40,140: Line 38,533:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,150: Line 38,543:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 40,163: Line 38,556:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 40,176: Line 38,569:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 20    LDX #32
|<pre>A2 20    LDX #32
Line 40,182: Line 38,575:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 40,192: Line 38,585:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 40,200: Line 38,593:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,207: Line 38,600:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 40,217: Line 38,610:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,225: Line 38,618:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 40,238: Line 38,631:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 40,251: Line 38,644:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 40,263: Line 38,656:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 2D    LDX #45
|<pre>A2 2D    LDX #45
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 40,278: Line 38,671:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,286: Line 38,679:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,293: Line 38,686:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 40,301: Line 38,694:
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
10 xx    BPL @A</pre> || Clobbers A, Z&amp;N, and C; and requires support for unofficial opcodes
10 xx    BPL @A</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 2B    LDX #43
A2 2B    LDX #43
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 2B    LDY #43
A0 2B    LDY #43
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 40,326: Line 38,719:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 40,338: Line 38,731:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 40,350: Line 38,743:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,360: Line 38,753:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 40,374: Line 38,767:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 40,388: Line 38,781:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 40,402: Line 38,795:
; ^ Hides INX
; ^ Hides INX
68      PLA
68      PLA
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 40,411: Line 38,804:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,418: Line 38,811:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 40,427: Line 38,820:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 40,438: Line 38,831:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,447: Line 38,840:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,456: Line 38,849:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 40,467: Line 38,860:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,476: Line 38,869:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 40,488: Line 38,881:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 40,501: Line 38,894:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,507: Line 38,900:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 40,516: Line 38,909:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 40,523: Line 38,916:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 40,529: Line 38,922:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 40,540: Line 38,933:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,549: Line 38,942:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 40,560: Line 38,953:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,569: Line 38,962:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 40,584: Line 38,977:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,596: Line 38,989:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 40,611: Line 39,004:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 40,624: Line 39,017:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,630: Line 39,023:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 13   LDX #19
|<pre>A6 00    LDX $00
A2 2D   LDX #45
@X:
@X:
08      PHP
28      PLP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 13   LDY #19
|<pre>A4 00    LDY $00
A0 2D   LDY #45
@Y:
@Y:
08      PHP
28      PLP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A5 00    LDA $00
!colspan="2"|9 bytes
A0 2D    LDY #45
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>A5 00    LDA $00
A2 2D    LDX #45
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
|-
|<pre>24 00    BIT $00
A2 2D    LDX #45
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>24 00    BIT $00
A0 2D    LDY #45
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
|-
|<pre>85 xx    STA @zptemp
A0 2D    LDY #45
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A2 2D    LDX #45
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A2 2D    LDX #45
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A0 2D    LDY #45
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
A0 20    LDY #32
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
A2 20    LDX #32
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,722: Line 39,047:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 2B    LDX #43
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,731: Line 39,065:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 2B    LDX #43
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 40,752: Line 39,077:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,762: Line 39,087:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,772: Line 39,097:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 40,785: Line 39,110:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,795: Line 39,120:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 40,808: Line 39,133:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 40,821: Line 39,146:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 40,827: Line 39,152:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 40,836: Line 39,161:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,843: Line 39,168:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 40,853: Line 39,178:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,861: Line 39,186:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,868: Line 39,193:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 40,878: Line 39,203:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,886: Line 39,211:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 40,899: Line 39,224:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 40,912: Line 39,237:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 40,924: Line 39,249:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 2E    LDX #46
|<pre>A2 2E    LDX #46
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 40,940: Line 39,265:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,948: Line 39,273:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,955: Line 39,280:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 2C    LDY #44
A0 2C    LDY #44
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 40,972: Line 39,297:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 40,984: Line 39,309:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 40,997: Line 39,322:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,007: Line 39,332:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,017: Line 39,342:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 41,031: Line 39,356:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,042: Line 39,367:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 41,056: Line 39,381:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 41,069: Line 39,394:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 21    LDY #33
|<pre>A0 21    LDY #33
Line 41,075: Line 39,400:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,085: Line 39,410:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 41,093: Line 39,418:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 41,100: Line 39,425:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 41,111: Line 39,436:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,119: Line 39,444:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 41,130: Line 39,455:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,139: Line 39,464:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 41,151: Line 39,476:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 41,164: Line 39,489:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,170: Line 39,495:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 41,179: Line 39,504:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 41,186: Line 39,511:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 41,192: Line 39,517:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 41,203: Line 39,528:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,212: Line 39,537:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 41,222: Line 39,547:
69 01    ADC #1
69 01    ADC #1
10 xx    BPL @A
10 xx    BPL @A
28      PLP</pre> || Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,232: Line 39,557:
69 01    ADC #1
69 01    ADC #1
10 xx    BPL @A
10 xx    BPL @A
68      PLA</pre> || Clobbers Z&amp;N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 41,243: Line 39,568:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,252: Line 39,577:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 41,266: Line 39,591:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 41,279: Line 39,604:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,285: Line 39,610:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>A4 00    LDY $00
A0 21   LDY #33
A0 2E   LDY #46
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
A2 21   LDX #33
A2 2E   LDX #46
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,310: Line 39,633:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 41,321: Line 39,644:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,330: Line 39,653:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 41,341: Line 39,664:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,350: Line 39,673:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 41,363: Line 39,686:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 41,376: Line 39,699:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 41,389: Line 39,712:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 1A    LDX #26
|<pre>A2 1A    LDX #26
Line 41,395: Line 39,718:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 41,404: Line 39,727:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1A    LDX #26
|<pre>A2 1A    LDX #26
Line 41,411: Line 39,734:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,421: Line 39,744:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,429: Line 39,752:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,436: Line 39,759:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 41,446: Line 39,769:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,454: Line 39,777:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 41,467: Line 39,790:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 41,480: Line 39,803:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 41,492: Line 39,815:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 2F    LDY #47
|<pre>A0 2F    LDY #47
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,507: Line 39,830:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,515: Line 39,838:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,522: Line 39,845:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A4 00    LDY $00
A0 2D    LDY #45
A0 2D    LDY #45
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
A6 00    LDX $00
A2 2D    LDX #45
A2 2D    LDX #45
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 41,547: Line 39,870:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 41,559: Line 39,882:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 41,571: Line 39,894:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,581: Line 39,904:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 41,595: Line 39,918:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 41,609: Line 39,932:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 41,623: Line 39,946:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,630: Line 39,953:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,637: Line 39,960:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,644: Line 39,967:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,654: Line 39,977:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,662: Line 39,985:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 41,669: Line 39,992:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 41,680: Line 40,003:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,689: Line 40,012:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,698: Line 40,021:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 41,706: Line 40,029:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 41,717: Line 40,040:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,726: Line 40,049:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 41,738: Line 40,061:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 41,751: Line 40,074:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,757: Line 40,080:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 41,766: Line 40,089:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 41,773: Line 40,096:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 41,779: Line 40,102:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 41,790: Line 40,113:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,799: Line 40,122:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 41,810: Line 40,133:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,819: Line 40,142:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 41,834: Line 40,157:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 41,846: Line 40,169:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 41,861: Line 40,184:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 41,874: Line 40,197:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 22    LDX #34
|<pre>A2 22    LDX #34
Line 41,880: Line 40,203:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,890: Line 40,213:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 41,898: Line 40,221:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 41,908: Line 40,231:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 41,920: Line 40,243:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,929: Line 40,252:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 41,942: Line 40,265:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,952: Line 40,275:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 41,965: Line 40,288:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 41,978: Line 40,301:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 41,984: Line 40,307:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 41,993: Line 40,316:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,000: Line 40,323:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 42,010: Line 40,333:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,018: Line 40,341:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,025: Line 40,348:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 42,035: Line 40,358:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,043: Line 40,366:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 42,056: Line 40,379:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 42,068: Line 40,391:
10 xx    BPL @A
10 xx    BPL @A
68      PLA
68      PLA
28      PLP</pre> || Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 42,081: Line 40,404:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 42,093: Line 40,416:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 30    LDX #48
|<pre>A2 30    LDX #48
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 42,107: Line 40,430:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,115: Line 40,438:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,123: Line 40,446:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A4 00    LDY $00
A0 21   LDY #33
A0 2E   LDY #46
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A6 00    LDX $00
A2 21   LDX #33
A2 2E   LDX #46
@X:
@X:
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 42,154: Line 40,475:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,163: Line 40,484:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 42,176: Line 40,497:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 42,190: Line 40,511:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,197: Line 40,518:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,204: Line 40,525:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,211: Line 40,532:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>A6 00    LDX $00
A2 22    LDX #34
@X:
EA      NOP
EA      NOP
EA      NOP
A2 2F    LDX #47
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A4 00    LDY $00
A0 22    LDY #34
@Y:
EA      NOP
EA      NOP
EA      NOP
A0 2F    LDY #47
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 42,236: Line 40,555:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 42,247: Line 40,566:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 42,256: Line 40,575:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 42,265: Line 40,584:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,273: Line 40,592:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 42,284: Line 40,603:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,293: Line 40,612:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 42,305: Line 40,624:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 42,318: Line 40,637:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,324: Line 40,643:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 42,333: Line 40,652:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 42,340: Line 40,659:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 42,346: Line 40,665:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 42,358: Line 40,677:
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre> || Clobbers A, and Z&amp;N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,367: Line 40,686:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,376: Line 40,695:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 42,387: Line 40,706:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,396: Line 40,715:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 42,410: Line 40,729:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 42,424: Line 40,743:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 42,437: Line 40,756:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,443: Line 40,762:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 1B    LDY #27
|<pre>A0 1B    LDY #27
Line 42,449: Line 40,768:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 1B    LDX #27
|<pre>A2 1B    LDX #27
Line 42,455: Line 40,774:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 1B   LDY #27
|<pre>A4 00    LDY $00
A0 30   LDY #48
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1B   LDX #27
|<pre>A6 00    LDX $00
A2 30   LDX #48
@X:
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 42,482: Line 40,799:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,491: Line 40,808:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,499: Line 40,816:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 42,511: Line 40,828:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,521: Line 40,838:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,531: Line 40,848:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 42,539: Line 40,856:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 42,552: Line 40,869:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 42,562: Line 40,879:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 42,575: Line 40,892:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 42,588: Line 40,905:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 42,594: Line 40,911:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 42,603: Line 40,920:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,610: Line 40,927:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 42,620: Line 40,937:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,628: Line 40,945:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,635: Line 40,952:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 42,645: Line 40,962:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,653: Line 40,970:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 42,666: Line 40,983:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 42,679: Line 40,996:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 42,691: Line 41,008:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 31    LDY #49
|<pre>A0 31    LDY #49
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 42,706: Line 41,023:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 42,714: Line 41,031:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,721: Line 41,038:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 42,730: Line 41,047:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 42,742: Line 41,059:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 42,755: Line 41,072:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,765: Line 41,082:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,775: Line 41,092:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 42,789: Line 41,106:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,800: Line 41,117:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 42,814: Line 41,131:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 42,828: Line 41,145:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,835: Line 41,152:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,842: Line 41,159:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,849: Line 41,166:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 42,859: Line 41,176:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,867: Line 41,184:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 42,874: Line 41,191:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 42,885: Line 41,202:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,894: Line 41,211:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,903: Line 41,220:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,911: Line 41,228:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 42,922: Line 41,239:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,931: Line 41,248:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 42,943: Line 41,260:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 42,956: Line 41,273:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,962: Line 41,279:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 42,971: Line 41,288:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 42,978: Line 41,295:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 42,984: Line 41,301:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 42,995: Line 41,312:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,004: Line 41,321:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 43,017: Line 41,334:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 43,025: Line 41,342:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 1F    LDY #31
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 1F    LDX #31
|<pre>A2 1F    LDX #31
Line 43,030: Line 41,353:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 1F    LDY #31
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 1F   LDX #31
|<pre>A6 00    LDX $00
A2 31   LDX #49
@X:
@X:
A5 00    LDA $00
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1F   LDY #31
|<pre>A4 00   LDY $00
@Y:
A0 31    LDY #49
A5 00    LDA $00
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
|-
|<pre>A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
18      CLC
90 00    BCC *+2
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and C
|-
|<pre>A2 1F    LDX #31
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|<pre>A0 1F   LDY #31
@Y:
@Y:
24 00    BIT $00
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A0 1F    LDY #31
@Y:
85 xx    STA @zptemp
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>A2 1F    LDX #31
@X:
85 xx    STA @zptemp
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>A2 1F    LDX #31
@X:
04 00    NOP $00
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>A0 1F    LDY #31
@Y:
04 00    NOP $00
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>A0 1F    LDY #31
@Y:
4C xx xx JMP *+3
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and not relocatable code
|-
|<pre>A2 1F    LDX #31
@X:
4C xx xx JMP *+3
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and not relocatable code
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,136: Line 41,378:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,145: Line 41,387:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,153: Line 41,395:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 43,165: Line 41,407:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
A4 00    LDY $00
A0 22    LDY #34
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 22    LDX #34
@X:
EA      NOP
EA      NOP
08      PHP
A2 2F    LDX #47
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
A0 2F    LDY #47
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,194: Line 41,434:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 43,207: Line 41,447:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,217: Line 41,457:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 43,230: Line 41,470:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 43,243: Line 41,483:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 43,249: Line 41,489:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 43,258: Line 41,498:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,265: Line 41,505:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 43,275: Line 41,515:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,283: Line 41,523:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,290: Line 41,530:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 43,300: Line 41,540:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,308: Line 41,548:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 43,322: Line 41,562:
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,333: Line 41,573:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 43,346: Line 41,586:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 43,358: Line 41,598:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 32    LDX #50
|<pre>A2 32    LDX #50
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 43,373: Line 41,613:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,381: Line 41,621:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 43,388: Line 41,628:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 1B   LDX #27
A6 00    LDX $00
A2 30   LDX #48
@X:
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 1B   LDY #27
A4 00    LDY $00
A0 30   LDY #48
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 43,415: Line 41,653:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 43,427: Line 41,665:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, S, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 43,440: Line 41,678:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,450: Line 41,688:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,460: Line 41,698:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 43,474: Line 41,712:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 43,484: Line 41,722:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 43,498: Line 41,736:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 43,512: Line 41,750:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,519: Line 41,757:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,526: Line 41,764:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,533: Line 41,771:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 43,543: Line 41,781:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,551: Line 41,789:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 43,558: Line 41,796:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 43,569: Line 41,807:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,578: Line 41,816:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,587: Line 41,825:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,595: Line 41,833:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 43,606: Line 41,844:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,615: Line 41,853:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 43,627: Line 41,865:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 43,640: Line 41,878:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 24    LDX #36
|<pre>A2 24    LDX #36
Line 43,646: Line 41,884:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 43,655: Line 41,893:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 43,662: Line 41,900:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 43,668: Line 41,906:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 43,679: Line 41,917:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,688: Line 41,926:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers S, Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 43,699: Line 41,937:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,708: Line 41,946:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 43,723: Line 41,961:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,735: Line 41,973:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 43,750: Line 41,988:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 43,763: Line 42,001:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, S, and Z&amp;N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,769: Line 42,007:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, S, and Z&amp;N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>A4 00    LDY $00
A0 32    LDY #50
A0 32    LDY #50
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A6 00    LDX $00
A2 32    LDX #50
A2 32    LDX #50
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|9 bytes
A2 32    LDX #50
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, Z&amp;N, and V
|-
|-
|<pre>24 00    BIT $00
|<pre>48      PHA
A0 32   LDY #50
48      PHA
08      PHP
A0 30   LDY #48
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, Z&amp;N, and V
D0 xx    BNE @Y
|-
28       PLP</pre>||Clobbers Y, and S; and writes in stack
|<pre>85 xx    STA @zptemp
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires @zptemp
|-
|<pre>85 xx    STA @zptemp
A2 32    LDX #50
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires @zptemp
|-
|<pre>04 00    NOP $00
A2 32    LDX #50
@X:
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N; and requires support for unofficial opcodes
|-
|<pre>04 00    NOP $00
A0 32    LDY #50
@Y:
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>A2 17    LDX #23
@X:
EA      NOP
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
|-
|<pre>A0 17    LDY #23
@Y:
EA      NOP
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
|-
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 43,848: Line 42,041:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,865: Line 42,049:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 43,877: Line 42,061:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,887: Line 42,071:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,897: Line 42,081:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,906: Line 42,090:
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 43,919: Line 42,103:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,929: Line 42,113:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 43,942: Line 42,126:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 43,955: Line 42,139:
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers A, X, S, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 43,961: Line 42,145:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers A, Y, S, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 43,970: Line 42,154:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,977: Line 42,161:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 43,987: Line 42,171:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,995: Line 42,179:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 44,002: Line 42,186:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 44,012: Line 42,196:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 44,020: Line 42,204:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre> || Clobbers Z&amp;N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 44,033: Line 42,217:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 44,045: Line 42,229:
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre> || Clobbers Y, and Z&amp;N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 33    LDX #51
|<pre>A2 33    LDX #51
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre> || Clobbers X, and Z&amp;N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 44,060: Line 42,244:
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre> || Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 44,068: Line 42,252:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre> || Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 44,076: Line 42,260:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, S, Z&amp;N, and C; and writes in stack
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 44,087: Line 42,271:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre> || Clobbers A, Z&amp;N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 44,100: Line 42,284:
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
68      PLA
A8      TAY</pre> || Clobbers A, and Z&amp;N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 44,114: Line 42,298:
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre> || Clobbers Z&amp;N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 44,125: Line 42,309:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A
D0 xx    BNE @A
28      PLP</pre> || Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 44,140: Line 42,324:
A8      TAY
A8      TAY
68      PLA
68      PLA
28      PLP</pre> || Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|}

Revision as of 13:38, 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, or NOP), followed by RTS.
  • @rts15 means you know a memory address that contains a JMP that jumps to another location that contains RTS.
  • Alternatively, @rts15 means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as LDA $00), followed by RTS.
  • @A, @X, @Y are local labels.

{{#css:

 .testtable td{padding:2px} .testtable td pre{padding:2px;margin:2px}

}}


2 cycles

1 bytes
EA       NOP
No requirements


3 cycles

1 bytes
48       PHA
Clobbers S; and writes in stack
2 bytes
A5 00    LDA $00
Clobbers A, and Z&N
A4 00    LDY $00
Clobbers Y, and Z&N
A6 00    LDX $00
Clobbers X, and Z&N
24 00    BIT $00
Clobbers Z&N, and V
85 xx    STA @zptemp
Requires @zptemp
04 00    NOP $00
Requires support for unofficial opcodes
3 bytes
4C xx xx JMP *+3
Not relocatable code


4 cycles

1 bytes
68       PLA
Clobbers A, S, and Z&N
2 bytes
EA       NOP
EA       NOP
No requirements


5 cycles

2 bytes
EA       NOP
48       PHA
Clobbers S; and writes in stack
3 bytes
EA       NOP
A5 00    LDA $00
Clobbers A, and Z&N
EA       NOP
A6 00    LDX $00
Clobbers X, and Z&N
EA       NOP
A4 00    LDY $00
Clobbers Y, and Z&N
18       CLC
90 00    BCC *+2
Clobbers C
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
4 bytes
EA       NOP
4C xx xx JMP *+3
Not relocatable code


6 cycles

2 bytes
48       PHA
48       PHA
Clobbers S; and writes in stack
EA       NOP
68       PLA
Clobbers A, S, and Z&N
3 bytes
EA       NOP
EA       NOP
EA       NOP
No requirements


7 cycles

2 bytes
08       PHP
28       PLP
Writes in stack
3 bytes
A5 00    LDA $00
68       PLA
Clobbers A, S, and Z&N
4 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
Clobbers A, and Z&N
EA       NOP
EA       NOP
A6 00    LDX $00
Clobbers X, and Z&N
EA       NOP
EA       NOP
A4 00    LDY $00
Clobbers Y, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
5 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


8 cycles

2 bytes
68       PLA
68       PLA
Clobbers A, S, and Z&N
3 bytes
BA       TSX
68       PLA
9A       TXS
Clobbers A, X, and Z&N
EA       NOP
48       PHA
48       PHA
Clobbers S; and writes in stack
4 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


9 cycles

3 bytes
EA       NOP
08       PHP
28       PLP
Writes in stack
4 bytes
EA       NOP
A5 00    LDA $00
68       PLA
Clobbers A, S, and Z&N
5 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
A6 00    LDX $00
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A4 00    LDY $00
Clobbers Y, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
6 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


10 cycles

3 bytes
48       PHA
08       PHP
28       PLP
Clobbers S; and writes in stack
EA       NOP
68       PLA
68       PLA
Clobbers A, S, and Z&N
4 bytes
08       PHP
24 00    BIT $00
28       PLP
Writes in stack
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N
5 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


11 cycles

3 bytes
48       PHA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
4 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
Writes in stack
A5 00    LDA $00
68       PLA
68       PLA
Clobbers A, S, and Z&N
5 bytes
A2 02    LDX #2
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 02    LDY #2
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
6 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
7 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


12 cycles

3 bytes
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
4 bytes
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
EA       NOP
48       PHA
08       PHP
28       PLP
Clobbers S; and writes in stack
5 bytes
08       PHP
18       CLC
90 00    BCC *+2
28       PLP
Writes in stack
6 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


13 cycles

4 bytes
48       PHA
48       PHA
08       PHP
28       PLP
Clobbers S; and writes in stack
5 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
Writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
Clobbers A, S, and Z&N
6 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
Clobbers A, and Z&N
A6 00    LDX $00
26 00    ROL $00
66 00    ROR $00
Clobbers X, and Z&N
A4 00    LDY $00
26 00    ROL $00
66 00    ROR $00
Clobbers Y, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N; and requires support for unofficial opcodes
7 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N; and not relocatable code
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


14 cycles

3 bytes
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
4 bytes
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
5 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
7 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


15 cycles

3 bytes
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
4 bytes
48       PHA
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
5 bytes
A5 00    LDA $00
20 xx xx JSR @rts12
Clobbers A, and Z&N; requires @rts12; and writes in stack
48       PHA
BA       TSX
68       PLA
9A       TXS
68       PLA
Clobbers X, and Z&N; and writes in stack
A4 00    LDY $00
20 xx xx JSR @rts12
Clobbers Y, and Z&N; requires @rts12; and writes in stack
08       PHP
BA       TSX
68       PLA
9A       TXS
28       PLP
Clobbers A, and X; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts12
Clobbers Z&N, and V; requires @rts12; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12
Requires @zptemp, and @rts12; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
28       PLP
Clobbers S; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts12
Requires @rts12, and support for unofficial opcodes; and writes in stack
6 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
Writes in stack
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
A6 00    LDX $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers X, and Z&N
A4 00    LDY $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Y, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
7 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N, and C
8 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


16 cycles

4 bytes
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
5 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
A2 03    LDX #3
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 03    LDY #3
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
6 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


17 cycles

4 bytes
EA       NOP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
5 bytes
A5 00    LDA $00
20 xx xx JSR @rts14
Clobbers A, and Z&N; requires @rts14; and writes in stack
A4 00    LDY $00
20 xx xx JSR @rts14
Clobbers Y, and Z&N; requires @rts14; and writes in stack
A6 00    LDX $00
20 xx xx JSR @rts14
Clobbers X, and Z&N; requires @rts14; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts14
Clobbers Z&N, and V; requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts14
Requires @zptemp, and @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts14
Requires @rts14, and support for unofficial opcodes; and writes in stack
6 bytes
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
Writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
7 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
A6 00    LDX $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers X, and Z&N
EA       NOP
A4 00    LDY $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Y, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
10 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


18 cycles

4 bytes
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
5 bytes
A5 00    LDA $00
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts15; and writes in stack
A6 00    LDX $00
20 xx xx JSR @rts15
Clobbers X, and Z&N; requires @rts15; and writes in stack
A4 00    LDY $00
20 xx xx JSR @rts15
Clobbers Y, and Z&N; requires @rts15; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts15; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
6 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
A0 03    LDY #3
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 03    LDX #3
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


19 cycles

4 bytes
68       PLA
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
5 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
6 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
7 bytes
A4 00    LDY $00
A0 03    LDY #3
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 03    LDX #3
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
9 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
10 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
11 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


20 cycles

5 bytes
EA       NOP
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
48       PHA
48       PHA
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
6 bytes
EA       NOP
A5 00    LDA $00
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts15; and writes in stack
EA       NOP
A6 00    LDX $00
20 xx xx JSR @rts15
Clobbers X, and Z&N; requires @rts15; and writes in stack
EA       NOP
A4 00    LDY $00
20 xx xx JSR @rts15
Clobbers Y, and Z&N; requires @rts15; and writes in stack
BA       TSX
68       PLA
68       PLA
68       PLA
68       PLA
9A       TXS
Clobbers A, X, and Z&N
18       CLC
90 00    BCC *+2
20 xx xx JSR @rts15
Clobbers C; requires @rts15; and writes in stack
B8       CLV
50 00    BVC *+2
20 xx xx JSR @rts15
Clobbers V; requires @rts15; and writes in stack
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
85 xx    STA @zptemp
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
EA       NOP
04 00    NOP $00
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
7 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
EA       NOP
A0 03    LDY #3
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 03    LDX #3
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N
10 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


21 cycles

5 bytes
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
6 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
7 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
9 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
10 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
11 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
12 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


22 cycles

5 bytes
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
6 bytes
A0 03    LDY #3
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 03    LDX #3
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
7 bytes
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
08       PHP
48       PHA
BA       TSX
68       PLA
9A       TXS
68       PLA
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Clobbers S; and writes in stack
8 bytes
08       PHP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
11 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


23 cycles

5 bytes
68       PLA
68       PLA
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
6 bytes
EA       NOP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
7 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
38       SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
10 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N; and requires support for unofficial opcodes
11 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N; and not relocatable code
12 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
13 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


24 cycles

6 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
48       PHA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
7 bytes
A4 00    LDY $00
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
8 bytes
08       PHP
28       PLP
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
Writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
12 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


25 cycles

6 bytes
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
A2 03    LDX #3
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 03    LDY #3
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
48       PHA
68       PLA
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
7 bytes
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
EA       NOP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
8 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
38       SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
10 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
11 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N, and C
13 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
14 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


26 cycles

5 bytes
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
6 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
48       PHA
68       PLA
68       PLA
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
7 bytes
EA       NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
20 xx xx JSR @rts14
Clobbers Z&N; requires @rts14; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
EA       NOP
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
8 bytes
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
9 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
13 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


27 cycles

6 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts15
Requires @rts12, and @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
7 bytes
36 00    ROL $00,X
76 00    ROR $00,X
20 xx xx JSR @rts15
Clobbers Z&N; requires @rts15; and writes in stack
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
EA       NOP
A0 03    LDY #3
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
A2 03    LDX #3
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A2 02    LDX #2
@X:
68       PLA
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
A0 02    LDY #2
@Y:
68       PLA
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
8 bytes
EA       NOP
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
A5 00    LDA $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers A, and Z&N; requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
08       PHP
BA       TSX
68       PLA
68       PLA
68       PLA
68       PLA
9A       TXS
28       PLP
Clobbers A, and X; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers Z&N, and V; requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @zptemp, and @rts12; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12, and support for unofficial opcodes; and writes in stack
9 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
EA       NOP
38       SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
11 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
14 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
15 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


28 cycles

6 bytes
EA       NOP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
7 bytes
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
8 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
10 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
14 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


29 cycles

6 bytes
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
7 bytes
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Clobbers S; requires @rts12, and @rts14; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
8 bytes
08       PHP
A2 03    LDX #3
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 03    LDY #3
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Clobbers A, and Z&N; requires @rts12, and @rts14; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @zptemp, @rts12, and @rts14; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
9 bytes
20 xx xx JSR @rts12
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Clobbers S; and writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
10 bytes
08       PHP
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
12 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
15 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
16 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


30 cycles

6 bytes
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
8 bytes
EA       NOP
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
9 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
15 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


31 cycles

5 bytes
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
A5 00    LDA $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, and Z&N; requires @rts14; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers Z&N, and V; requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @zptemp, and @rts14; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
48       PHA
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14, and support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
20 xx xx JSR @rts14
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
Requires @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
10 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
12 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
13 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
16 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
17 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


32 cycles

7 bytes
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
8 bytes
A6 00    LDX $00
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
9 bytes
98       TYA
48       PHA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 03    LDX #3
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 03    LDY #3
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
10 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
12 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
16 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


33 cycles

6 bytes
EA       NOP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
8 bytes
A5 00    LDA $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts15; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts15; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
9 bytes
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
20 xx xx JSR @rts14
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Requires @rts14; and writes in stack
EA       NOP
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
10 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
14 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
17 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
18 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


34 cycles

6 bytes
48       PHA
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
8 bytes
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
9 bytes
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
48       PHA
48       PHA
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
98       TYA
48       PHA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 03    LDX #3
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 03    LDY #3
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
12 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
17 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


35 cycles

6 bytes
68       PLA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
9 bytes
08       PHP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
18       CLC
90 00    BCC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers C; requires @rts15; and writes in stack
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
B8       CLV
50 00    BVC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers V; requires @rts15; and writes in stack
EA       NOP
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
EA       NOP
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
10 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
14 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
19 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


36 cycles

5 bytes
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
68       PLA
68       PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
9 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
A5 00    LDA $00
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
10 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
11 bytes
98       TYA
48       PHA
A0 03    LDY #3
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
18 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


37 cycles

6 bytes
A2 04    LDX #4
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
A0 04    LDY #4
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
A2 04    LDX #4
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 04    LDY #4
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
11 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
14 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
19 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
20 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


38 cycles

6 bytes
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
8 bytes
68       PLA
68       PLA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
9 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
10 bytes
EA       NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
08       PHP
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
11 bytes
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
13 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
19 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


39 cycles

6 bytes
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
38       SEC
A9 04    LDA #4
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
68       PLA
68       PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A6 00    LDX $00
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @zptemp, and @rts12; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12, and support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
14 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
20 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
21 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


40 cycles

6 bytes
68       PLA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
10 bytes
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers Z&N; requires @rts14; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
EA       NOP
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
11 bytes
EA       NOP
EA       NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
12 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
14 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
20 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


41 cycles

5 bytes
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts12, @rts14, and @rts15; and writes in stack
48       PHA
68       PLA
68       PLA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
10 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
48       PHA
08       PHP
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
Requires @rts12; and writes in stack
EA       NOP
48       PHA
98       TYA
48       PHA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
15 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
16 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
21 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
22 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


42 cycles

7 bytes
48       PHA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts12, and @rts15; and writes in stack
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
10 bytes
36 00    ROL $00,X
76 00    ROR $00,X
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers Z&N; requires @rts15; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
15 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
21 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


43 cycles

6 bytes
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
10 bytes
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
08       PHP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts12, and @rts14; and writes in stack
11 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
12 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
48       PHA
98       TYA
48       PHA
A0 03    LDY #3
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Clobbers S; and writes in stack
14 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
16 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
17 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
22 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
23 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


44 cycles

6 bytes
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
08       PHP
A0 04    LDY #4
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 04    LDX #4
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
22 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


45 cycles

6 bytes
68       PLA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
10 bytes
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
11 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers Z&N, and V; requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @zptemp, and @rts14; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14, and support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
13 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
17 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
18 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
23 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
24 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


46 cycles

5 bytes
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
68       PLA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
08       PHP
38       SEC
A9 04    LDA #4
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
23 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


47 cycles

7 bytes
48       PHA
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
13 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
24 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
25 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


48 cycles

6 bytes
EA       NOP
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts15; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
12 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
24 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


49 cycles

4 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
6 bytes
A2 06    LDX #6
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
14 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
25 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
26 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


50 cycles

6 bytes
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
12 bytes
18       CLC
90 00    BCC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers C; requires @rts15; and writes in stack
B8       CLV
50 00    BVC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers V; requires @rts15; and writes in stack
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
EA       NOP
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
EA       NOP
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
17 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
25 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


51 cycles

5 bytes
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
38       SEC
A9 06    LDA #6
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
48       PHA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
14 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
26 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
27 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


52 cycles

5 bytes
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
6 bytes
A4 00    LDY $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
7 bytes
EA       NOP
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
13 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
26 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


53 cycles

5 bytes
68       PLA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers A, Y, S, and Z&N
6 bytes
EA       NOP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
15 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
19 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
20 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
27 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
28 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


54 cycles

6 bytes
48       PHA
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
EA       NOP
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
98       TYA
48       PHA
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
14 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
19 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
27 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


55 cycles

6 bytes
48       PHA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 06    LDY #6
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 06    LDX #6
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 06    LDY #6
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 06    LDX #6
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts12, @rts14, and @rts15; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
15 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
21 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
28 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
29 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


56 cycles

5 bytes
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
6 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
8 bytes
48       PHA
08       PHP
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 06    LDX #6
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
98       TYA
48       PHA
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
14 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
28 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


57 cycles

6 bytes
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 08    LDX #8
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, Z&N, C, and D
8 bytes
08       PHP
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
68       PLA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
38       SEC
A9 06    LDA #6
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
21 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
22 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
29 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
30 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


58 cycles

6 bytes
EA       NOP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
38       SEC
A9 06    LDA #6
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
15 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
29 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


59 cycles

6 bytes
48       PHA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
28       PLP
Clobbers Y, and S; and writes in stack
8 bytes
08       PHP
A4 00    LDY $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 08    LDA #8
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
30 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
31 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


60 cycles

6 bytes
68       PLA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
15 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
30 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


61 cycles

5 bytes
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
68       PLA
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, C, and D
9 bytes
08       PHP
A6 00    LDX $00
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
8C       TXA
48       PHA
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
17 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
31 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
32 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


62 cycles

7 bytes
48       PHA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
48       PHA
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
28       PLP
Clobbers Y, and S; and writes in stack
68       PLA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 06    LDX #6
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 06    LDY #6
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
21 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
31 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


63 cycles

6 bytes
EA       NOP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
48       PHA
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
10 bytes
A5 00    LDA $00
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
17 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
32 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
33 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


64 cycles

6 bytes
A0 09    LDY #9
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 09    LDX #9
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 08    LDX #8
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
9 bytes
08       PHP
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, C, and D; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
32 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


65 cycles

6 bytes
A2 08    LDX #8
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 08    LDY #8
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
18 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
23 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
24 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
33 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
34 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


66 cycles

5 bytes
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 08    LDA #8
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 08    LDA #8
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
17 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
23 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
33 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


67 cycles

7 bytes
A2 06    LDX #6
@X:
48       PHA
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 06    LDY #6
@Y:
48       PHA
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 06    LDX #6
@X:
EA       NOP
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
A0 06    LDY #6
@Y:
EA       NOP
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
A4 00    LDY $00
A0 09    LDY #9
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 09    LDX #9
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
18 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
24 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
25 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
34 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
35 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


68 cycles

6 bytes
EA       NOP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
17 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
24 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
34 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


69 cycles

5 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
6 bytes
48       PHA
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
19 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
25 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
26 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
35 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
36 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


70 cycles

6 bytes
68       PLA
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
48       PHA
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
68       PLA
Clobbers S, and Z&N; and writes in stack
12 bytes
48       PHA
A5 00    LDA $00
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
18 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
24 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
35 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


71 cycles

5 bytes
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 09    LDX #9
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
19 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
26 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
36 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
37 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


72 cycles

6 bytes
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
48       PHA
48       PHA
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 08    LDX #8
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
18 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
24 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
36 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


73 cycles

6 bytes
EA       NOP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
20 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
26 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
37 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
38 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


74 cycles

6 bytes
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
48       PHA
08       PHP
A0 09    LDY #9
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 09    LDX #9
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 08    LDY #8
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 08    LDX #8
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 08    LDA #8
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
19 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
25 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
37 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


75 cycles

6 bytes
68       PLA
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
20 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
26 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
38 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
39 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


76 cycles

5 bytes
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
8 bytes
48       PHA
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 08    LDY #8
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 08    LDA #8
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
19 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
26 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
38 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


77 cycles

7 bytes
48       PHA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
21 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
27 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
28 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
39 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes


78 cycles

6 bytes
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0B    LDX #11
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
28       PLP
08       PHP
48       PHA
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
20 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
27 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
39 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


79 cycles

5 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
48       PHA
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
6 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
A5 00    LDA $00
30 xx    BMI @Y
Clobbers A, Y, and Z&N
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
A6 00    LDX $00
30 xx    BMI @Y
Clobbers X, Y, and Z&N
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
24 00    BIT $00
30 xx    BMI @Y
Clobbers Y, Z&N, and V
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
85 xx    STA @zptemp
30 xx    BMI @Y
Clobbers Y, and Z&N; and requires @zptemp
48       PHA
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
04 00    NOP $00
30 xx    BMI @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
7 bytes
A4 00    LDY $00
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
48       PHA
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
21 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
28 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
29 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


80 cycles

6 bytes
68       PLA
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 0B    LDX #11
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
20 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
28 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


81 cycles

5 bytes
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
22 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
29 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
30 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


82 cycles

6 bytes
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
48       PHA
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 09    LDY #9
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 09    LDX #9
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 09    LDY #9
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 09    LDX #9
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
68       PLA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
21 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
28 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


83 cycles

6 bytes
EA       NOP
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 08    LDY #8
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
22 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
30 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


84 cycles

6 bytes
48       PHA
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
38       SEC
A9 09    LDA #9
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
21 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
28 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


85 cycles

6 bytes
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0C    LDX #12
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 0B    LDX #11
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
23 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
30 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


86 cycles

5 bytes
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
24 00    BIT $00
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
08       PHP
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
22 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
29 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


87 cycles

7 bytes
EA       NOP
A2 0C    LDX #12
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0B    LDX #11
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
23 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
30 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


88 cycles

6 bytes
EA       NOP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
22 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
30 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


89 cycles

5 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
68       PLA
30 xx    BMI @Y
Clobbers A, Y, S, and Z&N
6 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
EA       NOP
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
A2 0B    LDX #11
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
08       PHP
A2 09    LDX #9
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
24 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
31 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
32 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


90 cycles

6 bytes
68       PLA
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
23 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
31 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


91 cycles

5 bytes
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
38       SEC
A9 0B    LDA #11
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 09    LDA #9
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
24 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
32 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
33 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


92 cycles

6 bytes
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0D    LDY #13
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 0C    LDX #12
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
68       PLA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
23 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
32 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


93 cycles

6 bytes
EA       NOP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
25 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
33 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
34 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


94 cycles

6 bytes
48       PHA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 0D    LDA #13
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0C    LDX #12
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
24 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
32 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


95 cycles

6 bytes
68       PLA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
25 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
34 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


96 cycles

5 bytes
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 13    LDX #19
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
EA       NOP
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
08       PHP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 0B    LDX #11
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
24 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
32 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


97 cycles

6 bytes
A2 0C    LDX #12
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 0C    LDY #12
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 08    LDX #8
@X:
08       PHP
28       PLP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and writes in stack
A0 08    LDY #8
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and writes in stack
A2 0C    LDX #12
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A0 0C    LDY #12
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 0C    LDX #12
@X:
A4 00    LDY $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Y, and Z&N
A2 0C    LDX #12
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A0 0C    LDY #12
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
A2 0C    LDX #12
@X:
85 xx    STA @zptemp
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
A0 0C    LDY #12
@Y:
85 xx    STA @zptemp
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
A0 0C    LDY #12
@Y:
04 00    NOP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 0C    LDX #12
@X:
04 00    NOP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
26 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
34 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


98 cycles

6 bytes
EA       NOP
A2 13    LDX #19
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
38       SEC
A9 0B    LDA #11
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
25 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
33 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


99 cycles

6 bytes
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 0D    LDY #13
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0C    LDA #12
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
38       SEC
A9 08    LDA #8
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and writes in stack
38       SEC
A9 0C    LDA #12
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, C, and V
38       SEC
A9 0C    LDA #12
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
68       PLA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
38       SEC
A9 0C    LDA #12
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
10 bytes
EA       NOP
98       TYA
48       PHA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
26 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
34 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


100 cycles

6 bytes
A0 0B    LDY #11
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 0B    LDX #11
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0B    LDX #11
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
25 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
34 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


101 cycles

5 bytes
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 0D    LDA #13
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0D    LDA #13
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
27 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
35 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
36 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


102 cycles

7 bytes
48       PHA
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
A2 0B    LDX #11
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
A0 0B    LDY #11
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
A6 00    LDX $00
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
26 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
35 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


103 cycles

6 bytes
EA       NOP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 13    LDX #19
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
8C       TXA
48       PHA
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
27 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
36 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
37 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


104 cycles

6 bytes
48       PHA
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
08       PHP
A0 0C    LDY #12
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0C    LDX #12
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
26 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
36 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


105 cycles

6 bytes
A2 0D    LDX #13
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 0D    LDY #13
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 13    LDX #19
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
28 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
37 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
38 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


106 cycles

5 bytes
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 0C    LDA #12
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 08    LDA #8
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
27 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
36 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


107 cycles

7 bytes
EA       NOP
A2 0D    LDX #13
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A0 0D    LDY #13
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0B    LDX #11
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
28 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
38 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


108 cycles

6 bytes
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
27 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
36 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


109 cycles

6 bytes
48       PHA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A2 0C    LDX #12
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
A0 0C    LDY #12
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
A6 00    LDX $00
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
18       CLC
A9 F4    LDA #244
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
48       PHA
08       PHP
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A6 00    LDX $00
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
29 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
38 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


110 cycles

6 bytes
68       PLA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
28 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
37 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


111 cycles

5 bytes
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
29 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
38 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


112 cycles

7 bytes
48       PHA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
48       PHA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 0D    LDY #13
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
28 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
38 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


113 cycles

6 bytes
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
30 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
39 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes


114 cycles

6 bytes
48       PHA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 0D    LDX #13
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0D    LDY #13
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 0D    LDA #13
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
29 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
39 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


115 cycles

6 bytes
68       PLA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
30 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


116 cycles

5 bytes
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
08       PHP
18       CLC
A9 F4    LDA #244
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
69 01    ADC #1
D0 xx    BNE @A
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 F4    LDA #244
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
69 01    ADC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
29 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


117 cycles

7 bytes
48       PHA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
31 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


118 cycles

6 bytes
EA       NOP
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
30 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


119 cycles

6 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
08       PHP
28       PLP
30 xx    BMI @Y
Clobbers Y, and Z&N; and writes in stack
48       PHA
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
31 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


120 cycles

6 bytes
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
30 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


121 cycles

5 bytes
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
32 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


122 cycles

7 bytes
EA       NOP
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
31 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


123 cycles

6 bytes
EA       NOP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 F4    LDA #244
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
69 01    ADC #1
D0 xx    BNE @A
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
32 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


124 cycles

4 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers X, and Z&N
6 bytes
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
EA       NOP
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
31 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


125 cycles

6 bytes
68       PLA
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


126 cycles

5 bytes
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
08       PHP
28       PLP
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
08       PHP
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
32 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


127 cycles

5 bytes
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
6 bytes
A0 12    LDY #18
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 12    LDX #18
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
68       PLA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


128 cycles

5 bytes
68       PLA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
6 bytes
EA       NOP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
32 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


129 cycles

6 bytes
A2 10    LDX #16
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 10    LDY #16
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
68       PLA
68       PLA
30 xx    BMI @Y
Clobbers A, Y, S, and Z&N
7 bytes
A6 00    LDX $00
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 12    LDA #18
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


130 cycles

6 bytes
48       PHA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


131 cycles

5 bytes
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
6 bytes
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
8 bytes
48       PHA
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
38       SEC
A9 10    LDA #16
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


132 cycles

6 bytes
68       PLA
68       PLA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
BA       TSX
68       PLA
9A       TXS
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers A, X, and Z&N
48       PHA
A0 10    LDY #16
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 10    LDX #16
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


133 cycles

6 bytes
EA       NOP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


134 cycles

6 bytes
A0 13    LDY #19
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 13    LDX #19
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
48       PHA
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
8 bytes
08       PHP
A2 12    LDX #18
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 12    LDY #18
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
9 bytes
EA       NOP
68       PLA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


135 cycles

6 bytes
68       PLA
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


136 cycles

5 bytes
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A0 10    LDY #16
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 10    LDX #16
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 12    LDA #18
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


137 cycles

6 bytes
A2 11    LDX #17
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 11    LDY #17
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 11    LDX #17
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A0 11    LDY #17
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 11    LDX #17
@X:
A4 00    LDY $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Y, and Z&N
A2 11    LDX #17
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A0 11    LDY #17
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
A2 11    LDX #17
@X:
85 xx    STA @zptemp
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
A0 11    LDY #17
@Y:
85 xx    STA @zptemp
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
A2 11    LDX #17
@X:
04 00    NOP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
A0 11    LDY #17
@Y:
04 00    NOP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
A6 00    LDX $00
A2 13    LDX #19
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 13    LDY #19
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
48       PHA
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
68       PLA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
36 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


138 cycles

6 bytes
EA       NOP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
10 bytes
98       TYA
48       PHA
A0 12    LDY #18
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
38       SEC
A9 10    LDA #16
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


139 cycles

6 bytes
48       PHA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 11    LDA #17
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
BA       TSX
68       PLA
9A       TXS
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; and writes in stack
38       SEC
A9 11    LDA #17
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, C, and V
38       SEC
A9 11    LDA #17
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires @zptemp
68       PLA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
38       SEC
A9 11    LDA #17
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
10 bytes
EA       NOP
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
36 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


140 cycles

6 bytes
68       PLA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


141 cycles

5 bytes
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 13    LDX #19
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
37 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


142 cycles

7 bytes
48       PHA
48       PHA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
36 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


143 cycles

6 bytes
EA       NOP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
37 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


144 cycles

6 bytes
48       PHA
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
08       PHP
A2 11    LDX #17
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
36 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


145 cycles

6 bytes
A0 12    LDY #18
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 12    LDX #18
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 10    LDY #16
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 10    LDX #16
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers S, and Z&N; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 12    LDY #18
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
38 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


146 cycles

5 bytes
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 11    LDA #17
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
37 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


147 cycles

7 bytes
EA       NOP
A2 12    LDX #18
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A0 12    LDY #18
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
A2 10    LDX #16
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
38 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


148 cycles

6 bytes
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
48       PHA
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers S, and Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
37 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


149 cycles

6 bytes
48       PHA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
39 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


150 cycles

6 bytes
68       PLA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
38 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


151 cycles

5 bytes
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
39 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


152 cycles

7 bytes
48       PHA
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
38 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


153 cycles

6 bytes
EA       NOP
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


154 cycles

6 bytes
48       PHA
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 11    LDY #17
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 11    LDX #17
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A4 00    LDY $00
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
39 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


155 cycles

6 bytes
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 16    LDX #22
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
8 bytes
08       PHP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
9 bytes
08       PHP
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


156 cycles

5 bytes
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
39 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


157 cycles

7 bytes
EA       NOP
A2 16    LDX #22
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


158 cycles

6 bytes
EA       NOP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


159 cycles

6 bytes
48       PHA
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
68       PLA
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
EA       NOP
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
98       TYA
48       PHA
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


160 cycles

6 bytes
68       PLA
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


161 cycles

5 bytes
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
98       TYA
48       PHA
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


162 cycles

6 bytes
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 17    LDX #23
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 16    LDX #22
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
68       PLA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
08       PHP
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


163 cycles

6 bytes
EA       NOP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


164 cycles

6 bytes
48       PHA
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 17    LDA #23
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
A0 0D    LDY #13
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
@X:
08       PHP
28       PLP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


165 cycles

6 bytes
68       PLA
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


166 cycles

5 bytes
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 0D    LDA #13
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0D    LDA #13
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


167 cycles

7 bytes
48       PHA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


168 cycles

6 bytes
EA       NOP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


169 cycles

6 bytes
A0 18    LDY #24
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 18    LDX #24
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 17    LDX #23
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
9 bytes
EA       NOP
68       PLA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
08       PHP
48       PHA
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


170 cycles

6 bytes
68       PLA
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


171 cycles

5 bytes
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 18    LDA #24
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 17    LDA #23
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 17    LDA #23
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


172 cycles

6 bytes
A0 13    LDY #19
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 13    LDX #19
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 13    LDY #19
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 13    LDX #19
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
68       PLA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


173 cycles

6 bytes
EA       NOP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


174 cycles

5 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
6 bytes
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


175 cycles

6 bytes
68       PLA
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


176 cycles

5 bytes
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 18    LDX #24
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


177 cycles

6 bytes
A0 16    LDY #22
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 16    LDX #22
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 16    LDY #22
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A0 16    LDY #22
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
A0 16    LDY #22
@Y:
85 xx    STA @zptemp
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
A0 16    LDY #22
@Y:
04 00    NOP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


178 cycles

6 bytes
EA       NOP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 18    LDA #24
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 17    LDA #23
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


179 cycles

6 bytes
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 16    LDA #22
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A0 13    LDY #19
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 13    LDX #19
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 16    LDA #22
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, C, and V
38       SEC
A9 16    LDA #22
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
68       PLA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
38       SEC
A9 16    LDA #22
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
10 bytes
EA       NOP
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


180 cycles

6 bytes
68       PLA
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


181 cycles

5 bytes
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
8 bytes
48       PHA
08       PHP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
38       SEC
A9 14    LDA #20
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
08       PHP
A4 00    LDY $00
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


182 cycles

7 bytes
48       PHA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


183 cycles

6 bytes
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


184 cycles

6 bytes
48       PHA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A0 16    LDY #22
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 16    LDX #22
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


185 cycles

6 bytes
A0 17    LDY #23
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 17    LDX #23
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


186 cycles

5 bytes
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 16    LDA #22
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


187 cycles

7 bytes
EA       NOP
A2 17    LDX #23
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A0 17    LDY #23
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


188 cycles

6 bytes
EA       NOP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
38       SEC
A9 14    LDA #20
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 14    LDA #20
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


189 cycles

6 bytes
48       PHA
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


190 cycles

6 bytes
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


191 cycles

5 bytes
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


192 cycles

7 bytes
EA       NOP
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 17    LDY #23
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 17    LDX #23
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


193 cycles

6 bytes
EA       NOP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


194 cycles

6 bytes
48       PHA
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
EA       NOP
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 17    LDY #23
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 17    LDA #23
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


195 cycles

6 bytes
68       PLA
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


196 cycles

5 bytes
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 17    LDY #23
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 17    LDA #23
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


197 cycles

6 bytes
A0 1C    LDY #28
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1C    LDX #28
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
68       PLA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


198 cycles

6 bytes
EA       NOP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


199 cycles

5 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
48       PHA
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
6 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
A5 00    LDA $00
D0 xx    BNE @X
Clobbers A, X, and Z&N
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
A4 00    LDY $00
D0 xx    BNE @X
Clobbers X, Y, and Z&N
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
24 00    BIT $00
D0 xx    BNE @X
Clobbers X, Z&N, and V
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
85 xx    STA @zptemp
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 16    LDY #22
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
04 00    NOP $00
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
7 bytes
A6 00    LDX $00
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 1C    LDA #28
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


200 cycles

6 bytes
68       PLA
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


201 cycles

5 bytes
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


202 cycles

6 bytes
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
48       PHA
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
48       PHA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


203 cycles

6 bytes
EA       NOP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 17    LDY #23
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


204 cycles

6 bytes
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 1C    LDX #28
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1C    LDY #28
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
9 bytes
EA       NOP
68       PLA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


205 cycles

6 bytes
68       PLA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


206 cycles

5 bytes
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
24 00    BIT $00
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1C    LDA #28
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1C    LDA #28
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


207 cycles

7 bytes
48       PHA
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
A6 00    LDX $00
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


208 cycles

6 bytes
EA       NOP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


209 cycles

6 bytes
A0 1A    LDY #26
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 1A    LDX #26
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


210 cycles

6 bytes
68       PLA
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


211 cycles

5 bytes
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


212 cycles

7 bytes
48       PHA
A0 1A    LDY #26
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1A    LDX #26
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 11    LDX #17
@X:
08       PHP
28       PLP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


213 cycles

6 bytes
EA       NOP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


214 cycles

6 bytes
48       PHA
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
48       PHA
08       PHP
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A4 00    LDY $00
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


215 cycles

6 bytes
68       PLA
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


216 cycles

5 bytes
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 1A    LDX #26
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 11    LDY #17
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


217 cycles

6 bytes
A0 1B    LDY #27
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 1B    LDX #27
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 18    LDY #24
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 18    LDX #24
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 18    LDY #24
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 18    LDX #24
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
68       PLA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


218 cycles

6 bytes
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
38       SEC
A9 1A    LDA #26
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


219 cycles

6 bytes
48       PHA
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 1B    LDA #27
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


220 cycles

6 bytes
68       PLA
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


221 cycles

5 bytes
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2C    LDX #44
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


222 cycles

7 bytes
48       PHA
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 11    LDY #17
@Y:
68       PLA
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 11    LDX #17
@X:
68       PLA
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


223 cycles

6 bytes
EA       NOP
A2 2C    LDX #44
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


224 cycles

5 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
68       PLA
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
6 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
08       PHP
A2 18    LDX #24
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


225 cycles

6 bytes
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


226 cycles

5 bytes
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
18       CLC
A9 64    LDA #100
@A = * - 1
; ^ Hides NOP zp
EA       NOP
69 01    ADC #1
10 xx    BPL @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
08       PHP
A6 00    LDX $00
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


227 cycles

6 bytes
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
68       PLA
D0 xx    BNE @X
Clobbers A, X, S, and Z&N; and writes in stack
7 bytes
EA       NOP
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


228 cycles

6 bytes
EA       NOP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 2C    LDX #44
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


229 cycles

6 bytes
48       PHA
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
EA       NOP
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
8C       TXA
48       PHA
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


230 cycles

6 bytes
68       PLA
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 2C    LDX #44
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


231 cycles

5 bytes
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
48       PHA
08       PHP
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
8C       TXA
48       PHA
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


232 cycles

6 bytes
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 21    LDY #33
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
68       PLA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


233 cycles

6 bytes
EA       NOP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
18       CLC
A9 64    LDA #100
@A = * - 1
; ^ Hides NOP zp
EA       NOP
69 01    ADC #1
10 xx    BPL @A
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 64    LDA #100
@A = * - 1
; ^ Hides NOP zp
EA       NOP
69 01    ADC #1
10 xx    BPL @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


234 cycles

6 bytes
48       PHA
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 21    LDA #33
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


235 cycles

6 bytes
A0 1A    LDY #26
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 1A    LDX #26
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


236 cycles

5 bytes
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


237 cycles

7 bytes
48       PHA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A2 1A    LDX #26
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
A0 1A    LDY #26
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


238 cycles

6 bytes
EA       NOP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


239 cycles

6 bytes
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 21    LDY #33
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
9 bytes
EA       NOP
68       PLA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


240 cycles

6 bytes
68       PLA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
48       PHA
18       CLC
A9 64    LDA #100
@A = * - 1
; ^ Hides NOP zp
EA       NOP
69 01    ADC #1
10 xx    BPL @A
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


241 cycles

5 bytes
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 21    LDA #33
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 21    LDA #33
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


242 cycles

7 bytes
48       PHA
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
A6 00    LDX $00
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


243 cycles

6 bytes
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
8C       TXA
48       PHA
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


244 cycles

6 bytes
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 1B    LDY #27
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 1B    LDX #27
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A4 00    LDY $00
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


245 cycles

6 bytes
68       PLA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


246 cycles

5 bytes
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


247 cycles

7 bytes
48       PHA
48       PHA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


248 cycles

6 bytes
EA       NOP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


249 cycles

6 bytes
A0 1F    LDY #31
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 1F    LDX #31
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
48       PHA
08       PHP
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A4 00    LDY $00
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


250 cycles

6 bytes
68       PLA
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


251 cycles

5 bytes
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
38       SEC
A9 1F    LDA #31
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


252 cycles

7 bytes
48       PHA
A0 1F    LDY #31
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1F    LDX #31
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


253 cycles

6 bytes
A0 24    LDY #36
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 24    LDX #36
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 32    LDA #50
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


254 cycles

6 bytes
48       PHA
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


255 cycles

6 bytes
68       PLA
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 24    LDX #36
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 24    LDY #36
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 24    LDA #36
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


256 cycles

5 bytes
A0 33    LDY #51
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 33    LDX #51
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
08       PHP
A2 1F    LDX #31
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1F    LDY #31
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 17    LDA #23
@A:
48       PHA
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
10 bytes
38       SEC
A9 17    LDA #23
@A:
EA       NOP
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
98       TYA
48       PHA
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
12 bytes
48       PHA
EA       NOP
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
08       PHP
48       PHA
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
28       PLP
Writes in stack


More

Bisqwit's 6502 delay_n macro set for ca65: http://bisqwit.iki.fi/src/6502-inline_delay.7z