Fixed cycle delay: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(Bugfix)
(Some commentary)
Line 49: Line 49:
|-
|-
|<pre>A6 00    LDX $00</pre>||Clobbers X, and Z&N
|<pre>A6 00    LDX $00</pre>||Clobbers X, and Z&N
|-
|<pre>C5 00    CMP $00</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00</pre>||Clobbers Z&N, and V
|<pre>24 00    BIT $00</pre>||Clobbers Z&N, and V
Line 75: Line 77:
|-
|-
|}
|}
* zp-indexed modes such as <code>LDA $00,X</code> also do 4 cycles, but having side effects, these two-byte instructions are inferior to a simple 2 &times; <code>NOP</code>.




Line 113: Line 116:
|-
|-
|}
|}
* abs-indexed modes such as <code>LDA $1234,X</code> cause 4 or 5 cycles of delay, depending whether a page wrap occurred. As making sure that a wrap does occur requires extra setup code, you do not see this mode in these samples.




Line 177: Line 181:
|-
|-
|}
|}
* <code>PHP-PLP</code> is very efficient for 7 cycles of delay, but it does modify stack contents. S register remains is unchanged though.
* <code>PLA-PHA</code> does not overwrite any bytes in stack. It just writes back the same byte. But it does clobber A and Z+N.




Line 256: Line 262:
|-
|-
|}
|}
* Jumping into the middle of another instruction is a very efficient way of reducing code size. Note that all code samples using branches on this page require that no page wrap occurs.




Line 288: Line 295:
|-
|-
|}
|}
* Note that the <code>ROL-ROR</code> sequence preserves the original value of the memory address. Carry is also preserved.




Line 396: Line 404:
|-
|-
|}
|}
* <code>JSR-RTS</code> causes 12 cycles of delay. But it does write a function return address in the stack, which may be unwanted in some applications. S is not modified.
* Again, <code>ROL-ROR</code> does not have side effects (as long as an interrupt does not happen in the middle), except for Z+N.




Line 431: Line 441:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A4 00    LDY $00
26 00    ROL $00
66 00    ROR $00</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 436: Line 450:
66 00    ROR $00</pre>||Clobbers X, and Z&N
66 00    ROR $00</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>C5 00    CMP $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre>||Clobbers Y, and Z&N
66 00    ROR $00</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 579: Line 593:
68      PLA
68      PLA
9A      TXS</pre>||Clobbers A, X, and Z&N
9A      TXS</pre>||Clobbers A, X, and Z&N
|-
|<pre>C5 00    CMP $00
20 xx xx JSR @rts12</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 607: Line 624:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|<pre>A4 00    LDY $00
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 612: Line 633:
76 00    ROR $00,X</pre>||Clobbers X, and Z&N
76 00    ROR $00,X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Y, and Z&N
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 633: Line 654:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>18      CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 706: Line 722:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires @rti; and writes in stack
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires @rti; and writes in stack
|-
|<pre>C5 00    CMP $00
00 00    BRK 0</pre>||Clobbers Z&N, and C; requires @rti; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 789: Line 808:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
20 xx xx JSR @rts14</pre>||Clobbers A, and Z&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>A6 00    LDX $00
20 xx xx JSR @rts14</pre>||Clobbers X, and Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
20 xx xx JSR @rts14</pre>||Clobbers Y, and Z&N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Y, and Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>A6 00    LDX $00
|<pre>C5 00    CMP $00
20 xx xx JSR @rts14</pre>||Clobbers X, and Z&N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 841: Line 863:
76 00    ROR $00,X</pre>||Clobbers X, and Z&N
76 00    ROR $00,X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
Line 944: Line 966:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack
|-
|<pre>C5 00    CMP $00
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 958: Line 983:
A5 00    LDA $00
A5 00    LDA $00
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires @rti; and writes in stack
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires @rti; and writes in stack
|-
|<pre>EA      NOP
A6 00    LDX $00
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires @rti; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A4 00    LDY $00
A4 00    LDY $00
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires @rti; and writes in stack
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires @rti; and writes in stack
|-
|<pre>EA      NOP
A6 00    LDX $00
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires @rti; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 1,011: Line 1,036:
68      PLA
68      PLA
48      PHA</pre>||Clobbers A, and Z&N
48      PHA</pre>||Clobbers A, and Z&N
|-
|<pre>EA      NOP
A2 03    LDX #3
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,017: Line 1,048:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 03    LDX #3
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,112: Line 1,137:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
Line 1,290: Line 1,315:
68      PLA
68      PLA
48      PHA</pre>||Clobbers A, and Z&N
48      PHA</pre>||Clobbers A, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A0 03    LDY #3
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,297: Line 1,329:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A0 03    LDY #3
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,381: Line 1,406:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
Line 1,652: Line 1,677:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>C5 00    CMP $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
26 00    ROL $00
90 00    BCC *+2
66 00    ROR $00</pre>||Clobbers Z&N, and C
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 1,930: Line 1,953:
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
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,937: Line 1,967:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
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,992: Line 2,015:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 2,018: Line 2,047:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>18      CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 2,263: Line 2,285:
68      PLA
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA</pre>||Clobbers A, S, and Z&N
|-
|<pre>EA      NOP
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>EA      NOP
|<pre>EA      NOP
Line 2,270: Line 2,299:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>EA      NOP
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>48      PHA
|<pre>48      PHA
Line 2,283: Line 2,305:
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>A0 82    LDY #130 ;hides 'NOP #imm'
@Y = * - 1
04 EA    NOP $EA ;hides 'NOP'
88      DEY
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 82    LDX #130 ;hides 'NOP #imm'
|<pre>A2 82    LDX #130 ;hides 'NOP #imm'
Line 2,289: Line 2,317:
CA      DEX
CA      DEX
30 xx    BMI @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
30 xx    BMI @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|<pre>A0 82    LDY #130 ;hides 'NOP #imm'
@Y = * - 1
04 EA    NOP $EA ;hides 'NOP'
88      DEY
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,332: Line 2,354:
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>C5 00    CMP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 2,384: Line 2,410:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>C5 00    CMP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 2,410: Line 2,442:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>18      CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 2,636: Line 2,661:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires @rti; and writes in stack
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires @rti; and writes in stack
|-
|<pre>C5 00    CMP $00
00 00    BRK 0
00 00    BRK 0</pre>||Clobbers Z&N, and C; requires @rti; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 2,689: Line 2,718:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 03    LDY #3
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,697: Line 2,734:
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
A0 03    LDY #3
@Y:
EA      NOP
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
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre>||Clobbers A, and Z&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>C5 00    CMP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 2,785: Line 2,818:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 3,159: Line 3,192:
68      PLA
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA</pre>||Clobbers A, S, and Z&N
|-
|<pre>48      PHA
08      PHP
A0 04    LDY #4
@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 3,167: Line 3,208:
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 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 3,181: Line 3,214:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A6 00    LDX $00
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 3,189: Line 3,230:
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
A6 00    LDX $00
A2 04    LDX #4
@X:
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 3,233: Line 3,266:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 3,478: Line 3,511:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
A2 03    LDX #3
@X:
C5 00    CMP $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,486: Line 3,527:
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,700: Line 3,733:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 3,909: Line 3,942:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 3,955: Line 3,988:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 04    LDY #4
@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 3,964: Line 4,006:
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>08      PHP
48      PHA
A0 82   LDY #130 ;hides 'NOP #imm'
08      PHP
@Y = * - 1
A0 04   LDY #4
04 EA    NOP $EA ;hides 'NOP'
@Y:
88      DEY
88      DEY
30 xx    BMI @Y
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,981: Line 4,022:
30 xx    BMI @X
30 xx    BMI @X
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
A0 82    LDY #130 ;hides 'NOP #imm'
@Y = * - 1
04 EA    NOP $EA ;hides 'NOP'
88      DEY
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 4,002: Line 4,035:
A2 03    LDX #3
A2 03    LDX #3
@X:
@X:
24 00    BIT $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
Line 4,241: Line 4,274:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>EA      NOP
|<pre>C5 00    CMP $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
26 00    ROL $00
90 00    BCC *+2
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
Line 4,415: Line 4,446:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 04    LDY #4
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,423: Line 4,462:
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
A0 04    LDY #4
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>36 00    ROL $00,X
|<pre>36 00    ROL $00,X
Line 4,486: Line 4,517:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
48      PHA
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
A9 4A    LDA #$0A  ;hides 'ASL A'
Line 4,599: Line 4,630:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
Line 4,606: Line 4,644:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,664: Line 4,695:
10 FD    BPL *-1
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A0 05    LDY #5
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,673: Line 4,713:
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 05    LDY #5
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,752: Line 4,783:
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|<pre>C5 00    CMP $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</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 4,786: Line 4,825:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>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</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 5,054: Line 5,084:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
88      DEY ;first round only
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,062: Line 5,100:
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>08      PHP
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
88      DEY ;first round only
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 5,093: Line 5,123:
10 FD    BPL *-1
10 FD    BPL *-1
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
08      PHP
A2 04    LDX #4
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,102: Line 5,141:
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 04    LDX #4
@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 5,251: Line 5,281:
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|<pre>C5 00    CMP $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</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 5,285: Line 5,323:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>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</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 5,615: Line 5,644:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 5,654: Line 5,683:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 5,842: Line 5,871:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers A, Y, and Z&N
|-
|<pre>48      PHA
48      PHA
A0 07    LDY #7
@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 5,849: Line 5,885:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&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 07    LDY #7
@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 5,863: Line 5,892:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88      DEY
88      DEY
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,871: Line 5,908:
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
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88      DEY
88      DEY
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,900: Line 5,929:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires @rti; and writes in stack
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires @rti; and writes in stack
|-
|<pre>C5 00    CMP $00
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0</pre>||Clobbers Z&N, and C; requires @rti; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 6,036: Line 6,070:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 06    LDY #6
@Y:
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 6,042: Line 6,082:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 06    LDY #6
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,055: Line 6,089:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,062: Line 6,103:
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
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 6,137: Line 6,171:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
48      PHA
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
A9 4A    LDA #$0A  ;hides 'ASL A'
Line 6,171: Line 6,205:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 6,408: Line 6,442:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 04    LDX #4
@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 6,417: Line 6,460:
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:
EA      NOP
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 6,604: Line 6,638:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
A2 06    LDX #6
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,611: Line 6,652:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 06    LDX #6
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,721: Line 6,755:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 7,109: Line 7,143:
88      DEY
88      DEY
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; requires @rti; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; requires @rti; and writes in stack
|-
|<pre>48      PHA
48      PHA
A0 08    LDY #8
@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 7,117: Line 7,158:
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
48       PHA
68       PLA
A0 08    LDY #8
A0 08    LDY #8
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,130: Line 7,171:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>EA      NOP
68      PLA
A0 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 7,195: Line 7,229:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
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 7,204: Line 7,247:
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 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,304: Line 7,338:
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>EA      NOP
|<pre>C5 00    CMP $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
26 00    ROL $00
90 00    BCC *+2
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 7,718: Line 7,750:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
D0 FD    BNE *-1
Line 7,730: Line 7,762:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<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>48      PHA
|<pre>48      PHA
Line 7,739: Line 7,780:
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>48      PHA
|<pre>48      PHA
Line 7,757: Line 7,789:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
A2 07    LDX #7
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,767: Line 7,809:
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
08      PHP
A2 07    LDX #7
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,857: Line 7,889:
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|<pre>C5 00    CMP $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</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 7,899: Line 7,941:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>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</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 8,315: Line 8,346:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
48      PHA
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
A9 4A    LDA #$4A  ;hides 'LSR A'
Line 8,438: Line 8,469:
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>24 00    BIT $00
|<pre>C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 8,446: Line 8,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&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>24 00   BIT $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 8,456: Line 8,487:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|<pre>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</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 8,479: Line 8,520:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>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</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 8,694: Line 8,724:
D0 FD    BNE *-1
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; 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,703: Line 8,742:
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
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,901: Line 8,931:
!colspan="2"|19 bytes
!colspan="2"|19 bytes
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 9,229: Line 9,259:
D0 FD    BNE *-1
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; 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
|<pre>EA      NOP
Line 9,239: Line 9,279:
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 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 9,496: Line 9,526:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 9,789: Line 9,819:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
D0 FD    BNE *-1
Line 9,882: Line 9,912:
{| 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,888: Line 9,924:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&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&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 9,995: Line 10,025:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 10,300: Line 10,330:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
48      PHA
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
A9 4A    LDA #$4A  ;hides 'LSR A'
Line 10,567: Line 10,597:
!colspan="2"|22 bytes
!colspan="2"|22 bytes
|-
|-
|<pre>EA      NOP
|<pre>C5 00    CMP $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
26 00    ROL $00
90 00    BCC *+2
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 10,973: Line 11,001:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0C    LDX #12
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 10,978: Line 11,011:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0C    LDX #12
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 11,023: Line 11,051:
D0 FD    BNE *-1
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 0A    LDY #10
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,031: Line 11,067:
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
A4 00    LDY $00
A0 0A    LDY #10
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
Line 11,186: Line 11,214:
!colspan="2"|22 bytes
!colspan="2"|22 bytes
|-
|-
|<pre>24 00    BIT $00
|<pre>C5 00    CMP $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 11,196: Line 11,224:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|<pre>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</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 11,235: Line 11,275:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>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</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 11,670: Line 11,697:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 0B    LDY #11
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,677: Line 11,711:
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
A0 0B    LDY #11
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 11,772: Line 11,799:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 0A    LDA #10
A9 0A    LDA #10
Line 11,844: Line 11,871:
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
|-
|<pre>C5 00    CMP $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</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 11,894: Line 11,933:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>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</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 12,078: Line 12,104:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 09    LDY #9
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
Line 12,084: Line 12,116:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 09    LDY #9
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 12,450: Line 12,476:
!colspan="2"|23 bytes
!colspan="2"|23 bytes
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 12,893: Line 12,919:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A0 06    LDY #6
@Y:
48      PHA
48      PHA
88      DEY
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
Line 12,903: Line 12,936:
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
@Y:
@Y:
48       PHA
EA       NOP
48       PHA
68       PLA
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
Line 12,914: Line 12,947:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>A0 06    LDY #6
@Y:
EA      NOP
68      PLA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 12,955: Line 12,981:
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&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,964: Line 12,999:
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 13,061: Line 13,087:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 13,396: Line 13,422:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
Line 13,735: Line 13,761:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 14,126: Line 14,152:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 0A    LDA #10
A9 0A    LDA #10
Line 14,239: Line 14,265:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0E    LDY #14
|<pre>A0 0E    LDY #14
Line 14,244: Line 14,275:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 14,350: Line 14,376:
!colspan="2"|26 bytes
!colspan="2"|26 bytes
|-
|-
|<pre>EA      NOP
|<pre>C5 00    CMP $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
26 00    ROL $00
90 00    BCC *+2
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 14,852: Line 14,876:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,858: Line 14,888:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 14,977: Line 15,001:
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
|-
|<pre>C5 00    CMP $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</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 15,035: Line 15,073:
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>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</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 15,246: Line 15,269:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 0E    LDY #14
@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 15,252: Line 15,281:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 15,484: Line 15,507:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 15,491: Line 15,520:
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA      NOP
EA      NOP
A0 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,505: Line 15,535:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A0 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 15,584: Line 15,607:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
Line 15,640: Line 15,663:
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
|-
|<pre>C5 00    CMP $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</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 15,699: Line 15,736:
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18      CLC
!colspan="2"|38 bytes
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</pre>||Clobbers Z&N, and C
|-
!colspan="2"|38 bytes
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
Line 16,169: Line 16,191:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
48      PHA
A0 0E    LDY #14
@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 16,177: Line 16,206:
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
48       PHA
68       PLA
A0 0E    LDY #14
A2 0E    LDX #14
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,190: Line 16,219:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68       PLA
EA       NOP
EA      NOP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,207: Line 16,237:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 16,342: Line 16,364:
!colspan="2"|27 bytes
!colspan="2"|27 bytes
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 16,597: Line 16,619:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,604: Line 16,633:
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 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 16,649: Line 16,671:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
Line 16,808: Line 16,830:
A6 00    LDX $00
A6 00    LDX $00
30 xx    BMI @Y</pre>||Clobbers X, Y, and Z&N
30 xx    BMI @Y</pre>||Clobbers X, Y, and Z&N
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
C5 00    CMP $00
30 xx    BMI @Y</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
Line 16,831: Line 16,858:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A4 00    LDY $00
A0 0F    LDY #15
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 16,837: Line 16,870:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 0F    LDY #15
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 17,016: Line 17,043:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 17,139: Line 17,166:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>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
|<pre>EA      NOP
Line 17,147: Line 17,182:
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 0E    LDY #14
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 17,463: Line 17,490:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 17,600: Line 17,627:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A0 0E    LDY #14
@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 0E    LDX #14
A2 0E    LDX #14
@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&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,617: Line 17,653:
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 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,805: Line 17,832:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
Line 17,909: Line 17,936:
!colspan="2"|30 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>EA      NOP
|<pre>C5 00    CMP $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
26 00    ROL $00
90 00    BCC *+2
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 18,057: Line 18,082:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
@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&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,268: Line 18,293:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
Line 18,328: Line 18,353:
!colspan="2"|30 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>24 00    BIT $00
|<pre>C5 00    CMP $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 18,342: Line 18,367:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>24 00   BIT $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 18,358: Line 18,383:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>85 xx   STA @zptemp
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 18,374: Line 18,399:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|31 bytes
|<pre>04 00    NOP $00
|-
|<pre>4C xx xx JMP *+3
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 18,392: Line 18,415:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|31 bytes
|-
|-
|<pre>18      CLC
|<pre>4C xx xx JMP *+3
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 18,409: Line 18,431:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 18,433: Line 18,457:
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
24 00    BIT $00
C5 00    CMP $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
Line 18,472: Line 18,496:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
@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&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,485: Line 18,509:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
@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&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,789: Line 18,813:
!colspan="2"|30 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>24 00    BIT $00
|<pre>C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 18,803: Line 18,827:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>24 00   BIT $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 18,819: Line 18,843:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>85 xx   STA @zptemp
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 18,835: Line 18,859:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|31 bytes
|<pre>04 00    NOP $00
|-
|<pre>4C xx xx JMP *+3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 18,853: Line 18,875:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|31 bytes
|-
|-
|<pre>18      CLC
|<pre>4C xx xx JMP *+3
90 00    BCC *+2
36 00    ROL $00,X
26 00    ROL $00
76 00    ROR $00,X
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 18,870: Line 18,893:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 18,944: Line 18,967:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 0F    LDA #15
A9 0F    LDA #15
Line 19,151: Line 19,174:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
@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&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 19,239: Line 19,262:
!colspan="2"|31 bytes
!colspan="2"|31 bytes
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 19,420: Line 19,443:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
Line 19,611: Line 19,634:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
@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&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 19,693: Line 19,716:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 20,021: Line 20,044:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
Line 20,035: Line 20,058:
EA      NOP
EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
@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&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 20,133: Line 20,156:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 20,503: Line 20,526:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 0F    LDA #15
A9 0F    LDA #15
Line 20,573: Line 20,596:
!colspan="2"|34 bytes
!colspan="2"|34 bytes
|-
|-
|<pre>EA      NOP
|<pre>C5 00    CMP $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
26 00    ROL $00
90 00    BCC *+2
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 20,722: Line 20,743:
A2 0B    LDX #11
A2 0B    LDX #11
@X:
@X:
24 00    BIT $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
Line 20,923: Line 20,944:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, Y, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, Y, and Z&N
|-
|<pre>A2 0C    LDX #12
@X:
C5 00    CMP $00
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and C
|-
|<pre>A0 0C    LDY #12
@Y:
C5 00    CMP $00
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 21,116: Line 21,149:
!colspan="2"|34 bytes
!colspan="2"|34 bytes
|-
|-
|<pre>24 00    BIT $00
|<pre>C5 00    CMP $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 21,132: Line 21,165:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>24 00   BIT $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 21,150: Line 21,183:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>85 xx   STA @zptemp
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 21,168: Line 21,201:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|35 bytes
|<pre>04 00    NOP $00
|-
|<pre>4C xx xx JMP *+3
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 21,188: Line 21,219:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|35 bytes
|-
|-
|<pre>18      CLC
|<pre>4C xx xx JMP *+3
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 21,207: Line 21,237:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 21,281: Line 21,313:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
Line 21,580: Line 21,612:
!colspan="2"|34 bytes
!colspan="2"|34 bytes
|-
|-
|<pre>24 00    BIT $00
|<pre>C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 21,596: Line 21,628:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>24 00   BIT $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 21,614: Line 21,646:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>85 xx   STA @zptemp
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 21,632: Line 21,664:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|35 bytes
|<pre>04 00    NOP $00
|-
|<pre>4C xx xx JMP *+3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 21,652: Line 21,682:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|35 bytes
|-
|-
|<pre>18      CLC
|<pre>4C xx xx JMP *+3
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 21,671: Line 21,700:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 21,767: Line 21,798:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
Line 22,011: Line 22,042:
!colspan="2"|35 bytes
!colspan="2"|35 bytes
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 22,401: Line 22,432:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
Line 22,501: Line 22,532:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 22,640: Line 22,671:
A2 0C    LDX #12
A2 0C    LDX #12
@X:
@X:
24 00    BIT $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
Line 22,648: Line 22,679:
A0 0C    LDY #12
A0 0C    LDY #12
@Y:
@Y:
24 00    BIT $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
Line 22,984: Line 23,015:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 23,287: Line 23,318:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 18    LDY #24 ;hides 'CLC'
|<pre>A0 18    LDY #24 ;hides 'CLC'
Line 23,293: Line 23,330:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 23,444: Line 23,475:
!colspan="2"|38 bytes
!colspan="2"|38 bytes
|-
|-
|<pre>EA      NOP
|<pre>C5 00    CMP $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
26 00    ROL $00
90 00    BCC *+2
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 23,929: Line 23,958:
!colspan="2"|38 bytes
!colspan="2"|38 bytes
|-
|-
|<pre>24 00    BIT $00
|<pre>C5 00    CMP $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 23,947: Line 23,976:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>24 00   BIT $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 23,967: Line 23,996:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>85 xx   STA @zptemp
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 23,987: Line 24,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&N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|39 bytes
|<pre>04 00    NOP $00
|-
|<pre>4C xx xx JMP *+3
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 24,009: Line 24,036:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|39 bytes
|-
|-
|<pre>18      CLC
|<pre>4C xx xx JMP *+3
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00
66 00    ROR $00
Line 24,030: Line 24,056:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 24,138: Line 24,166:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
Line 24,453: Line 24,481:
!colspan="2"|38 bytes
!colspan="2"|38 bytes
|-
|-
|<pre>24 00    BIT $00
|<pre>C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 24,471: Line 24,499:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>24 00   BIT $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 24,491: Line 24,519:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>85 xx   STA @zptemp
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 24,511: Line 24,539:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|39 bytes
|<pre>04 00    NOP $00
|-
|<pre>4C xx xx JMP *+3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 24,533: Line 24,559:
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|39 bytes
|-
|-
|<pre>18      CLC
|<pre>4C xx xx JMP *+3
90 00    BCC *+2
36 00    ROL $00,X
26 00    ROL $00
76 00    ROR $00,X
66 00    ROR $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 24,554: Line 24,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&N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 24,638: Line 24,665:
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
@Y:
24 00    BIT $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
Line 24,844: Line 24,871:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
Line 24,932: Line 24,959:
!colspan="2"|39 bytes
!colspan="2"|39 bytes
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
90 00    BCC *+2
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 25,894: Line 25,921:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
Line 26,308: Line 26,335:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
Line 26,839: Line 26,866:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 16    LDA #22
A9 16    LDA #22
Line 27,291: Line 27,318:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
Line 27,382: Line 27,409:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 19    LDY #25
|<pre>A0 19    LDY #25
Line 27,387: Line 27,419:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 27,778: Line 27,805:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 19    LDY #25
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,784: Line 27,817:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 19    LDY #25
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 27,844: Line 27,871:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 17    LDA #23
A9 17    LDA #23
Line 28,169: Line 28,196:
@X = * - 1
@X = * - 1
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
A0 19    LDY #25
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,176: Line 28,209:
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A0 19    LDY #25
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA      NOP
EA      NOP
A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,190: Line 28,224:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 28,257: Line 28,284:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 16    LDA #22
A9 16    LDA #22
Line 28,584: Line 28,611:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,592: Line 28,627:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,775: Line 28,802:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 19    LDY #25
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,782: Line 28,816:
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
A0 19    LDY #25
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 28,827: Line 28,854:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
Line 29,150: Line 29,177:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,158: Line 29,193:
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 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,208: Line 29,235:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 17    LDA #23
A9 17    LDA #23
Line 29,322: Line 29,349:
E9 01    SBC #1
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|<pre>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 29,330: Line 29,365:
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 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 29,344: Line 29,371:
A2 10    LDX #16
A2 10    LDX #16
@X:
@X:
24 00    BIT $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
Line 29,352: Line 29,379:
A0 10    LDY #16
A0 10    LDY #16
@Y:
@Y:
24 00    BIT $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
Line 29,470: Line 29,497:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, Y, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, Y, and Z&N
|-
|<pre>A2 11    LDX #17
@X:
C5 00    CMP $00
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and C
|-
|<pre>A0 11    LDY #17
@Y:
C5 00    CMP $00
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 29,540: Line 29,579:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,557: Line 29,605:
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 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,738: Line 29,777:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
Line 29,888: Line 29,927:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&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
A0 19    LDY #25
@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 29,897: Line 29,945:
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 19    LDY #25
@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 29,925: Line 29,964:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,130: Line 30,169:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
Line 30,184: Line 30,223:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1C    LDY #28
|<pre>A0 1C    LDY #28
Line 30,189: Line 30,233:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 30,232: Line 30,271:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, S, and Z&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 30,245: Line 30,284:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,541: Line 30,580:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,547: Line 30,592:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,654: Line 30,693:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 1C    LDY #28
@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 30,660: Line 30,705:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,693: Line 30,732:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 11    LDY #17
A2 11    LDX #17
@Y:
@X:
24 00    BIT $00
C5 00    CMP $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 11    LDY #17
@Y:
C5 00    CMP $00
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 11    LDX #17
@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 30,740: Line 30,779:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 30,999: Line 31,038:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 1D    LDY #29
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1D    LDX #29
|<pre>A2 1D    LDX #29
Line 31,004: Line 31,048:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 1D    LDY #29
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 31,124: Line 31,163:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 31,377: Line 31,416:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,384: Line 31,430:
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
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 31,438: Line 31,477:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
Line 31,466: Line 31,505:
EA      NOP
EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 31,794: Line 31,833:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,802: Line 31,849:
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 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 31,908: Line 31,947:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>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,916: Line 31,963:
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 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 32,144: Line 32,183:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 1C    LDY #28
A2 1C    LDX #28
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,322: Line 32,361:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
Line 32,432: Line 32,471:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
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 32,441: Line 32,489:
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 1C    LDY #28
@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 32,462: Line 32,501:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 1C    LDY #28
A2 1C    LDX #28
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,668: Line 32,707:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
Line 32,790: Line 32,829:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 1C    LDY #28
A2 1C    LDX #28
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, S, and Z&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 33,090: Line 33,129:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
Line 33,246: Line 33,285:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 1C    LDY #28
A2 1C    LDX #28
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 33,371: Line 33,410:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
Line 33,497: Line 33,536:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 1C    LDY #28
A2 1C    LDX #28
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 33,686: Line 33,725:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 1E    LDA #30
A9 1E    LDA #30
Line 33,948: Line 33,987:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
Line 34,254: Line 34,293:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 1F    LDA #31
A9 1F    LDA #31
Line 34,311: Line 34,350:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 18    LDY #24
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 18    LDX #24
|<pre>A2 18    LDX #24
Line 34,317: Line 34,362:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 18    LDY #24
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 34,484: Line 34,523:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 1E    LDA #30
A9 1E    LDA #30
Line 34,795: Line 34,834:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 20    LDA #32
A9 20    LDA #32
Line 35,031: Line 35,070:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 1F    LDA #31
A9 1F    LDA #31
Line 35,208: Line 35,247:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A0 16    LDY #22
@Y:
C5 00    CMP $00
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
Line 35,708: Line 35,753:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 20    LDA #32
A9 20    LDA #32
Line 36,067: Line 36,112:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
Line 36,182: Line 36,227:
A0 16    LDY #22
A0 16    LDY #22
@Y:
@Y:
24 00    BIT $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
Line 36,738: Line 36,783:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
Line 37,007: Line 37,052:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
Line 37,208: Line 37,253:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
A2 17    LDX #23
@X:
C5 00    CMP $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 17    LDY #23
A0 17    LDY #23
@Y:
@Y:
24 00    BIT $00
C5 00    CMP $00
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
!colspan="2"|10 bytes
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"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 37,329: Line 37,374:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
Line 37,439: Line 37,484:
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 17    LDY #23
@Y:
C5 00    CMP $00
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,444: Line 37,498:
A2 17    LDX #23
A2 17    LDX #23
@X:
@X:
24 00    BIT $00
C5 00    CMP $00
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 17    LDY #23
@Y:
24 00    BIT $00
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 37,598: Line 37,643:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
Line 37,924: Line 37,969:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
Line 37,998: Line 38,043:
A4 00    LDY $00
A4 00    LDY $00
D0 xx    BNE @X</pre>||Clobbers X, Y, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, Y, and Z&N
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
C5 00    CMP $00
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and C
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
Line 38,209: Line 38,259:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
Line 38,225: Line 38,275:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 28    LDX #40
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 28    LDY #40
|<pre>A0 28    LDY #40
Line 38,230: Line 38,285:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 28    LDX #40
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 38,484: Line 38,534:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 28    LDY #40
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,490: Line 38,546:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 28    LDY #40
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 38,550: Line 38,600:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
Line 38,710: Line 38,760:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 28    LDY #40
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 38,717: Line 38,773:
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A0 28    LDY #40
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA      NOP
EA      NOP
A2 28    LDX #40
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,731: Line 38,788:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A2 28    LDX #40
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 38,798: Line 38,848:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
Line 38,830: Line 38,880:
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
24 00    BIT $00
C5 00    CMP $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
Line 38,924: Line 38,974:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>EA      NOP
68      PLA
A2 28    LDX #40
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 38,931: Line 38,988:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>EA      NOP
68      PLA
A2 28    LDX #40
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 39,051: Line 39,101:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 28    LDY #40
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 39,058: Line 39,115:
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
A0 28    LDY #40
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 39,113: Line 39,163:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 27    LDA #39
A9 27    LDA #39
Line 39,326: Line 39,376:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 28    LDY #40
A2 28    LDX #40
@Y:
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 28    LDY #40
@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
08      PHP
A2 28    LDX #40
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,381: Line 39,431:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
Line 39,588: Line 39,638:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 28    LDY #40
A2 28    LDX #40
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 39,809: Line 39,859:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 28    LDY #40
A2 28    LDX #40
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 39,971: Line 40,021:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 27    LDA #39
A9 27    LDA #39
Line 40,024: Line 40,074:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 1A    LDX #26
@X:
C5 00    CMP $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
@Y:
24 00    BIT $00
C5 00    CMP $00
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:
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 40,051: Line 40,101:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 28    LDY #40
A2 28    LDX #40
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, S, and Z&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 40,328: Line 40,378:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
Line 40,484: Line 40,534:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 28    LDY #40
A2 28    LDX #40
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 40,724: Line 40,774:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 28    LDY #40
A2 28    LDX #40
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 40,958: Line 41,008:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
Line 41,152: Line 41,202:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 20    LDY #32
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 20    LDX #32
|<pre>A2 20    LDX #32
Line 41,158: Line 41,214:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A0 20    LDY #32
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,384: Line 41,434:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
A2 20    LDX #32
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,391: Line 41,448:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 20    LDX #32
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,541: Line 41,591:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 2B    LDA #43
A9 2B    LDA #43
Line 41,815: Line 41,865:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
Line 41,980: Line 42,030:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 20    LDX #32
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 41,988: Line 42,046:
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 20    LDX #32
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 42,145: Line 42,195:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 2C    LDA #44
A9 2C    LDA #44
Line 42,384: Line 42,434:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 2B    LDA #43
A9 2B    LDA #43
Line 42,463: Line 42,513:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 20    LDX #32
A0 20    LDY #32
@X:
@Y:
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&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 42,724: Line 42,774:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 2D    LDA #45
A9 2D    LDA #45
Line 42,984: Line 43,034:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 2C    LDA #44
A9 2C    LDA #44
Line 43,000: Line 43,050:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 30    LDY #48
|<pre>A0 30    LDY #48
Line 43,005: Line 43,060:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 43,240: Line 43,290:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,246: Line 43,302:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 43,316: Line 43,366:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 2E    LDA #46
A9 2E    LDA #46
Line 43,328: Line 43,378:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 20    LDX #32
A0 20    LDY #32
@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&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 43,359: Line 43,409:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 30    LDY #48
@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 43,365: Line 43,421:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 1B    LDY #27
|<pre>A0 1B    LDY #27
Line 43,508: Line 43,558:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 43,515: Line 43,571:
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA      NOP
EA      NOP
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,529: Line 43,586:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 43,596: Line 43,646:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 2D    LDA #45
A9 2D    LDA #45
Line 43,750: Line 43,800:
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A0 30    LDY #48
A2 30    LDX #48
@Y:
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
48      PHA
A0 30    LDY #48
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
48       PHA
68       PLA
A2 30    LDX #48
A2 30    LDX #48
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,768: Line 43,825:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68       PLA
EA       NOP
A2 30    LDX #48
EA      NOP
@X:
A0 30    LDY #48
CA       DEX
@Y:
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
88       DEY
|-
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 43,785: Line 43,843:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 43,890: Line 43,940:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 43,897: Line 43,954:
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
A0 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 44,142: Line 44,192:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 44,150: Line 44,208:
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 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 44,212: Line 44,262:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A5 00    LDA $00
38      SEC
38      SEC
A9 2E    LDA #46
A9 2E    LDA #46
Line 44,448: Line 44,498:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A0 30    LDY #48
A0 30    LDY #48
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
68       PLA
28       PLP</pre>||Clobbers Y; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 44,465: Line 44,524:
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 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 44,587: Line 44,637:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A5 00    LDA $00
48      PHA
38      SEC
38      SEC
A9 30    LDA #48
A9 30    LDA #48
Line 44,702: Line 44,752:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 30    LDY #48
A2 30    LDX #48
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 44,720: Line 44,780:
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
08      PHP
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 44,889: Line 44,939:
A2 1F    LDX #31
A2 1F    LDX #31
@X:
@X:
24 00    BIT $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
Line 44,897: Line 44,947:
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
@Y:
24 00    BIT $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
Line 44,923: Line 44,973:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 30    LDY #48
A2 30    LDX #48
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes

Revision as of 18:08, 14 March 2016

Delay code

Shortest possible CPU code that creates N cycles of delay, depending on constraints.

Assumptions:

  • No page wrap occurs during any branch instruction.
  • No interrupt / NMI occurs during the delay code.

It is permissible for DMA to steal cycles during the loops. If you are expecting that to happen, you have to manually adjust the delay cycle count (and it is in fact possible to do so) in order to get the correct delay.

Explanations on the requirements:

  • @zptemp means you have a zeropage address that you can write random data into.
  • @rti means you have a dummy interrupt handler installed that does nothing but RTI.
  • @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
C5 00    CMP $00
Clobbers Z&N, and C
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
  • zp-indexed modes such as LDA $00,X also do 4 cycles, but having side effects, these two-byte instructions are inferior to a simple 2 × NOP.


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
  • abs-indexed modes such as LDA $1234,X cause 4 or 5 cycles of delay, depending whether a page wrap occurred. As making sure that a wrap does occur requires extra setup code, you do not see this mode in these samples.


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
68       PLA
48       PHA
Clobbers A, and Z&N
4 bytes
EA       NOP
EA       NOP
A4 00    LDY $00
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A6 00    LDX $00
Clobbers X, 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
  • PHP-PLP is very efficient for 7 cycles of delay, but it does modify stack contents. S register remains is unchanged though.
  • PLA-PHA does not overwrite any bytes in stack. It just writes back the same byte. But it does clobber A and Z+N.


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
EA       NOP
68       PLA
48       PHA
Clobbers A, and Z&N
4 bytes
A2 AE    LDX #$AE  ;hides 'LDX $FDD0'
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 AC    LDY #$AC  ;hides 'LDY $FDD0'
D0 FD    BNE *-1
Clobbers Y, and Z&N
5 bytes
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
  • Jumping into the middle of another instruction is a very efficient way of reducing code size. Note that all code samples using branches on this page require that no page wrap occurs.


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
  • Note that the ROL-ROR sequence preserves the original value of the memory address. Carry is also preserved.


11 cycles

3 bytes
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
4 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
Writes in stack
EA       NOP
EA       NOP
68       PLA
48       PHA
Clobbers A, 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
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
  • JSR-RTS causes 12 cycles of delay. But it does write a function return address in the stack, which may be unwanted in some applications. S is not modified.
  • Again, ROL-ROR does not have side effects (as long as an interrupt does not happen in the middle), except for Z+N.


13 cycles

2 bytes
00 00    BRK 0
Requires @rti; and writes in stack
4 bytes
48       PHA
48       PHA
08       PHP
28       PLP
Clobbers S; and writes in stack
EA       NOP
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
5 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
Writes in stack
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
Clobbers A, and Z&N
6 bytes
A4 00    LDY $00
26 00    ROL $00
66 00    ROR $00
Clobbers Y, and Z&N
A6 00    LDX $00
26 00    ROL $00
66 00    ROR $00
Clobbers X, and Z&N
C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N, and C
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
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
EA       NOP
00 00    BRK 0
Requires @rti; and writes in stack
4 bytes
48       PHA
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
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
68       PLA
48       PHA
BA       TSX
68       PLA
9A       TXS
Clobbers A, X, and Z&N
C5 00    CMP $00
20 xx xx JSR @rts12
Clobbers Z&N, and C; requires @rts12; 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
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
A4 00    LDY $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Y, and Z&N
A6 00    LDX $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers X, and Z&N
C5 00    CMP $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
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
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

3 bytes
48       PHA
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
4 bytes
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
A5 00    LDA $00
00 00    BRK 0
Clobbers A, and Z&N; requires @rti; and writes in stack
A4 00    LDY $00
00 00    BRK 0
Clobbers Y, and Z&N; requires @rti; and writes in stack
A6 00    LDX $00
00 00    BRK 0
Clobbers X, and Z&N; requires @rti; and writes in stack
C5 00    CMP $00
00 00    BRK 0
Clobbers Z&N, and C; requires @rti; and writes in stack
24 00    BIT $00
00 00    BRK 0
Clobbers Z&N, and V; requires @rti; and writes in stack
85 xx    STA @zptemp
00 00    BRK 0
Requires @zptemp, and @rti; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
00 00    BRK 0
Requires @rti, and support for unofficial opcodes; and writes in stack
5 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
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

3 bytes
68       PLA
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
4 bytes
EA       NOP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
EA       NOP
00 00    BRK 0
Requires @rti; 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
A6 00    LDX $00
20 xx xx JSR @rts14
Clobbers X, 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
C5 00    CMP $00
20 xx xx JSR @rts14
Clobbers Z&N, and C; 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
EA       NOP
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
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
68       PLA
48       PHA
26 00    ROL $00
66 00    ROR $00
Clobbers A, and Z&N
7 bytes
EA       NOP
A4 00    LDY $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Y, 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
C5 00    CMP $00
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
EA       NOP
48       PHA
00 00    BRK 0
Clobbers S; requires @rti; 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
A4 00    LDY $00
20 xx xx JSR @rts15
Clobbers Y, 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
C5 00    CMP $00
20 xx xx JSR @rts15
Clobbers Z&N, and C; 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
EA       NOP
A5 00    LDA $00
00 00    BRK 0
Clobbers A, and Z&N; requires @rti; and writes in stack
EA       NOP
A6 00    LDX $00
00 00    BRK 0
Clobbers X, and Z&N; requires @rti; and writes in stack
EA       NOP
A4 00    LDY $00
00 00    BRK 0
Clobbers Y, and Z&N; requires @rti; and writes in stack
18       CLC
90 00    BCC *+2
00 00    BRK 0
Clobbers C; requires @rti; and writes in stack
B8       CLV
50 00    BVC *+2
00 00    BRK 0
Clobbers V; requires @rti; and writes in stack
EA       NOP
85 xx    STA @zptemp
00 00    BRK 0
Requires @zptemp, and @rti; 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
EA       NOP
04 00    NOP $00
00 00    BRK 0
Requires @rti, 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
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
EA       NOP
A2 03    LDX #3
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 03    LDY #3
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
48       PHA
48       PHA
00 00    BRK 0
Clobbers S; requires @rti; 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
EA       NOP
EA       NOP
EA       NOP
00 00    BRK 0
Requires @rti; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
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
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, 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
C5 00    CMP $00
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

4 bytes
08       PHP
28       PLP
00 00    BRK 0
Requires @rti; and writes in stack
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
A4 00    LDY $00
20 xx xx JSR @rts15
Clobbers Y, 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
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
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
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

4 bytes
68       PLA
68       PLA
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
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
EA       NOP
48       PHA
48       PHA
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
6 bytes
08       PHP
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
9 bytes
EA       NOP
EA       NOP
EA       NOP
C5 00    CMP $00
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
EA       NOP
08       PHP
28       PLP
00 00    BRK 0
Requires @rti; 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
48       PHA
08       PHP
28       PLP
00 00    BRK 0
Clobbers S; requires @rti; 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
08       PHP
24 00    BIT $00
28       PLP
00 00    BRK 0
Requires @rti; and writes in stack
EA       NOP
48       PHA
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
48       PHA
Clobbers A, S, and Z&N
7 bytes
EA       NOP
08       PHP
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
10 bytes
C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
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

4 bytes
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
5 bytes
48       PHA
68       PLA
68       PLA
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
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
EA       NOP
EA       NOP
08       PHP
28       PLP
00 00    BRK 0
Requires @rti; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
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
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A6 00    LDX $00
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
48       PHA
68       PLA
48       PHA
68       PLA
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

5 bytes
20 xx xx JSR @rts12
00 00    BRK 0
Requires @rti, and @rts12; and writes in stack
68       PLA
68       PLA
68       PLA
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
6 bytes
36 00    ROL $00,X
76 00    ROR $00,X
00 00    BRK 0
Clobbers Z&N; requires @rti; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts15; 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
A2 03    LDX #3
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, 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
EA       NOP
48       PHA
08       PHP
28       PLP
00 00    BRK 0
Clobbers S; requires @rti; 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
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
08       PHP
24 00    BIT $00
28       PLP
00 00    BRK 0
Requires @rti; 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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
8 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
10 bytes
C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
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
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
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

4 bytes
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
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
EA       NOP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
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
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
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

5 bytes
00 00    BRK 0
20 xx xx JSR @rts14
Requires @rti, and @rts14; and writes in stack
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C; and writes in stack
6 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts15
Requires @rts12, and @rts15; and writes in stack
A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
08       PHP
28       PLP
08       PHP
28       PLP
00 00    BRK 0
Requires @rti; 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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
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
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
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
A0 82    LDY #130 ;hides 'NOP #imm'
@Y = * - 1
04 EA    NOP $EA ;hides 'NOP'
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 82    LDX #130 ;hides 'NOP #imm'
@X = * - 1
04 EA    NOP $EA ;hides 'NOP'
CA       DEX
30 xx    BMI @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
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
C5 00    CMP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers Z&N, and C; requires @rts12; 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
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Clobbers S; and writes in stack
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
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
10 bytes
C5 00    CMP $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
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
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

5 bytes
EA       NOP
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
68       PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
6 bytes
EA       NOP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
7 bytes
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
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

5 bytes
48       PHA
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
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
A5 00    LDA $00
00 00    BRK 0
00 00    BRK 0
Clobbers A, and Z&N; requires @rti; and writes in stack
C5 00    CMP $00
00 00    BRK 0
00 00    BRK 0
Clobbers Z&N, and C; requires @rti; and writes in stack
24 00    BIT $00
00 00    BRK 0
00 00    BRK 0
Clobbers Z&N, and V; requires @rti; and writes in stack
EA       NOP
00 00    BRK 0
20 xx xx JSR @rts14
Requires @rti, and @rts14; and writes in stack
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
Requires @zptemp, and @rti; and writes in stack
EA       NOP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C; and writes in stack
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
Requires @rti, and support for unofficial opcodes; 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
EA       NOP
A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
00 00    BRK 0
Requires @rti; 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
A0 03    LDY #3
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 03    LDX #3
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
C5 00    CMP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Clobbers Z&N, and C; 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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
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
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
68       PLA
48       PHA
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
11 bytes
EA       NOP
C5 00    CMP $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
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

5 bytes
68       PLA
00 00    BRK 0
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
6 bytes
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
EA       NOP
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
68       PLA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
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
EA       NOP
EA       NOP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
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
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
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
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
6 bytes
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
EA       NOP
48       PHA
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
7 bytes
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
18       CLC
90 00    BCC *+2
00 00    BRK 0
00 00    BRK 0
Clobbers C; requires @rti; and writes in stack
B8       CLV
50 00    BVC *+2
00 00    BRK 0
00 00    BRK 0
Clobbers V; requires @rti; and writes in stack
EA       NOP
EA       NOP
00 00    BRK 0
20 xx xx JSR @rts14
Requires @rti, and @rts14; and writes in stack
EA       NOP
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
Requires @zptemp, and @rti; and writes in stack
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
EA       NOP
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
Requires @rti, and support for unofficial opcodes; 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
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
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
00 00    BRK 0
Requires @rti; 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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
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
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Clobbers S; and writes in stack
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
68       PLA
48       PHA
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
12 bytes
EA       NOP
EA       NOP
C5 00    CMP $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
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

6 bytes
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
88       DEY ;first round only
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
CA       DEX ;first round only
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
68       PLA
68       PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
48       PHA
48       PHA
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
7 bytes
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
EA       NOP
EA       NOP
00 00    BRK 0
00 00    BRK 0
Requires @rti; 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
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
68       PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
A0 FA    LDY #250 ;hides 'NOP'
@Y = * - 1
EA       NOP
C8       INY
C8       INY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 FA    LDX #250 ;hides 'NOP'
@X = * - 1
EA       NOP
E8       INX
E8       INX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
A4 00    LDY $00
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
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
8C       TXA
48       PHA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 03    LDX #3
@X:
C5 00    CMP $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
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
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
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
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
7 bytes
EA       NOP
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; 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
08       PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; 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
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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
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
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
13 bytes
EA       NOP
EA       NOP
EA       NOP
C5 00    CMP $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
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

5 bytes
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
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
68       PLA
68       PLA
00 00    BRK 0
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
7 bytes
A6 00    LDX $00
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
08       PHP
28       PLP
00 00    BRK 0
20 xx xx JSR @rts14
Requires @rti, and @rts14; and writes in stack
48       PHA
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA       NOP
68       PLA
68       PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
EA       NOP
48       PHA
48       PHA
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; 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
08       PHP
A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; and writes in stack
C5 00    CMP $00
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
26 00    ROL $00
66 00    ROR $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
00 00    BRK 0
00 00    BRK 0
Requires @rti; 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
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
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
08       PHP
A0 82    LDY #130 ;hides 'NOP #imm'
@Y = * - 1
04 EA    NOP $EA ;hides 'NOP'
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; requires support for unofficial opcodes; and writes in stack
08       PHP
A2 82    LDX #130 ;hides 'NOP #imm'
@X = * - 1
04 EA    NOP $EA ;hides 'NOP'
CA       DEX
30 xx    BMI @X
28       PLP
Clobbers X; requires support for unofficial opcodes; 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
08       PHP
A2 03    LDX #3
@X:
C5 00    CMP $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
48       PHA
48       PHA
08       PHP
28       PLP
08       PHP
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
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
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88       DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8       INX
E8       INX
D0 xx    BNE @X
Clobbers X, Z&N, and D
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
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
68       PLA
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, S, and Z&N; and writes in stack
68       PLA
68       PLA
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
8 bytes
EA       NOP
EA       NOP
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; 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
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
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; 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
18       CLC
90 00    BCC *+2
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
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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
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
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
14 bytes
C5 00    CMP $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 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
7 bytes
20 xx xx JSR @rts12
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
68       PLA
68       PLA
68       PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
48       PHA
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
8 bytes
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
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
08       PHP
24 00    BIT $00
28       PLP
00 00    BRK 0
00 00    BRK 0
Requires @rti; 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
EA       NOP
48       PHA
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, and S; and writes in stack
EA       NOP
48       PHA
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers S, Z&N, and C; 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
08       PHP
EA       NOP
A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; and writes in stack
EA       NOP
C5 00    CMP $00
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
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
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
00 00    BRK 0
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C; requires @rti; and writes in stack
48       PHA
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88       DEY
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 04    LDY #4
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 04    LDX #4
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 04    LDY #4
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 04    LDX #4
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
68       PLA
68       PLA
00 00    BRK 0
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
48       PHA
48       PHA
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers S, Z&N, and C; 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
EA       NOP
EA       NOP
EA       NOP
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; 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
EA       NOP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; 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
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
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
11 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
14 bytes
C5 00    CMP $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
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
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
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
20 xx xx JSR @rts12
00 00    BRK 0
00 00    BRK 0
Requires @rti, and @rts12; and writes in stack
68       PLA
68       PLA
68       PLA
00 00    BRK 0
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
8 bytes
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
10 bytes
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
12 bytes
68       PLA
48       PHA
68       PLA
48       PHA
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
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

4 bytes
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
6 bytes
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
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
8 bytes
08       PHP
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
88       DEY ;first round only
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers A, and Y; and writes in stack
08       PHP
A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
CA       DEX ;first round only
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; and writes in stack
68       PLA
68       PLA
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, S, and Z&N; and writes in stack
9 bytes
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, 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
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
EA       NOP
48       PHA
48       PHA
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
A0 FA    LDY #250 ;hides 'NOP'
@Y = * - 1
EA       NOP
C8       INY
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers Y; requires support for unofficial opcodes; and writes in stack
08       PHP
A2 FA    LDX #250 ;hides 'NOP'
@X = * - 1
EA       NOP
E8       INX
E8       INX
D0 xx    BNE @X
28       PLP
Clobbers X; requires support for unofficial opcodes; and writes in stack
10 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; 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
EA       NOP
EA       NOP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; 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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
11 bytes
48       PHA
8C       TXA
48       PHA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; 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
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
48       PHA
68       PLA
48       PHA
68       PLA
28       PLP
Writes in stack
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
14 bytes
C5 00    CMP $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
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
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
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
00 00    BRK 0
00 00    BRK 0
20 xx xx JSR @rts14
Requires @rti, and @rts14; and writes in stack
48       PHA
00 00    BRK 0
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C; requires @rti; and writes in stack
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
08       PHP
28       PLP
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
9 bytes
EA       NOP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
10 bytes
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
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
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
EA       NOP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
7 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
8 bytes
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
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
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
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
10 bytes
08       PHP
C5 00    CMP $00
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
11 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
15 bytes
EA       NOP
C5 00    CMP $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
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

5 bytes
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C; and writes in stack
6 bytes
A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
7 bytes
EA       NOP
A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
EA       NOP
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
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
48       PHA
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
8 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88       DEY
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8       INX
E8       INX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
A5 00    LDA $00
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers A, and Z&N; requires @rti; and writes in stack
C5 00    CMP $00
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers Z&N, and C; requires @rti; and writes in stack
24 00    BIT $00
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers Z&N, and V; requires @rti; and writes in stack
EA       NOP
00 00    BRK 0
00 00    BRK 0
20 xx xx JSR @rts14
Requires @rti, and @rts14; and writes in stack
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @zptemp, and @rti; and writes in stack
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti, and support for unofficial opcodes; and writes in stack
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
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
10 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
11 bytes
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
12 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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

5 bytes
68       PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
6 bytes
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
7 bytes
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
68       PLA
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
8 bytes
EA       NOP
EA       NOP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
9 bytes
20 xx xx JSR @rts12
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; requires @rts12; and writes in stack
20 xx xx JSR @rts12
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, S, and Z&N; and writes in stack
10 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; and writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
48       PHA
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
08       PHP
EA       NOP
C5 00    CMP $00
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
14 bytes
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
16 bytes
EA       NOP
EA       NOP
C5 00    CMP $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
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
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA       NOP
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA       DEX
CA       DEX
D0 xx    BNE @X
Clobbers A, X, Z&N, and C
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
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
A6 00    LDX $00
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
8 bytes
00 00    BRK 0
08       PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; requires @rti; and writes in stack
00 00    BRK 0
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; requires @rti; and writes in stack
48       PHA
08       PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
48       PHA
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
9 bytes
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
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
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
18       CLC
90 00    BCC *+2
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers C; requires @rti; and writes in stack
B8       CLV
50 00    BVC *+2
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers V; requires @rti; and writes in stack
EA       NOP
EA       NOP
00 00    BRK 0
00 00    BRK 0
20 xx xx JSR @rts14
Requires @rti, and @rts14; and writes in stack
EA       NOP
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @zptemp, and @rti; and writes in stack
EA       NOP
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti, and support for unofficial opcodes; and writes in stack
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
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
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
13 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
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
EA       NOP
68       PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
7 bytes
EA       NOP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
8 bytes
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
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
48       PHA
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
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
EA       NOP
EA       NOP
EA       NOP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
10 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
12 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
14 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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
17 bytes
EA       NOP
EA       NOP
EA       NOP
C5 00    CMP $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
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
6 bytes
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
8 bytes
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
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
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
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
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
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
EA       NOP
48       PHA
48       PHA
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
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
Clobbers A, S, and Z&N
14 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
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

6 bytes
68       PLA
68       PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
7 bytes
BA       TSX
68       PLA
9A       TXS
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, X, Z&N, and C
00 00    BRK 0
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N; requires @rti; and writes in stack
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
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
08       PHP
A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; and writes in stack
08       PHP
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers A, and Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
68       PLA
68       PLA
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers A, S, and Z&N; requires @rti; and writes in stack
9 bytes
8C       TXA
48       PHA
A2 07    LDX #7
@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 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
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
20 xx xx JSR @rts14
Requires @rti, and @rts14; and writes in stack
EA       NOP
48       PHA
48       PHA
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
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
EA       NOP
EA       NOP
EA       NOP
EA       NOP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
11 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
12 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
14 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18 bytes
C5 00    CMP $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 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
EA       NOP
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; 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
08       PHP
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; 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
9 bytes
EA       NOP
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
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
11 bytes
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
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Clobbers S; 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
08       PHP
24 00    BIT $00
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
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
15 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
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 ;hides 'DEY'
@Y = * - 1
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
48       PHA
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA       NOP
68       PLA
68       PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
8 bytes
08       PHP
A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
C5 00    CMP $00
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
26 00    ROL $00
66 00    ROR $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
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
48       PHA
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Clobbers S; requires @rti; and writes in stack
10 bytes
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
08       PHP
24 00    BIT $00
28       PLP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
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
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
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
13 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
48       PHA
Clobbers A, S, and Z&N
14 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
18 bytes
C5 00    CMP $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
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
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
7 bytes
68       PLA
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, S, and Z&N; and writes in stack
68       PLA
68       PLA
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
8 bytes
EA       NOP
EA       NOP
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
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
EA       NOP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; 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
10 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
11 bytes
20 xx xx JSR @rts12
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Requires @rts12; and writes in stack
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
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
13 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
Clobbers A, S, and Z&N
16 bytes
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
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
7 bytes
20 xx xx JSR @rts12
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
68       PLA
68       PLA
68       PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
8 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA       NOP
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA       DEX
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; and writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
EA       NOP
48       PHA
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, 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
EA       NOP
48       PHA
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
9 bytes
08       PHP
EA       NOP
A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; 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
EA       NOP
C5 00    CMP $00
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
20 xx xx JSR @rts12
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti, and @rts12; and writes in stack
10 bytes
00 00    BRK 0
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Requires @rti; and writes in stack
11 bytes
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
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
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
48       PHA
48       PHA
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
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
48       PHA
Clobbers A, S, and Z&N
15 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
18 bytes
C5 00    CMP $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
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
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 ;hides 'DEY'
@Y = * - 1
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
6 bytes
A4 00    LDY $00
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 xx    BMI @Y
Clobbers Y, and Z&N
00 00    BRK 0
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires @rti; and writes in stack
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
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
48       PHA
48       PHA
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
9 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; 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
EA       NOP
EA       NOP
EA       NOP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
16 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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 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 ;hides 'DEY'
@Y = * - 1
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
8 bytes
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
48       PHA
Clobbers A, S, and Z&N
16 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
19 bytes
EA       NOP
C5 00    CMP $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
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
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
68       PLA
88       DEY
30 xx    BMI @Y
Clobbers A, Y, S, and Z&N
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
20 xx xx JSR @rts15
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
EA       NOP
00 00    BRK 0
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires @rti; and writes in stack
8 bytes
68       PLA
68       PLA
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, S, and Z&N; and writes in stack
68       PLA
68       PLA
68       PLA
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
9 bytes
08       PHP
BA       TSX
68       PLA
9A       TXS
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, and X; and writes in stack
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
EA       NOP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, 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
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
EA       NOP
48       PHA
48       PHA
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
10 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; 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
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
EA       NOP
EA       NOP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; 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
16 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, 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

5 bytes
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
Clobbers Y, Z&N, and D
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8       INX
D0 xx    BNE @X
Clobbers X, Z&N, and D
6 bytes
48       PHA
48       PHA
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
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
48       PHA
00 00    BRK 0
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C; requires @rti; and writes in stack
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
EA       NOP
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
48       PHA
Clobbers A, S, and Z&N
17 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
20 bytes
EA       NOP
EA       NOP
C5 00    CMP $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
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
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
6 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
7 bytes
68       PLA
00 00    BRK 0
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C; requires @rti; and writes in stack
8 bytes
EA       NOP
20 xx xx JSR @rts15
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
EA       NOP
EA       NOP
00 00    BRK 0
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires @rti; and writes in stack
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
48       PHA
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
10 bytes
08       PHP
C5 00    CMP $00
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
16 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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 ;hides 'SED'
@A = * - 1
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
EA       NOP
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
48       PHA
Clobbers A, S, and Z&N
18 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
21 bytes
EA       NOP
EA       NOP
EA       NOP
C5 00    CMP $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
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
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
9 bytes
20 xx xx JSR @rts12
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; requires @rts12; and writes in stack
20 xx xx JSR @rts12
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
68       PLA
68       PLA
68       PLA
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, S, and Z&N; and writes in stack
10 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
48       PHA
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
08       PHP
EA       NOP
C5 00    CMP $00
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
17 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
Clobbers A, Y, S, Z&N, and D
68       PLA
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8       INX
D0 xx    BNE @X
Clobbers A, X, S, Z&N, and D
7 bytes
A4 00    LDY $00
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
08       PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
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 ;hides 'DEY'
@Y = * - 1
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
00 00    BRK 0
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; requires @rti; and writes in stack
00 00    BRK 0
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @rti; and writes in stack
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
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
48       PHA
Clobbers A, S, and Z&N
18 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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
22 bytes
C5 00    CMP $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 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
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
98       TYA
48       PHA
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
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
10 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
18 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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 ;hides 'SED'
@A = * - 1
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, C, and D
9 bytes
20 xx xx JSR @rts15
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; requires @rts15; 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
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
20 xx xx JSR @rts15
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @rts15; 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
EA       NOP
00 00    BRK 0
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; requires @rti; and writes in stack
EA       NOP
00 00    BRK 0
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @rti; and writes in stack
10 bytes
98       TYA
48       PHA
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
20 xx xx JSR @rts12
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, and S; requires @rts12; and writes in stack
48       PHA
20 xx xx JSR @rts12
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; requires @rts12; 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
EA       NOP
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
48       PHA
Clobbers A, S, and Z&N
18 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
22 bytes
C5 00    CMP $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
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
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

5 bytes
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
CA       DEX
30 xx    BMI @X
Clobbers X, Y, and Z&N
6 bytes
00 00    BRK 0
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 xx    BMI @Y
Clobbers Y, and Z&N; requires @rti; and writes in stack
7 bytes
08       PHP
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8       INX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
68       PLA
48       PHA
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8       INX
D0 xx    BNE @X
Clobbers A, X, Z&N, and D
68       PLA
48       PHA
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
Clobbers A, Y, Z&N, and D
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
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
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
48       PHA
00 00    BRK 0
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A, and S; requires @rti; and writes in stack
48       PHA
00 00    BRK 0
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; requires @rti; and writes in stack
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
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
19 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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 ;hides 'DEY'
@Y = * - 1
30 xx    BMI @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
10 bytes
EA       NOP
20 xx xx JSR @rts15
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; requires @rts15; and writes in stack
A5 00    LDA $00
98       TYA
48       PHA
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 xx    BMI @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
20 xx xx JSR @rts15
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA       NOP
EA       NOP
00 00    BRK 0
08       PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28       PLP
Clobbers A; requires @rti; and writes in stack
EA       NOP
EA       NOP
00 00    BRK 0
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @rti; 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
C5 00    CMP $00
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
48       PHA
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
24 00    BIT $00
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
48       PHA
Clobbers A, S, and Z&N
18 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
22 bytes
C5 00    CMP $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
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
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 ;hides 'SED'
@A = * - 1
69 01    ADC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 F8    LDA #248 ;hides 'SED'
@A = * - 1
69 01    ADC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, C, and D; and writes in stack
68       PLA
48       PHA
18       CLC
A9 F8    LDA #248 ;hides 'SED'
@A = * - 1
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, Z&N, C, and D
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
48       PHA
20 xx xx JSR @rts15
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; requires @rts15; and writes in stack
EA       NOP
48       PHA
00 00    BRK 0
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; requires @rti; and writes in stack
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
20 xx xx JSR @rts12
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti, and @rts12; and writes in stack
12 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
20 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
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
A0 08    LDY #8
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 08    LDX #8
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
10 bytes
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
11 bytes
20 xx xx JSR @rts12
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires @rts12; and writes in stack
12 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
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
48       PHA
Clobbers A, S, and Z&N
19 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
23 bytes
EA       NOP
C5 00    CMP $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
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
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
9 bytes
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
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
98       TYA
48       PHA
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, Z&N, and D; 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
00 00    BRK 0
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires @rti; 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
20 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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
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
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:
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:
EA       NOP
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 06    LDX #6
@X:
EA       NOP
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, 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 ;hides 'DEY'
@Y = * - 1
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
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
48       PHA
Clobbers A, S, and Z&N
20 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
24 bytes
EA       NOP
EA       NOP
C5 00    CMP $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
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
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
20 xx xx JSR @rts15
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires @rts15; and writes in stack
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
C5 00    CMP $00
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
EA       NOP
00 00    BRK 0
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires @rti; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
20 xx xx JSR @rts12
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; requires @rts12; 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
20 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, 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 ;hides 'DEY'
@Y = * - 1
EA       NOP
30 xx    BMI @Y
Clobbers Y, and Z&N
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA       DEX
D0 xx    BNE @X
Clobbers A, X, Z&N, and C
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
08       PHP
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
CA       DEX
30 xx    BMI @X
28       PLP
Clobbers X, and Y; and writes in stack
8 bytes
00 00    BRK 0
08       PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 xx    BMI @Y
28       PLP
Clobbers Y; requires @rti; and writes in stack
9 bytes
08       PHP
28       PLP
08       PHP
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8       INX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
28       PLP
08       PHP
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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
48       PHA
00 00    BRK 0
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; requires @rti; 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
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
48       PHA
Clobbers A, S, and Z&N
21 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
25 bytes
EA       NOP
EA       NOP
EA       NOP
C5 00    CMP $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
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 ;hides 'DEY'
@Y = * - 1
30 xx    BMI @Y
68       PLA
A8       TAY
68       PLA
Clobbers S, and Z&N; and writes in stack
12 bytes
EA       NOP
20 xx xx JSR @rts15
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires @rts15; and writes in stack
48       PHA
A5 00    LDA $00
98       TYA
48       PHA
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 xx    BMI @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
00 00    BRK 0
08       PHP
48       PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires @rti; 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
C5 00    CMP $00
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
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
20 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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 ;hides 'SED'
@A = * - 1
69 01    ADC #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
48       PHA
Clobbers A, S, and Z&N
22 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
26 bytes
C5 00    CMP $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 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 ;hides 'DEY'
@Y = * - 1
EA       NOP
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, Z&N, and C; and writes in stack
7 bytes
A4 00    LDY $00
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA       NOP
30 xx    BMI @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA       DEX
D0 xx    BNE @X
Clobbers A, X, Z&N, and C
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
48       PHA
08       PHP
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
CA       DEX
30 xx    BMI @X
28       PLP
Clobbers X, Y, and S; and writes in stack
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
A0 08    LDY #8
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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
21 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
11 bytes
48       PHA
98       TYA
48       PHA
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N, and D; 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
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
48       PHA
Clobbers A, S, and Z&N
22 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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
26 bytes
C5 00    CMP $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
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
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
A2 09    LDX #9
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
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
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
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
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
22 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
C5 00    CMP $00
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
48       PHA
Clobbers A, S, and Z&N
22 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
26 bytes
C5 00    CMP $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
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
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 ;hides 'DEY'
@Y = * - 1
EA       NOP
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; 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
8C       TXA
48       PHA
A2 08    LDX #8
@X:
A5 00    LDA $00
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 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
23 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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
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
48       PHA
Clobbers A, S, and Z&N
22 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
27 bytes
EA       NOP
C5 00    CMP $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
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
C5 00    CMP $00
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
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Requires @rti; and writes in stack
13 bytes
08       PHP
28       PLP
08       PHP
48       PHA
18       CLC
A9 F8    LDA #248 ;hides 'SED'
@A = * - 1
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
24 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
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 ;hides 'DEY'
@Y = * - 1
48       PHA
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
6 bytes
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
A5 00    LDA $00
30 xx    BMI @Y
Clobbers A, Y, and Z&N
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
A6 00    LDX $00
30 xx    BMI @Y
Clobbers X, Y, and Z&N
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
C5 00    CMP $00
30 xx    BMI @Y
Clobbers Y, Z&N, and C
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
24 00    BIT $00
30 xx    BMI @Y
Clobbers Y, Z&N, and V
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
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 ;hides 'DEY'
@Y = * - 1
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 ;hides 'DEY'
@Y = * - 1
EA       NOP
30 xx    BMI @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers A, X, and S; and writes in stack
9 bytes
08       PHP
A4 00    LDY $00
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA       NOP
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; 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
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
48       PHA
Clobbers A, S, and Z&N
23 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
28 bytes
EA       NOP
EA       NOP
C5 00    CMP $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
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
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
EA       NOP
CA       DEX
30 xx    BMI @X
Clobbers X, Y, and Z&N
68       PLA
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, 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
24 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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
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
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
48       PHA
Clobbers A, S, and Z&N
24 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
29 bytes
EA       NOP
EA       NOP
EA       NOP
C5 00    CMP $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
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 ;hides 'DEY'
@Y = * - 1
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
A2 09    LDX #9
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 09    LDY #9
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
24 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, 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
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
C5 00    CMP $00
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
13 bytes
48       PHA
8C       TXA
48       PHA
A2 08    LDX #8
@X:
A5 00    LDA $00
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 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
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
48       PHA
Clobbers A, S, and Z&N
25 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
30 bytes
C5 00    CMP $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 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
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
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
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
24 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
C5 00    CMP $00
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
48       PHA
Clobbers A, S, and Z&N
26 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
30 bytes
C5 00    CMP $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
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


86 cycles

5 bytes
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
C5 00    CMP $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
25 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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

6 bytes
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
68       PLA
E8       INX
D0 xx    BNE @X
Clobbers A, X, S, Z&N, and D
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
68       PLA
C8       INY
D0 xx    BNE @Y
Clobbers A, Y, S, Z&N, and D
7 bytes
EA       NOP
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 0C    LDX #12
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
EA       NOP
CA       DEX
30 xx    BMI @X
28       PLP
Clobbers X, and Y; and writes in stack
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
8C       TXA
48       PHA
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; 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
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
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
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
48       PHA
Clobbers A, S, and Z&N
26 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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
30 bytes
C5 00    CMP $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
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


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
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
C5 00    CMP $00
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
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
26 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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 ;hides 'DEY'
@Y = * - 1
68       PLA
30 xx    BMI @Y
Clobbers A, Y, S, and Z&N
6 bytes
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA       NOP
EA       NOP
30 xx    BMI @Y
Clobbers Y, and Z&N
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers A, X, Z&N, and C
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
A0 09    LDY #9
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
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
48       PHA
Clobbers A, S, and Z&N
26 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
31 bytes
EA       NOP
C5 00    CMP $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
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
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
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
C5 00    CMP $00
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
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
27 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
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
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
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
8C       TXA
48       PHA
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
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
48       PHA
Clobbers A, S, and Z&N
26 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
32 bytes
EA       NOP
EA       NOP
C5 00    CMP $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
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
A0 0D    LDY #13
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
28 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
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
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
C5 00    CMP $00
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
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
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
48       PHA
Clobbers A, S, and Z&N
27 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
33 bytes
EA       NOP
EA       NOP
EA       NOP
C5 00    CMP $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
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
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
8C       TXA
48       PHA
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
28 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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
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
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
C5 00    CMP $00
48       PHA
38       SEC
A9 0F    LDA #15
@A:
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
48       PHA
Clobbers A, S, and Z&N
28 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
34 bytes
C5 00    CMP $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 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 ;hides 'DEY'
@Y = * - 1
EA       NOP
EA       NOP
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; 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:
C5 00    CMP $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
28 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, 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:
C5 00    CMP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and C
A0 0C    LDY #12
@Y:
C5 00    CMP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and C
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
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
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
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
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
48       PHA
Clobbers A, S, and Z&N
29 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
34 bytes
C5 00    CMP $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
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


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
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
C5 00    CMP $00
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
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
28 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
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
48       PHA
Clobbers A, S, and Z&N
30 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
34 bytes
C5 00    CMP $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
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


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
C5 00    CMP $00
48       PHA
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
29 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
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
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
48       PHA
Clobbers A, S, and Z&N
30 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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
35 bytes
EA       NOP
C5 00    CMP $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
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
A0 0B    LDY #11
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
A2 0B    LDX #11
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
A4 00    LDY $00
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
8C       TXA
48       PHA
A2 12    LDX #18
@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 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
30 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A2 13    LDX #19
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
98       TYA
48       PHA
A0 0D    LDY #13
@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 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
C5 00    CMP $00
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
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
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
48       PHA
Clobbers A, S, and Z&N
30 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
36 bytes
EA       NOP
EA       NOP
C5 00    CMP $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
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
A2 0C    LDX #12
@X:
C5 00    CMP $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
@Y:
C5 00    CMP $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
8C       TXA
48       PHA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
31 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
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
48       PHA
Clobbers A, S, and Z&N
30 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
37 bytes
EA       NOP
EA       NOP
EA       NOP
C5 00    CMP $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
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
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
8C       TXA
48       PHA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
32 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
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

6 bytes
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA       DEX
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
88       DEY
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
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
A2 0B    LDX #11
@X:
EA       NOP
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
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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
48       PHA
Clobbers A, S, and Z&N
31 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
38 bytes
C5 00    CMP $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 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
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
32 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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
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
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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 ;hides 'NOP zp,X'
@A = * - 1
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
8C       TXA
48       PHA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
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
48       PHA
Clobbers A, S, and Z&N
32 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
38 bytes
C5 00    CMP $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 C
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


110 cycles

6 bytes
68       PLA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
98       TYA
48       PHA
A0 0D    LDY #13
@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 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
C5 00    CMP $00
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
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
32 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, 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
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
8C       TXA
48       PHA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
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
48       PHA
Clobbers A, S, and Z&N
33 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
38 bytes
C5 00    CMP $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 C
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


112 cycles

7 bytes
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
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
EA       NOP
68       PLA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
A2 0D    LDX #13
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0D    LDY #13
@Y:
C5 00    CMP $00
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:
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
32 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
C5 00    CMP $00
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
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
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
48       PHA
Clobbers A, S, and Z&N
34 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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
39 bytes
EA       NOP
C5 00    CMP $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 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
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
88       DEY
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA       DEX
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
9 bytes
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
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
33 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, 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
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
48       PHA
Clobbers A, S, and Z&N
34 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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


116 cycles

5 bytes
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
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
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
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 ;hides 'NOP zp,X'
@A = * - 1
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 ;hides 'NOP zp,X'
@A = * - 1
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
34 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N


117 cycles

7 bytes
A0 0D    LDY #13 ;hides 'ORA abs'
@Y = * - 1
A5 00    LDA $0
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 0D    LDX #13 ;hides 'ORA abs'
@X = * - 1
A5 00    LDA $0
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
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
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
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
98       TYA
48       PHA
A0 15    LDY #21
@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 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
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
48       PHA
Clobbers A, S, and Z&N
34 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, 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
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
8C       TXA
48       PHA
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA       DEX
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 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
C5 00    CMP $00
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
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
35 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N


119 cycles

6 bytes
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
08       PHP
28       PLP
30 xx    BMI @Y
Clobbers Y, and Z&N; and writes in stack
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
68       PLA
48       PHA
30 xx    BMI @Y
Clobbers A, Y, and Z&N
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
98       TYA
48       PHA
A0 15    LDY #21
@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 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
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
48       PHA
Clobbers A, S, and Z&N
34 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A2 10    LDX #16
@X:
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
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
C5 00    CMP $00
48       PHA
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
36 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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


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
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
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
98       TYA
48       PHA
A0 15    LDY #21
@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 15    LDY #21
@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 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
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
48       PHA
Clobbers A, S, and Z&N
35 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
8C       TXA
48       PHA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
36 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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


123 cycles

6 bytes
EA       NOP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
C5 00    CMP $00
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
08       PHP
48       PHA
18       CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
@A = * - 1
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
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
48       PHA
Clobbers A, S, and Z&N
36 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N


124 cycles

4 bytes
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
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
08       PHP
A2 0D    LDX #13 ;hides 'ORA abs'
@X = * - 1
A5 00    LDA $0
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; and writes in stack
08       PHP
A0 0D    LDY #13 ;hides 'ORA abs'
@Y = * - 1
A5 00    LDA $0
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers A, and Y; and writes in stack
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
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
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
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
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
11 bytes
48       PHA
98       TYA
48       PHA
A0 15    LDY #21
@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
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
36 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N


125 cycles

6 bytes
68       PLA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
8C       TXA
48       PHA
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA       DEX
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 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
C5 00    CMP $00
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
48       PHA
Clobbers A, S, and Z&N
37 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N


126 cycles

5 bytes
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
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
8C       TXA
48       PHA
A2 16    LDX #22
@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
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
98       TYA
48       PHA
A0 15    LDY #21
@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 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
36 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N


127 cycles

5 bytes
48       PHA
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
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
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
48       PHA
Clobbers A, S, and Z&N
38 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    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


128 cycles

5 bytes
68       PLA
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
6 bytes
EA       NOP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
C5 00    CMP $00
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
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 15    LDY #21
@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 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
37 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N


129 cycles

6 bytes
A0 10    LDY #16
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 10    LDX #16
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
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
8C       TXA
48       PHA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
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
48       PHA
Clobbers A, S, and Z&N
38 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
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


130 cycles

6 bytes
48       PHA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
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
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
C5 00    CMP $00
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
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
38 bytes
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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 ;hides 'INX'
@X = * - 1
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
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
48       PHA
Clobbers A, S, and Z&N
38 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N


132 cycles

6 bytes
68       PLA
68       PLA
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
BA       TSX
68       PLA
9A       TXS
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
Clobbers A, X, and Z&N
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
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
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
8C       TXA
48       PHA
A2 18    LDX #24
@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 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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
39 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
C5 00    CMP $00
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
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
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
48       PHA
Clobbers A, S, and Z&N
38 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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 ;hides 'INX'
@X = * - 1
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
8C       TXA
48       PHA
A2 18    LDX #24
@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
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 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; 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
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
C5 00    CMP $00
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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
39 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, 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
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
9 bytes
08       PHP
A2 10    LDX #16
@X:
C5 00    CMP $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
@Y:
C5 00    CMP $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
00 00    BRK 0
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
Clobbers X, and Z&N; requires @rti; and writes in stack
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:
C5 00    CMP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and C
A0 11    LDY #17
@Y:
C5 00    CMP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and C
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:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A4 00    LDY $00
A0 13    LDY #19
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 13    LDX #19
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
48       PHA
08       PHP
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
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
8C       TXA
48       PHA
A2 19    LDX #25
@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
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
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
48       PHA
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 ;hides 'INX'
@X = * - 1
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
C5 00    CMP $00
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
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
A6 00    LDX $00
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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 ;hides 'INX'
@X = * - 1
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 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, S, and Z&N; 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
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
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
8C       TXA
48       PHA
A2 19    LDX #25
@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 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
8C       TXA
48       PHA
A2 18    LDX #24
@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 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
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
48       PHA
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
C5 00    CMP $00
48       PHA
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
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
8C       TXA
48       PHA
A2 19    LDX #25
@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 19    LDX #25
@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 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
8C       TXA
48       PHA
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
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
48       PHA
Clobbers A, S, and Z&N


142 cycles

7 bytes
A2 98    LDX #152 ;hides 'TYA'
@X = * - 1
EA       NOP
CA       DEX
CA       DEX
30 xx    BMI @X
Clobbers A, X, and Z&N
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
EA       NOP
88       DEY
88       DEY
30 xx    BMI @Y
Clobbers A, Y, and Z&N
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
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
A2 1A    LDX #26 ;hides 'NOP'
@X = * - 1
EA       NOP
CA       DEX
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
A0 1A    LDY #26 ;hides 'NOP'
@Y = * - 1
EA       NOP
88       DEY
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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 ;hides 'INX'
@X = * - 1
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
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
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
48       PHA
Clobbers A, S, and Z&N


144 cycles

6 bytes
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
00 00    BRK 0
08       PHP
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
28       PLP
Clobbers X; requires @rti; and writes in stack
9 bytes
08       PHP
A2 11    LDX #17
@X:
C5 00    CMP $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
@Y:
C5 00    CMP $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
8C       TXA
48       PHA
A2 19    LDX #25
@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 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 ;hides 'INX'
@X = * - 1
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
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
48       PHA
Clobbers A, S, and Z&N


146 cycles

5 bytes
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
8C       TXA
48       PHA
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
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
48       PHA
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
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
00 00    BRK 0
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; requires @rti; and writes in stack
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
C5 00    CMP $00
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
12 bytes
48       PHA
48       PHA
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
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
8C       TXA
48       PHA
A2 19    LDX #25
@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 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
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
08       PHP
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
EA       NOP
88       DEY
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers A, and Y; and writes in stack
08       PHP
A2 98    LDX #152 ;hides 'TYA'
@X = * - 1
EA       NOP
CA       DEX
CA       DEX
30 xx    BMI @X
28       PLP
Clobbers A, and X; and writes in stack
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
08       PHP
A0 1A    LDY #26 ;hides 'NOP'
@Y = * - 1
EA       NOP
88       DEY
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; requires support for unofficial opcodes; and writes in stack
08       PHP
A2 1A    LDX #26 ;hides 'NOP'
@X = * - 1
EA       NOP
CA       DEX
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; requires support for unofficial opcodes; and writes in stack
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
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
48       PHA
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
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
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
A4 00    LDY $00
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
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
48       PHA
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
8C       TXA
48       PHA
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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

5 bytes
A0 EA    LDY #234 ;hides 'NOP'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 EA    LDX #234 ;hides 'NOP'
@X = * - 1
E8       INX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
C5 00    CMP $00
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
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
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
48       PHA
Clobbers A, S, and Z&N


154 cycles

6 bytes
48       PHA
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A2 11    LDX #17
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
A0 11    LDY #17
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
A6 00    LDX $00
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
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
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
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
8C       TXA
48       PHA
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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 ;hides 'NOP'
@A = * - 1
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
00 00    BRK 0
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; requires @rti; and writes in stack
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
C5 00    CMP $00
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
48       PHA
Clobbers A, S, and Z&N


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
8C       TXA
48       PHA
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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

6 bytes
68       PLA
A2 EA    LDX #234 ;hides 'NOP'
@X = * - 1
E8       INX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 EA    LDY #234 ;hides 'NOP'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
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
C5 00    CMP $00
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
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 ;hides 'NOP'
@A = * - 1
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
8C       TXA
48       PHA
A2 15    LDX #21
@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 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
8C       TXA
48       PHA
A2 1C    LDX #28
@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 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
08       PHP
A2 EA    LDX #234 ;hides 'NOP'
@X = * - 1
E8       INX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 EA    LDY #234 ;hides 'NOP'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
C5 00    CMP $00
48       PHA
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
A4 00    LDY $00
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
8C       TXA
48       PHA
A2 15    LDX #21
@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 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
8C       TXA
48       PHA
A2 1C    LDX #28
@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 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
A2 16    LDX #22
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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 ;hides 'NOP'
@A = * - 1
69 01    ADC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 EA    LDA #234 ;hides 'NOP'
@A = * - 1
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
C5 00    CMP $00
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
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
98       TYA
48       PHA
A0 EA    LDY #234 ;hides 'NOP'
@Y = * - 1
C8       INY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; 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
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
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
C5 00    CMP $00
48       PHA
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
8C       TXA
48       PHA
A2 15    LDX #21
@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 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


167 cycles

5 bytes
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
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
C5 00    CMP $00
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
13 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
@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 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 ;hides 'NOP'
@A = * - 1
69 01    ADC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


170 cycles

6 bytes
A0 C8    LDY #200 ;hides 'INY'
@Y = * - 1
C8       INY
C8       INY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
A2 5A    LDX #90 ;hides 'NOP'
@X = * - 1
E8       INX
E8       INX
10 xx    BPL @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
7 bytes
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
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
C5 00    CMP $00
48       PHA
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
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
11 bytes
48       PHA
98       TYA
48       PHA
A0 EA    LDY #234 ;hides 'NOP'
@Y = * - 1
C8       INY
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 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
A2 13    LDX #19
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 13    LDY #19
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
C5 00    CMP $00
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
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 ;hides 'INX'
@X = * - 1
EA       NOP
D0 xx    BNE @X
Clobbers X, and Z&N
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
88       DEY
30 xx    BMI @Y
Clobbers A, Y, 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
08       PHP
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
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
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
C5 00    CMP $00
48       PHA
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
A2 16    LDX #22
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 16    LDY #22
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA       NOP
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:
C5 00    CMP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and C
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
08       PHP
A0 C8    LDY #200 ;hides 'INY'
@Y = * - 1
C8       INY
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
08       PHP
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
68       PLA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
08       PHP
A2 5A    LDX #90 ;hides 'NOP'
@X = * - 1
E8       INX
E8       INX
10 xx    BPL @X
28       PLP
Clobbers X; requires support for unofficial opcodes; and writes in stack
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
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
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
9 bytes
98       TYA
48       PHA
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
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
A2 15    LDX #21 ;hides 'ORA zp,X'
@X = * - 1
CA       DEX ;first round only
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A0 15    LDY #21 ;hides 'ORA zp,X'
@Y = * - 1
88       DEY ;first round only
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 D8    LDX #216 ;hides 'CLD'
@X = * - 1
E8       INX
E8       INX
D0 xx    BNE @X
Clobbers X, Z&N, and D
A0 D8    LDY #216 ;hides 'CLD'
@Y = * - 1
C8       INY
C8       INY
D0 xx    BNE @Y
Clobbers Y, Z&N, and D
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
00 00    BRK 0
30 xx    BMI @Y
Clobbers Y, and Z&N; requires @rti; and writes in stack
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
A0 14    LDY #20 ;hides 'NOP zp,X'
@Y = * - 1
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 14    LDX #20 ;hides 'NOP zp,X'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
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
A2 13    LDX #19
@X:
EA       NOP
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
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
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
C5 00    CMP $00
48       PHA
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
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA       NOP
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers A, and Y; 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 ;hides 'NOP zp,X'
@A = * - 1
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
98       TYA
48       PHA
A0 C8    LDY #200 ;hides 'INY'
@Y = * - 1
C8       INY
C8       INY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, 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
A2 EC    LDX #236 ;hides 'CPX abs'
@X = * - 1
E6 xx    INC @zptemp
E8       INX
D0 xx    BNE @X
Clobbers X, Z&N, and C; and requires @zptemp
A0 EC    LDY #236 ;hides 'CPX abs'
@Y = * - 1
E6 xx    INC @zptemp
C8       INY
D0 xx    BNE @Y
Clobbers Y, Z&N, and C; and requires @zptemp
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
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
8C       TXA
48       PHA
A2 22    LDX #34
@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 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
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
C5 00    CMP $00
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
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
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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 ;hides 'INX'
@X = * - 1
EA       NOP
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers A, Y, and S; and writes in stack
9 bytes
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
08       PHP
A0 16    LDY #22
@Y:
C5 00    CMP $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
8C       TXA
48       PHA
A2 22    LDX #34
@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
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
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, 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
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
11 bytes
48       PHA
98       TYA
48       PHA
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
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 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
08       PHP
A2 D8    LDX #216 ;hides 'CLD'
@X = * - 1
E8       INX
E8       INX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 D8    LDY #216 ;hides 'CLD'
@Y = * - 1
C8       INY
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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
8C       TXA
48       PHA
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
00 00    BRK 0
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA       NOP
D0 xx    BNE @X
Clobbers X, and Z&N; requires @rti; and writes in stack
00 00    BRK 0
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
88       DEY
30 xx    BMI @Y
Clobbers A, Y, and Z&N; requires @rti; and writes in stack
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
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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 ;hides 'NOP zp,X'
@A = * - 1
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 ;hides 'NOP zp,X'
@A = * - 1
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
C5 00    CMP $00
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
48       PHA
98       TYA
48       PHA
A0 C8    LDY #200 ;hides 'INY'
@Y = * - 1
C8       INY
C8       INY
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 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
08       PHP
A0 EC    LDY #236 ;hides 'CPX abs'
@Y = * - 1
E6 xx    INC @zptemp
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers Y; requires @zptemp; and writes in stack
08       PHP
A2 EC    LDX #236 ;hides 'CPX abs'
@X = * - 1
E6 xx    INC @zptemp
E8       INX
D0 xx    BNE @X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
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
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
8C       TXA
48       PHA
A2 22    LDX #34
@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 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
A2 1A    LDX #26
@X:
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
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
C5 00    CMP $00
48       PHA
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
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
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
8C       TXA
48       PHA
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
8C       TXA
48       PHA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 17    LDX #23
@X:
C5 00    CMP $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
@Y:
C5 00    CMP $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
C5 00    CMP $00
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
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
00 00    BRK 0
08       PHP
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA       NOP
D0 xx    BNE @X
28       PLP
Clobbers X; requires @rti; and writes in stack
00 00    BRK 0
08       PHP
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers A, and Y; requires @rti; and writes in stack
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
A0 17    LDY #23
@Y:
C5 00    CMP $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
@X:
C5 00    CMP $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
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
08       PHP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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 ;hides 'NOP zp,X'
@A = * - 1
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
C5 00    CMP $00
48       PHA
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
8C       TXA
48       PHA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
C5 00    CMP $00
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
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 ;hides 'INX'
@X = * - 1
48       PHA
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
6 bytes
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
A5 00    LDA $00
D0 xx    BNE @X
Clobbers A, X, and Z&N
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
A4 00    LDY $00
D0 xx    BNE @X
Clobbers X, Y, and Z&N
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
C5 00    CMP $00
D0 xx    BNE @X
Clobbers X, Z&N, and C
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
24 00    BIT $00
D0 xx    BNE @X
Clobbers X, Z&N, and V
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
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 ;hides 'INX'
@X = * - 1
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
8C       TXA
48       PHA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
C5 00    CMP $00
48       PHA
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
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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 ;hides 'INX'
@X = * - 1
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
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
C5 00    CMP $00
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
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
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
C5 00    CMP $00
48       PHA
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 ;hides 'INX'
@X = * - 1
C5 00    CMP $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
A2 E9    LDX #233 ;hides 'SBC #imm'
@X = * - 1
24 EA    BIT $EA ;hides 'NOP'
E8       INX
D0 xx    BNE @X
Clobbers A, X, Z&N, C, and V
A0 E9    LDY #233 ;hides 'SBC #imm'
@Y = * - 1
24 EA    BIT $EA ;hides 'NOP'
C8       INY
D0 xx    BNE @Y
Clobbers A, Y, Z&N, C, and V
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
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
EA       NOP
68       PLA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, 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
C5 00    CMP $00
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
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
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
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
C5 00    CMP $00
48       PHA
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
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
A2 1A    LDX #26
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
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
EA       NOP
68       PLA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
8C       TXA
48       PHA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
08       PHP
A0 E9    LDY #233 ;hides 'SBC #imm'
@Y = * - 1
24 EA    BIT $EA ;hides 'NOP'
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers A, and Y; and writes in stack
08       PHP
A2 E9    LDX #233 ;hides 'SBC #imm'
@X = * - 1
24 EA    BIT $EA ;hides 'NOP'
E8       INX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; 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
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
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
8C       TXA
48       PHA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
C5 00    CMP $00
48       PHA
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:
C5 00    CMP $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
@Y:
C5 00    CMP $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
8C       TXA
48       PHA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 11    LDY #17
@Y:
68       PLA
48       PHA
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
A2 1B    LDX #27
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 1B    LDY #27
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
A2 18    LDX #24
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 18    LDY #24
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
C5 00    CMP $00
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
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
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
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
8C       TXA
48       PHA
A2 28    LDX #40
@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 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
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
8C       TXA
48       PHA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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
08       PHP
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
8C       TXA
48       PHA
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; 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
C5 00    CMP $00
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
13 bytes
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
68       PLA
48       PHA
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 ;hides 'INX'
@X = * - 1
68       PLA
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
6 bytes
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA       NOP
EA       NOP
D0 xx    BNE @X
Clobbers X, and Z&N
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
EA       NOP
88       DEY
30 xx    BMI @Y
Clobbers A, Y, and Z&N
A0 E4    LDY #228 ;hides 'CPX zp'
@Y = * - 1
EA       NOP
C8       INY
D0 xx    BNE @Y
Clobbers Y, Z&N, C, and V
48       PHA
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 64    LDY #100 ;hides 'NOP zp'
@Y = * - 1
EA       NOP
C8       INY
10 xx    BPL @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
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
A0 18    LDY #24
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
8C       TXA
48       PHA
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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 ;hides 'NOP zp'
@A = * - 1
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
A4 00    LDY $00
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
8C       TXA
48       PHA
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, 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 ;hides 'INX'
@X = * - 1
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
C5 00    CMP $00
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
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
8C       TXA
48       PHA
A2 2A    LDX #42
@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 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
C5 00    CMP $00
48       PHA
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
A0 E4    LDY #228 ;hides 'CPX zp'
@Y = * - 1
EA       NOP
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA       NOP
EA       NOP
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
8C       TXA
48       PHA
A2 2A    LDX #42
@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 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
A0 21    LDY #33
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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 ;hides 'NOP zp'
@A = * - 1
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 ;hides 'NOP zp'
@A = * - 1
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
C5 00    CMP $00
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
8C       TXA
48       PHA
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; 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
A6 00    LDX $00
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
A2 1A    LDX #26
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
A0 1A    LDY #26
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
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
08       PHP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
C5 00    CMP $00
48       PHA
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
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A0 1A    LDY #26
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
A2 1A    LDX #26
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
C5 00    CMP $00
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
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
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 21    LDY #33
@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 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
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, 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
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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 ;hides 'NOP zp'
@A = * - 1
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
C5 00    CMP $00
48       PHA
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
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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

6 bytes
A0 CA    LDY #202 ;hides 'DEX'
@Y = * - 1
C8       INY
C8       INY
D0 xx    BNE @Y
Clobbers X, Y, and Z&N
A2 4A    LDX #74 ;hides 'LSR A'
@X = * - 1
E8       INX
E8       INX
10 xx    BPL @X
Clobbers A, X, Z&N, and C
A0 4A    LDY #74 ;hides 'LSR A'
@Y = * - 1
C8       INY
C8       INY
10 xx    BPL @Y
Clobbers A, Y, Z&N, and C
7 bytes
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
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
EA       NOP
68       PLA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
A4 00    LDY $00
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A0 1A    LDY #26
@Y:
EA       NOP
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
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
98       TYA
48       PHA
A0 21    LDY #33
@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 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
C5 00    CMP $00
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
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
A6 00    LDX $00
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
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
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
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
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
C5 00    CMP $00
48       PHA
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
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
8C       TXA
48       PHA
A2 1A    LDX #26
@X:
EA       NOP
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 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
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
A2 1F    LDX #31
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 1F    LDY #31
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
8 bytes
08       PHP
A2 4A    LDX #74 ;hides 'LSR A'
@X = * - 1
E8       INX
E8       INX
10 xx    BPL @X
28       PLP
Clobbers A, and X; and writes in stack
08       PHP
A0 4A    LDY #74 ;hides 'LSR A'
@Y = * - 1
C8       INY
C8       INY
10 xx    BPL @Y
28       PLP
Clobbers A, and Y; and writes in stack
08       PHP
A0 CA    LDY #202 ;hides 'DEX'
@Y = * - 1
C8       INY
C8       INY
D0 xx    BNE @Y
28       PLP
Clobbers X, and Y; and writes in stack
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
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
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
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
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
98       TYA
48       PHA
A0 21    LDY #33
@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 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
C5 00    CMP $00
48       PHA
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
A4 00    LDY $00
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
A2 1F    LDX #31
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
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
EA       NOP
68       PLA
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
A0 54    LDY #84 ;hides 'NOP zp,X'
@Y = * - 1
88       DEY ;first round only
C8       INY
C8       INY
10 xx    BPL @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 54    LDX #84 ;hides 'NOP zp,X'
@X = * - 1
CA       DEX ;first round only
E8       INX
E8       INX
10 xx    BPL @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
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
8C       TXA
48       PHA
A2 30    LDX #48
@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 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
A2 24    LDX #36
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 24    LDY #36
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
C5 00    CMP $00
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
13 bytes
48       PHA
8C       TXA
48       PHA
A2 1A    LDX #26
@X:
EA       NOP
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 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
A6 00    LDX $00
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
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
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
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
8C       TXA
48       PHA
A2 30    LDX #48
@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
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
A0 24    LDY #36
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 24    LDX #36
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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:
C5 00    CMP $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1F    LDY #31
@Y:
C5 00    CMP $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
8C       TXA
48       PHA
EA       NOP
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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