Fixed cycle delay: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
m (Tepples moved page Delay code to Fixed cycle delay: To make room for possible variable delay codes)
(More instructions and tesuji I missed)
Line 214: Line 214:
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
A5 00   LDA $00
D0 FD    BNE *-1</pre>||Clobbers A, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|5 bytes
|<pre>A2 AE    LDX #$AE  ;hides 'LDX $FDD0'
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A0 AC    LDY #$AC  ;hides 'LDY $FDD0'
EA      NOP
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
EA      NOP
A5 00   LDA $00</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|5 bytes
EA      NOP
EA      NOP
A6 00    LDX $00</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A4 00    LDY $00</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 317: Line 307:
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>EA      NOP
A9 AD    LDA #$4A  ;hides 'LDA $FDD0'
D0 FD    BNE *-1</pre>||Clobbers A, and Z&N
|-
|-
|<pre>A2 02    LDX #2
|<pre>A2 02    LDX #2
Line 329: Line 323:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A5 00    LDA $00</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 516: Line 504:
08      PHP
08      PHP
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 609: Line 600:
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
36 00    ROL $00,X
36 00    ROL $00,X
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
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 717: Line 708:
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
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 781: Line 776:
66 00    ROR $00
66 00    ROR $00
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>A5 00    LDA $00
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 796: Line 795:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A6 00    LDX $00
A4 00    LDY $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers X, and Z&N
76 00    ROR $00,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A4 00    LDY $00
A6 00    LDX $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 X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 936: Line 935:
08      PHP
08      PHP
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<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 944: Line 949:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 03   LDX #3
EA      NOP
@X:
A9 2A   LDA #$2A  ;hides 'ROL A'
CA      DEX
10 FD   BPL *-1</pre>||Clobbers A, Z&N, and C
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,013: Line 1,017:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 03    LDX #3
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 1,020: Line 1,030:
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>EA      NOP
A2 03   LDX #3
A5 00    LDA $00
@X:
A9 2A   LDA #$2A  ;hides 'ROL A'
CA      DEX
10 FD   BPL *-1</pre>||Clobbers A, Z&N, and C
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,146: Line 1,155:
A5 00    LDA $00
A5 00    LDA $00
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack
|-
|<pre>EA      NOP
A4 00    LDY $00
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A6 00    LDX $00
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>EA      NOP
A4 00    LDY $00
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>BA      TSX
|<pre>BA      TSX
Line 1,213: Line 1,222:
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
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,277: Line 1,292:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
EA      NOP
D0 FD    BNE *-1
EA      NOP
A5 00   LDA $00
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
|-
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,546: Line 1,561:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
A9 AD    LDA #$4A  ;hides 'LDA $FDD0'
D0 FD    BNE *-1
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,658: Line 1,675:
=== 24 cycles ===
=== 24 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|4 bytes
|-
|<pre>A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
Line 1,759: Line 1,781:
28      PLP
28      PLP
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|<pre>A0 03    LDY #3
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 03    LDX #3
|<pre>A2 03    LDX #3
Line 1,765: Line 1,793:
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>A0 03    LDY #3
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 1,798: Line 1,820:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 04    LDX #4
A0 04    LDY #4
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 04    LDY #4
A2 04    LDX #4
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,982: Line 2,004:
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
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 2,066: Line 2,092:
=== 27 cycles ===
=== 27 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|<pre>A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,099: Line 2,135:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
68      PLA</pre>||Clobbers A, 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>EA      NOP
|<pre>EA      NOP
Line 2,106: Line 2,149:
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>A2 02    LDX #2
|<pre>A2 02    LDX #2
Line 2,145: Line 2,181:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre>||Clobbers A, and Z&N; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers A, and Z&N; requires @rts12; and writes in stack
|-
|<pre>EA      NOP
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 2,153: Line 2,197:
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 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,218: Line 2,254:
08      PHP
08      PHP
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>EA      NOP
EA      NOP
38      SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 2,347: Line 2,375:
=== 28 cycles ===
=== 28 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>68      PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 05    LDY #5
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,356: Line 2,396:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 05   LDY #5
EA      NOP
@Y:
A9 4A   LDA #$0A  ;hides 'ASL A'
88      DEY
10 FD   BPL *-1</pre>||Clobbers A, Z&N, and C
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
Line 2,379: Line 2,418:
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,403: Line 2,436:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28       PLP
48       PHA
08      PHP
A9 2A    LDA #$2A  ;hides 'ROL A'
28      PLP
10 FD    BPL *-1
08      PHP
68       PLA
28      PLP
08       PHP
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
Line 2,458: Line 2,489:
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|<pre>EA      NOP
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,466: Line 2,502:
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
A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,573: Line 2,614:
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
38      SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 2,729: Line 2,761:
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
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,745: Line 2,782:
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
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,767: Line 2,810:
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
38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,793: Line 2,829:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
28       PLP
48       PHA
08      PHP
A9 2A    LDA #$2A  ;hides 'ROL A'
28      PLP
10 FD    BPL *-1
08      PHP
68       PLA
28      PLP
28      PLP</pre>||Writes in stack
08       PHP
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 2,845: Line 2,879:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|6 bytes
|-
|<pre>08      PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,852: Line 2,898:
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>A5 00    LDA $00
68      PLA
68      PLA
68      PLA
68      PLA
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,882: Line 2,927:
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>A5 00    LDA $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers A, and Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 2,894: Line 2,935:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @zptemp, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @zptemp, and @rts14; and writes in stack
|-
|<pre>48      PHA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,950: Line 2,982:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
28       PLP
48       PHA
08      PHP
A9 2A    LDA #$2A  ;hides 'ROL A'
28      PLP
10 FD    BPL *-1
08      PHP
68       PLA
28      PLP
08       PHP
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
Line 3,117: Line 3,147:
=== 32 cycles ===
=== 32 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
|-
|<pre>68      PLA
68      PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
Line 3,122: Line 3,159:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>BA      TSX
68      PLA
9A      TXS
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, X, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,136: Line 3,179:
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 05    LDX #5
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,143: Line 3,193:
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 05    LDX #5
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 3,156: Line 3,199:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A4 00    LDY $00
A0 04    LDY #4
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 3,164: Line 3,214:
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
|<pre>EA      NOP
A0 04    LDY #4
EA      NOP
@Y:
EA      NOP
EA      NOP
EA      NOP
88      DEY
A9 4A    LDA #$0A  ;hides 'ASL A'
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
10 FD   BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,195: Line 3,245:
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>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>08      PHP
|<pre>08      PHP
Line 3,212: Line 3,254:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
EA      NOP
A2 03   LDX #3
38      SEC
@X:
A9 05   LDA #5
24 00   BIT $00
@A:
CA      DEX
E9 01   SBC #1
D0 xx    BNE @X
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,231: Line 3,273:
EA      NOP
EA      NOP
08      PHP
08      PHP
28       PLP
48       PHA
08      PHP
A9 2A    LDA #$2A  ;hides 'ROL A'
28      PLP
10 FD    BPL *-1
08      PHP
68       PLA
28      PLP
08       PHP
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
Line 3,287: Line 3,327:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
08      PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,301: Line 3,347:
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
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 3,313: Line 3,365:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A5 00    LDA $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 3,367: Line 3,415:
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
!colspan="2"|10 bytes
48      PHA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,398: Line 3,436:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
EA      NOP
D0 FD    BNE *-1
EA      NOP
A5 00   LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,551: Line 3,589:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,558: Line 3,602:
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
!colspan="2"|7 bytes
A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>A6 00    LDX $00
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 3,572: Line 3,616:
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00
|<pre>48      PHA
A2 06   LDX #6
08      PHP
@X:
A9 4A   LDA #$0A  ;hides 'ASL A'
CA       DEX
10 FD   BPL *-1
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
48       PHA
A9 4A   LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>EA      NOP
20 xx xx JSR @rts15
68      PLA
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
68      PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 3,588: Line 3,640:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>08      PHP
A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>26 00    ROL $00
66 00    ROR $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,645: Line 3,714:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
08       PHP
48      PHA
A0 03   LDY #3
A0 04   LDY #4
@Y:
@Y:
24 00    BIT $00
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 3,662: Line 3,730:
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 03    LDY #3
@Y:
24 00    BIT $00
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>A5 00    LDA $00
38      SEC
A9 04    LDA #4
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
28       PLP
48       PHA
08      PHP
A9 2A    LDA #$2A  ;hides 'ROL A'
28      PLP
10 FD    BPL *-1
08      PHP
68       PLA
28      PLP
08       PHP
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
Line 3,697: Line 3,746:
EA      NOP
EA      NOP
08      PHP
08      PHP
28       PLP
48       PHA
08      PHP
A9 2A    LDA #$2A  ;hides 'ROL A'
28      PLP
10 FD    BPL *-1
08      PHP
68       PLA
28      PLP
08       PHP
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
Line 3,768: Line 3,815:
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>68      PLA
08      PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,788: Line 3,848:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
38      SEC
EA      NOP
A9 06    LDA #6
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
38      SEC
A9 06    LDA #6
@A:
@A:
E9 01    SBC #1
E9 01    SBC #1
Line 3,805: Line 3,872:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 3,818: Line 3,877:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers C; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers C; requires @rts15; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>B8      CLV
|<pre>B8      CLV
Line 3,847: Line 3,898:
28      PLP
28      PLP
08      PHP
08      PHP
28       PLP
48       PHA
08      PHP
A9 2A    LDA #$2A  ;hides 'ROL A'
28      PLP
10 FD    BPL *-1
08      PHP
68       PLA
28      PLP
08       PHP
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
Line 3,865: Line 3,914:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>EA      NOP
26 00    ROL $00
A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
66 00   ROR $00
D0 FD   BNE *-1
26 00    ROL $00
36 00    ROL $00,X
66 00    ROR $00
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
!colspan="2"|14 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,029: Line 4,080:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>20 xx xx JSR @rts12
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>68      PLA
68      PLA
68      PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!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,040: Line 4,111:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>36 00    ROL $00,X
A0 04   LDY #4
76 00   ROR $00,X
@Y:
A9 4A    LDA #$0A  ;hides 'ASL A'
EA      NOP
10 FD   BPL *-1</pre>||Clobbers A, Z&N, and C
88      DEY
D0 xx   BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,058: Line 4,126:
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
38       SEC
48      PHA
A9 06   LDA #6
08       PHP
@A:
A9 4A   LDA #$0A  ;hides 'ASL A'
E9 01   SBC #1
10 FD   BPL *-1
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>68       PLA
|<pre>EA      NOP
68      PLA
48      PHA
20 xx xx JSR @rts14
48       PHA
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 4,082: Line 4,152:
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>08      PHP
38       SEC
EA      NOP
A9 06   LDA #6
A5 00    LDA $00
@A:
A9 4A    LDA #$0A  ;hides 'ASL A'
E9 01   SBC #1
10 FD    BPL *-1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
28       PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>18      CLC
90 00    BCC *+2
48      PHA
A9 4A   LDA #$0A  ;hides 'ASL A'
10 FD   BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 4,115: Line 4,192:
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>98      TYA
48      PHA
A0 03    LDY #3
@Y:
A5 00    LDA $00
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,181: Line 4,248:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 04    LDY #4
@Y:
68      PLA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
Line 4,187: Line 4,260:
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 04    LDY #4
@Y:
68      PLA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 4,216: Line 4,283:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 4,226: Line 4,307:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>EA       NOP
48       PHA
EA       NOP
A0 05    LDY #5
EA      NOP
@Y:
08      PHP
88       DEY
A9 4A    LDA #$0A  ;hides 'ASL A'
D0 xx    BNE @Y
10 FD    BPL *-1
68       PLA
28      PLP</pre>||Clobbers A; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,246: Line 4,335:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08       PHP
EA       NOP
A2 05   LDX #5
48      PHA
@X:
A9 4A   LDA #$0A  ;hides 'ASL A'
CA      DEX
10 FD   BPL *-1
D0 xx   BNE @X
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,268: Line 4,356:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
08      PHP
38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,300: Line 4,370:
28      PLP
28      PLP
08      PHP
08      PHP
28       PLP
48       PHA
08      PHP
A9 2A    LDA #$2A  ;hides 'ROL A'
28      PLP
10 FD    BPL *-1
08      PHP
68       PLA
28      PLP
08       PHP
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
Line 4,477: Line 4,545:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 07    LDX #7
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,484: Line 4,558:
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|7 bytes
A2 07    LDX #7
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>08      PHP
A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,498: Line 4,573:
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 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 4,514: Line 4,582:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>68       PLA
|<pre>08       PHP
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA
68      PLA
20 xx xx JSR @rts15
28      PLP</pre>||Writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>EA      NOP
20 xx xx JSR @rts12
68      PLA
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|13 bytes
08      PHP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
36 00    ROL $00,X
48      PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|<pre>48      PHA
08      PHP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 04    LDA #4
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 04    LDA #4
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>08      PHP
24 00    BIT $00
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|<pre>EA      NOP
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
36 00    ROL $00,X
76 00    ROR $00,X
28      PLP
08      PHP
36 00    ROL $00,X
76 00    ROR $00,X
28      PLP</pre>||Writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA      NOP
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
Line 4,654: Line 4,639:
=== 39 cycles ===
=== 39 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|4 bytes
|-
|<pre>A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
Line 4,681: Line 4,671:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|8 bytes
|-
|<pre>68      PLA
68      PLA
08      PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 4,690: Line 4,689:
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>08       PHP
A9 04   LDA #4
BA      TSX
@A:
68      PLA
EA      NOP
9A      TXS
EA       NOP
A9 4A   LDA #$0A  ;hides 'ASL A'
E9 01   SBC #1
10 FD    BPL *-1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
08       PHP
A9 4A   LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 04    LDY #4
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
08      PHP
A0 04    LDY #4
@Y:
@Y:
EA      NOP
EA      NOP
Line 4,707: Line 4,723:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
08       PHP
48      PHA
A2 04    LDX #4
48       PHA
@X:
48       PHA
EA       NOP
A9 4A   LDA #$0A  ;hides 'ASL A'
CA      DEX
10 FD    BPL *-1
D0 xx   BNE @X
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
68      PLA
68      PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
EA       NOP
48       PHA
EA       NOP
A0 05   LDY #5
EA      NOP
08      PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 04   LDY #4
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
68       PLA
28       PLP</pre>||Clobbers Y; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,743: Line 4,760:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A4 00    LDY $00
EA      NOP
A0 04    LDY #4
EA      NOP
@Y:
EA      NOP
EA      NOP
88       DEY
48       PHA
D0 xx   BNE @Y
A9 4A   LDA #$0A  ;hides 'ASL A'
28       PLP</pre>||Clobbers Y; and writes in stack
10 FD    BPL *-1
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,776: Line 4,793:
A8      TAY
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 4,815: Line 4,822:
28      PLP
28      PLP
08      PHP
08      PHP
28       PLP
48       PHA
08      PHP
A9 2A    LDA #$2A  ;hides 'ROL A'
28      PLP
10 FD    BPL *-1
08      PHP
68       PLA
28      PLP
08       PHP
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
Line 5,016: Line 5,021:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A2 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,024: Line 5,037:
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 06    LDX #6
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,042: Line 5,047:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
38      SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
08      PHP
08      PHP
28      PLP
48      PHA
20 xx xx JSR @rts15
A9 4A    LDA #$0A  ;hides 'ASL A'
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
10 FD    BPL *-1
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>68      PLA
24 00    BIT $00
68      PLA
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @rts14; and writes in stack
|-
|<pre>68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
Line 5,091: Line 5,067:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|<pre>EA      NOP
48      PHA
08      PHP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
EA      NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|<pre>EA      NOP
08      PHP
24 00    BIT $00
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
36 00    ROL $00,X
76 00    ROR $00,X
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 5,177: Line 5,118:
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
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
08      PHP
A0 06    LDY #6
@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 5,197: Line 5,134:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38       SEC
08       PHP
A9 07   LDA #7
A0 06   LDY #6
@A:
@Y:
E9 01    SBC #1
88      DEY
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 5,220: Line 5,158:
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>A5 00    LDA $00
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
Line 5,233: Line 5,164:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA
68      PLA
68       PLA
28       PLP</pre>||Clobbers S; and writes in stack
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
EA      NOP
08      PHP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>68      PLA
98      TYA
48      PHA
48      PHA
A0 05   LDY #5
A5 00   LDA $00
@Y:
A9 4A    LDA #$0A  ;hides 'ASL A'
88      DEY
10 FD   BPL *-1
D0 xx   BNE @Y
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
28       PLP</pre>||Writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|12 bytes
48      PHA
08      PHP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
A5 00    LDA $00
98      TYA
68      PLA
48      PHA
68      PLA
A0 05    LDY #5
68      PLA
@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
EA      NOP
08      PHP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|<pre>EA      NOP
48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|<pre>48      PHA
08      PHP
38      SEC
A9 04    LDA #4
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
38      SEC
A9 04    LDA #4
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts12
08      PHP
26 00    ROL $00
66 00    ROR $00
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|<pre>EA      NOP
48      PHA
98      TYA
48      PHA
A0 04    LDY #4
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>08      PHP
A5 00    LDA $00
38      SEC
A9 04    LDA #4
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA      NOP
A5 00    LDA $00
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
Line 5,366: Line 5,194:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|13 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 5,555: Line 5,367:
=== 42 cycles ===
=== 42 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
A9 4A   LDA #$4A  ;hides 'LSR A'
A0 07   LDY #7
D0 FD   BNE *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
@Y:
|-
88      DEY
!colspan="2"|6 bytes
D0 xx   BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,571: Line 5,388:
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>EA      NOP
|<pre>48      PHA
68      PLA
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>EA      NOP
68      PLA
A2 07    LDX #7
A2 07    LDX #7
@X:
@X:
Line 5,602: Line 5,426:
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>68      PLA
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 5,642: Line 5,459:
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
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
Line 5,656: Line 5,465:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
38      SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
48      PHA
08      PHP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$0A  ;hides 'ASL A'
A9 05   LDA #5
10 FD   BPL *-1
@A:
E9 01   SBC #1
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,752: Line 5,530:
=== 43 cycles ===
=== 43 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>68      PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
!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 5,760: Line 5,550:
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
|<pre>EA      NOP
@Y:
EA      NOP
EA      NOP
88      DEY
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!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 5,775: Line 5,571:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|9 bytes
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>20 xx xx JSR @rts12
A9 08   LDA #8
08       PHP
@A:
A9 4A   LDA #$0A  ;hides 'ASL A'
E9 01   SBC #1
10 FD   BPL *-1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>20 xx xx JSR @rts12
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|<pre>68      PLA
68      PLA
68      PLA
08      PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48       PHA
|<pre>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</pre>||Clobbers A; and writes in stack
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
48      PHA
48      PHA
08      PHP
A9 4A    LDA #$0A  ;hides 'ASL A'
28       PLP
10 FD    BPL *-1
20 xx xx JSR @rts15
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
48      PHA
08      PHP
08      PHP
38      SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$0A  ;hides 'ASL A'
A9 06   LDA #6
10 FD   BPL *-1
@A:
68      PLA
E9 01   SBC #1
28       PLP</pre>||Clobbers S; and writes in stack
D0 xx    BNE @A
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28       PLP
18       CLC
20 xx xx JSR @rts12
90 00    BCC *+2
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>08      PHP
A5 00    LDA $00
38      SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A5 00    LDA $00
38      SEC
A9 06   LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
48      PHA
A9 4A    LDA #$0A  ;hides 'ASL A'
08       PHP
10 FD    BPL *-1
28      PLP
68       PLA
20 xx xx JSR @rts14
28      PLP</pre>||Writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 5,890: Line 5,646:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|13 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
A0 03    LDY #3
@Y:
A5 00    LDA $00
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>48      PHA
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
28      PLP
08      PHP
36 00    ROL $00,X
76 00    ROR $00,X
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|14 bytes
|-
|<pre>08      PHP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 6,124: Line 5,843:
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>EA      NOP
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 08    LDX #8
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 6,133: Line 5,863:
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>EA      NOP
A2 08   LDX #8
A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 04   LDX #4
@X:
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X; and writes in stack
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,149: Line 5,887:
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
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 6,189: Line 5,910:
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
EA      NOP
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,203: Line 5,915:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98      TYA
48      PHA
48      PHA
A0 05   LDY #5
08      PHP
@Y:
48      PHA
88      DEY
A9 4A   LDA #$0A  ;hides 'ASL A'
D0 xx   BNE @Y
10 FD   BPL *-1
68      PLA
68      PLA
A8       TAY
28       PLP</pre>||Clobbers S; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
38       SEC
48       PHA
A9 06   LDA #6
A9 4A   LDA #$0A  ;hides 'ASL A'
@A:
10 FD   BPL *-1
E9 01   SBC #1
68      PLA
D0 xx    BNE @A
28      PLP</pre>||Writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 6,238: Line 5,948:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 6,306: Line 6,003:
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
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!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,317: Line 6,026:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 06    LDX #6
@X:
EA      NOP
EA      NOP
CA       DEX
EA       NOP
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,341: Line 6,041:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>EA      NOP
A9 06   LDA #6
08       PHP
@A:
A0 07   LDY #7
EA       NOP
@Y:
E9 01    SBC #1
88       DEY
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 6,371: Line 6,072:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts12
08      PHP
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>24 00    BIT $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
|-
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @zptemp, and @rts14; and writes in stack
|-
|<pre>04 00    NOP $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14, and support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$0A  ;hides 'ASL A'
A9 04   LDA #4
10 FD   BPL *-1
@A:
EA      NOP
E9 01   SBC #1
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 6,428: Line 6,097:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|17 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
EA      NOP
D0 FD    BNE *-1
EA      NOP
A5 00   LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 6,440: Line 6,107:
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
|-
!colspan="2"|17 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,633: Line 6,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
|-
!colspan="2"|6 bytes
|-
|<pre>08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>A5 00    LDA $00
68      PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,651: Line 6,345:
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
38      SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,677: Line 6,356:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>08      PHP
38      SEC
A4 00    LDY $00
A9 08   LDA #8
A0 07   LDY #7
@A:
@Y:
E9 01    SBC #1
88      DEY
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 6,690: Line 6,370:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|<pre>68      PLA
98      TYA
48      PHA
A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 6,710: Line 6,380:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 04    LDA #4
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 04    LDA #4
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,736: Line 6,386:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
!colspan="2"|12 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
98      TYA
48      PHA
48      PHA
A0 05   LDY #5
08      PHP
@Y:
48      PHA
88      DEY
A9 4A   LDA #$0A  ;hides 'ASL A'
D0 xx   BNE @Y
10 FD   BPL *-1
68      PLA
68      PLA
A8       TAY
28       PLP</pre>||Clobbers S; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|12 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
28       PLP
48       PHA
20 xx xx JSR @rts12
A9 4A    LDA #$0A  ;hides 'ASL A'
20 xx xx JSR @rts12
10 FD    BPL *-1
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,770: Line 6,422:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|13 bytes
|-
|<pre>EA      NOP
EA      NOP
08      PHP
48      PHA
38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 6,827: Line 6,465:
=== 47 cycles ===
=== 47 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
|-
|<pre>68      PLA
68      PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>48       PHA
|<pre>BA       TSX
48       PHA
68       PLA
A0 08   LDY #8
9A      TXS
@Y:
A9 4A   LDA #$4A  ;hides 'LSR A'
88      DEY
D0 FD   BNE *-1</pre>||Clobbers A, X, Z&N, and C
D0 xx   BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,842: Line 6,486:
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 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,875: Line 6,526:
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68       PLA
|<pre>EA       NOP
38       SEC
EA       NOP
A9 08   LDA #8
EA      NOP
@A:
EA      NOP
E9 01    SBC #1
A9 4A   LDA #$4A  ;hides 'LSR A'
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, and C
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 07    LDY #7
A2 07    LDX #7
@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
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,912: Line 6,554:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
38      SEC
A9 06    LDA #6
@A:
EA      NOP
EA      NOP
E9 01   SBC #1
08      PHP
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
A0 07   LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 6,946: Line 6,589:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
28      PLP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$0A  ;hides 'ASL A'
A9 06   LDA #6
10 FD   BPL *-1
@A:
E9 01   SBC #1
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 6,971: Line 6,614:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|17 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>EA      NOP
26 00    ROL $00
A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
66 00   ROR $00
D0 FD   BNE *-1
26 00    ROL $00
36 00    ROL $00,X
66 00    ROR $00
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
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
|-
!colspan="2"|18 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,182: Line 6,827:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A0 08   LDY #8
08      PHP
@Y:
A9 4A   LDA #$4A  ;hides 'LSR A'
88      DEY
D0 FD   BNE *-1
D0 xx   BNE @Y
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,195: Line 6,839:
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 08    LDY #8
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 7,208: Line 6,865:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|<pre>48      PHA
08      PHP
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>08      PHP
A5 00    LDA $00
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A5 00    LDA $00
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 7,264: Line 6,885:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
28      PLP
08      PHP
48      PHA
48      PHA
20 xx xx JSR @rts14
A9 4A    LDA #$0A  ;hides 'ASL A'
20 xx xx JSR @rts14
10 FD    BPL *-1
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 7,276: Line 6,901:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>08      PHP
20 xx xx JSR @rts12
24 00    BIT $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28       PLP
48       PHA
20 xx xx JSR @rts15
A9 4A    LDA #$0A  ;hides 'ASL A'
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
10 FD    BPL *-1
|-
68       PLA
|<pre>EA      NOP
28       PLP</pre>||Writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 7,310: Line 6,924:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|16 bytes
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 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
|-
!colspan="2"|24 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
48      PHA
EA      NOP
98      TYA
EA      NOP
48      PHA
A0 05    LDY #5
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 04    LDA #4
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|14 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
48      PHA
38      SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
28      PLP</pre>||Writes in stack
|-
!colspan="2"|16 bytes
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 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
|-
!colspan="2"|24 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 7,397: Line 6,969:
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
|-
|-
Line 7,418: Line 6,989:
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|9 bytes
|<pre>48      PHA
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
A2 07   LDX #7
D0 FD    BNE *-1
@X:
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
CA       DEX
|-
D0 xx   BNE @X
|<pre>EA      NOP
28       PLP</pre>||Clobbers X, and S; and writes in stack
68      PLA
68      PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A5 00   LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48       PHA
A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD   BNE *-1
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>26 00    ROL $00
66 00    ROR $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,438: Line 7,037:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
68       PLA
48       PHA
38       SEC
08       PHP
A9 08   LDA #8
A2 07   LDX #7
@A:
@X:
E9 01    SBC #1
CA      DEX
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
98      TYA
48      PHA
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,477: Line 7,067:
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
38      SEC
A9 06    LDA #6
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 7,505: Line 7,086:
A8      TAY
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,525: Line 7,096:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
28      PLP
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$0A  ;hides 'ASL A'
A9 06   LDA #6
10 FD   BPL *-1
@A:
E9 01   SBC #1
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 7,764: Line 7,335:
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|7 bytes
|-
|<pre>68      PLA
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>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>08      PHP
|<pre>08      PHP
Line 7,774: Line 7,368:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
88       DEY
48       PHA
D0 xx   BNE @Y
A9 4A    LDA #$4A  ;hides 'LSR A'
28       PLP</pre>||Clobbers Y; and writes in stack
D0 FD   BNE *-1
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,789: Line 7,382:
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>20 xx xx JSR @rts12
38      SEC
08       PHP
A9 08    LDA #8
48      PHA
@A:
A9 4A   LDA #$0A  ;hides 'ASL A'
E9 01    SBC #1
10 FD   BPL *-1
D0 xx   BNE @A
68      PLA
28       PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 08   LDA #8
@A:
E9 01   SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,823: Line 7,406:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>18       CLC
|<pre>08       PHP
90 00    BCC *+2
36 00    ROL $00,X
20 xx xx JSR @rts15
76 00   ROR $00,X
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers C; requires @rts15; and writes in stack
|-
|<pre>B8      CLV
50 00   BVC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers V; requires @rts15; and writes in stack
|-
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>EA      NOP
85 xx   STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$0A  ;hides 'ASL A'
A9 06   LDA #6
10 FD   BPL *-1
@A:
E9 01   SBC #1
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>EA      NOP
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
A5 00    LDA $00
38      SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,946: Line 7,487:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>20 xx xx JSR @rts12
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>68      PLA
68      PLA
68      PLA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|<pre>EA      NOP
48      PHA
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 08    LDX #8
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,957: Line 7,530:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
08      PHP
48      PHA
A2 08    LDX #8
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>38      SEC
A9 06    LDA #6
@A:
48      PHA
48      PHA
E9 01   SBC #1
A9 4A   LDA #$4A  ;hides 'LSR A'
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FD   BNE *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
EA      NOP
A5 00    LDA $00
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,990: Line 7,562:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>18       CLC
38       SEC
90 00   BCC *+2
A9 09   LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|10 bytes
|-
|<pre>68      PLA
98      TYA
48      PHA
48      PHA
A0 07   LDY #7
A9 4A   LDA #$4A  ;hides 'LSR A'
@Y:
D0 FD   BNE *-1
88      DEY
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
D0 xx   BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
EA      NOP
98      TYA
48      PHA
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,033: Line 7,582:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
48      PHA
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 8,074: Line 7,603:
A8      TAY
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,092: Line 7,610:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|<pre>48      PHA
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</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
28      PLP
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$0A  ;hides 'ASL A'
A9 06   LDA #6
10 FD   BPL *-1
@A:
E9 01   SBC #1
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 8,330: Line 7,859:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
Line 8,338: Line 7,866:
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
|-
|-
Line 8,361: Line 7,888:
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
|<pre>48      PHA
48      PHA
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>98       TYA
|<pre>48       PHA
48      PHA
48      PHA
48      PHA
A0 08   LDY #8
A9 4A   LDA #$4A  ;hides 'LSR A'
@Y:
D0 FD   BNE *-1
88      DEY
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
D0 xx   BNE @Y
|-
68      PLA
!colspan="2"|9 bytes
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,390: Line 7,930:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>EA       NOP
|-
|<pre>08      PHP
38       SEC
A9 06    LDA #6
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 06    LDA #6
@A:
EA      NOP
EA      NOP
E9 01   SBC #1
48      PHA
D0 xx   BNE @A
A9 4A   LDA #$4A  ;hides 'LSR A'
D0 FD   BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 8,488: Line 8,016:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y</pre>||Clobbers A, Y, S, and Z&N
30 xx    BMI @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
Line 8,529: Line 8,056:
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
08      PHP
38      SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
38      SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00    LDA $00
38      SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A5 00    LDA $00
38      SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
08      PHP
28      PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts15
A9 4A   LDA #$4A  ;hides 'LSR A'
20 xx xx JSR @rts15
D0 FD   BNE *-1
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 04   LDA #4
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 8,857: Line 8,323:
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>20 xx xx JSR @rts15
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>68      PLA
68      PLA
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
BA      TSX
68      PLA
9A      TXS
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,868: Line 8,355:
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
|<pre>EA      NOP
48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
A0 08   LDY #8
A9 4A   LDA #$4A  ;hides 'LSR A'
@Y:
D0 FD   BNE *-1
88      DEY
28      PLP</pre>||Clobbers A, and S; and writes in stack
D0 xx   BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,886: Line 8,372:
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>48       PHA
|-
|<pre>98       TYA
48      PHA
48      PHA
A0 06   LDY #6
08      PHP
A0 08   LDY #8
@Y:
@Y:
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y
D0 xx    BNE @Y
68      PLA
28      PLP</pre>||Clobbers Y, and S; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,917: Line 8,419:
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
EA      NOP
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 07    LDY #7
A2 07    LDX #7
@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
|-
|<pre>EA      NOP
08      PHP
38      SEC
A9 06    LDA #6
@A:
EA      NOP
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 9,024: Line 8,525:
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
Line 9,084: Line 8,584:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
38      SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|<pre>48      PHA
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 07   LDA #7
D0 FD   BNE *-1
@A:
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
A5 00    LDA $00
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 9,374: Line 8,835:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 0B    LDY #11
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
Line 9,379: Line 8,845:
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 0B    LDY #11
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
20 xx xx JSR @rts15
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,427: Line 8,892:
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
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>68       PLA
|<pre>08       PHP
98      TYA
48      PHA
48      PHA
A0 08    LDY #8
A5 00   LDA $00
@Y:
A9 4A   LDA #$4A  ;hides 'LSR A'
88      DEY
D0 FD   BNE *-1
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
98      TYA
48      PHA
A0 06    LDY #6
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
38      SEC
A9 08   LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
48      PHA
38      SEC
A9 08   LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
98      TYA
48      PHA
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
38      SEC
A9 06    LDA #6
@A:
EA      NOP
E9 01    SBC #1
D0 xx   BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA      NOP
EA      NOP
08      PHP
48      PHA
38      SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 9,600: Line 8,994:
|-
|-
|<pre>18      CLC
|<pre>18      CLC
A9 F8    LDA #248
A9 F8    LDA #248 ;hides 'SED'
@A = * - 1
@A = * - 1
; ^ Hides SED
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, C, and D
D0 xx    BNE @A</pre>||Clobbers A, Z&N, C, and D
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 07    LDX #7
@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 9,615: Line 9,016:
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 07    LDX #7
@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 9,653: Line 9,046:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
38      SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 09   LDA #9
D0 FD   BNE *-1
@A:
68      PLA
E9 01    SBC #1
28      PLP</pre>||Writes in stack
D0 xx   BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
48      PHA
38      SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
28      PLP</pre>||Writes in stack
|-
!colspan="2"|16 bytes
|-
|<pre>EA      NOP
A5 00    LDA $00
A5 00    LDA $00
68      PLA
68      PLA
Line 9,700: Line 9,072:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|21 bytes
!colspan="2"|20 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
EA      NOP
D0 FD    BNE *-1
EA      NOP
A5 00   LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 9,714: Line 9,084:
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
|-
!colspan="2"|21 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,972: Line 9,344:
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>20 xx xx JSR @rts12
08      PHP
08      PHP
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 09   LDA #9
D0 FD   BNE *-1
@A:
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
E9 01    SBC #1
D0 xx   BNE @A
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>20 xx xx JSR @rts12
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 09   LDA #9
D0 FD    BNE *-1
@A:
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
E9 01   SBC #1
|-
D0 xx   BNE @A
|<pre>68      PLA
68       PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA
68      PLA
08      PHP
A9 4A   LDA #$4A  ;hides 'LSR A'
D0 FD   BNE *-1
28       PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38      SEC
36 00   ROL $00,X
A9 06   LDA #6
76 00    ROR $00,X
@A:
A9 4A   LDA #$4A  ;hides 'LSR A'
24 00    BIT $00
D0 FD   BNE *-1
E9 01   SBC #1
D0 xx   BNE @A
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>36 00    ROL $00,X
A5 00    LDA $00
76 00    ROR $00,X
38       SEC
48       PHA
A9 09   LDA #9
A9 4A   LDA #$4A  ;hides 'LSR A'
@A:
D0 FD   BNE *-1
E9 01    SBC #1
D0 xx   BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
98      TYA
48      PHA
A0 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|<pre>48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 07   LDA #7
D0 FD   BNE *-1
@A:
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
EA      NOP
18       CLC
EA       NOP
90 00    BCC *+2
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 07   LDA #7
D0 FD   BNE *-1
@A:
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,136: Line 9,471:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 0B    LDY #11
@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 10,142: Line 9,483:
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 0B    LDY #11
@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 10,165: Line 9,500:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
Line 10,175: Line 9,509:
|<pre>08      PHP
|<pre>08      PHP
A4 00    LDY $00
A4 00    LDY $00
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
Line 10,218: Line 9,551:
D0 xx    BNE @A
D0 xx    BNE @A
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98      TYA
48      PHA
48      PHA
A0 08    LDY #8
08       PHP
@Y:
48      PHA
88      DEY
A9 4A   LDA #$4A  ;hides 'LSR A'
D0 xx   BNE @Y
D0 FD   BNE *-1
68      PLA
68      PLA
A8       TAY
28       PLP</pre>||Clobbers S; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 06   LDA #6
D0 FD   BNE *-1
@A:
EA      NOP
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,263: Line 9,591:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|21 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>EA      NOP
26 00    ROL $00
A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
66 00   ROR $00
D0 FD   BNE *-1
26 00    ROL $00
36 00    ROL $00,X
66 00    ROR $00
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,276: Line 9,604:
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
|-
!colspan="2"|22 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,515: Line 9,845:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A0 0B    LDY #11
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,522: Line 9,859:
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 0B    LDY #11
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 10,534: Line 9,864:
|<pre>98      TYA
|<pre>98      TYA
48      PHA
48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
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
A2 0A    LDX #10
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,548: Line 9,885:
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 0A    LDX #10
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,582: Line 9,911:
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>08      PHP
20 xx xx JSR @rts15
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>48       PHA
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 08   LDA #8
D0 FD   BNE *-1
@A:
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
A5 00    LDA $00
38      SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,683: Line 9,992:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 0C    LDY #12
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 10,688: Line 10,002:
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 0C    LDY #12
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 10,721: Line 10,030:
|<pre>68      PLA
|<pre>68      PLA
18      CLC
18      CLC
A9 F8    LDA #248
A9 F8    LDA #248 ;hides 'SED'
@A = * - 1
@A = * - 1
; ^ Hides SED
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, C, and D
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, C, and D
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>20 xx xx JSR @rts15
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,744: Line 10,058:
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>20 xx xx JSR @rts15
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 10,754: Line 10,074:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 07    LDX #7
A0 07    LDY #7
@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
|-
|<pre>48      PHA
20 xx xx JSR @rts12
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, and S; requires @rts12; and writes in stack
|-
|<pre>48      PHA
20 xx xx JSR @rts12
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 10,786: Line 10,120:
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>EA      NOP
|-
48      PHA
|<pre>48      PHA
48      PHA
98       TYA
08       PHP
48      PHA
48      PHA
A0 06   LDY #6
A9 4A   LDA #$4A  ;hides 'LSR A'
@Y:
D0 FD   BNE *-1
EA      NOP
88      DEY
D0 xx   BNE @Y
68      PLA
68      PLA
A8       TAY
28       PLP</pre>||Clobbers S; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 06   LDA #6
D0 FD   BNE *-1
@A:
EA      NOP
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,105: Line 10,434:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 0B    LDX #11
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,113: Line 10,450:
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 0B    LDX #11
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
Line 11,140: Line 10,468:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 0A    LDY #10
A2 0A    LDX #10
@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 11,197: Line 10,525:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
28      PLP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 09   LDA #9
D0 FD   BNE *-1
@A:
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,280: Line 10,608:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 0C    LDY #12
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,286: Line 10,620:
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 0C    LDY #12
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 11,320: Line 10,648:
98      TYA
98      TYA
48      PHA
48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
68      PLA
68      PLA
Line 11,328: Line 10,655:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
20 xx xx JSR @rts15
08      PHP
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
98      TYA
98      TYA
48      PHA
48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
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
20 xx xx JSR @rts15
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,377: Line 10,717:
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>48       PHA
|-
08      PHP
|<pre>EA       NOP
28       PLP
48       PHA
08       PHP
98       TYA
48      PHA
48      PHA
A0 06   LDY #6
A9 4A   LDA #$4A  ;hides 'LSR A'
@Y:
D0 FD   BNE *-1
EA      NOP
88      DEY
D0 xx   BNE @Y
68      PLA
68      PLA
A8       TAY
28       PLP</pre>||Clobbers S; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|12 bytes
48      PHA
08      PHP
48      PHA
38      SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
|<pre>08       PHP
|-
24 00    BIT $00
|<pre>EA       NOP
28       PLP
EA       NOP
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 06   LDA #6
D0 FD   BNE *-1
@A:
EA      NOP
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,685: Line 11,005:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 09    LDX #9
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 09    LDY #9
|<pre>A0 09    LDY #9
Line 11,691: Line 11,017:
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 09    LDX #9
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 11,720: Line 11,040:
|<pre>08      PHP
|<pre>08      PHP
18      CLC
18      CLC
A9 F8    LDA #248
A9 F8    LDA #248 ;hides 'SED'
@A = * - 1
@A = * - 1
; ^ Hides SED
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
Line 11,729: Line 11,048:
|<pre>48      PHA
|<pre>48      PHA
18      CLC
18      CLC
A9 F8    LDA #248
A9 F8    LDA #248 ;hides 'SED'
@A = * - 1
@A = * - 1
; ^ Hides SED
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
Line 11,754: Line 11,072:
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
20 xx xx JSR @rts15
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts15; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 11,771: Line 11,096:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
28      PLP
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 09   LDA #9
D0 FD   BNE *-1
@A:
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,856: Line 11,181:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 08    LDY #8
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 08    LDX #8
|<pre>A2 08    LDX #8
Line 11,863: Line 11,194:
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>A0 08   LDY #8
|<pre>68      PLA
A0 0C   LDY #12
@Y:
@Y:
48      PHA
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>68      PLA
|<pre>68      PLA
Line 11,874: Line 11,205:
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>68      PLA
A0 0C    LDY #12
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 11,940: Line 11,265:
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>20 xx xx JSR @rts12
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 4A   LDA #$4A  ;hides 'LSR A'
A9 09   LDA #9
D0 FD   BNE *-1
@A:
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
36 00    ROL $00,X
76 00    ROR $00,X
48      PHA
48      PHA
A5 00    LDA $00
A9 4A   LDA #$4A  ;hides 'LSR A'
38      SEC
D0 FD   BNE *-1
A9 09   LDA #9
@A:
E9 01    SBC #1
D0 xx   BNE @A
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 12,243: Line 11,563:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0D    LDY #13
|<pre>A0 0D    LDY #13
Line 12,248: Line 11,573:
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 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 12,280: Line 11,600:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A6 00    LDX $00
A2 0B    LDX #11
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,288: Line 11,616:
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 0B    LDX #11
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 12,502: Line 11,822:
98      TYA
98      TYA
48      PHA
48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
68      PLA
68      PLA
Line 12,819: Line 12,138:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 0D    LDY #13
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,826: Line 12,151:
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
!colspan="2"|7 bytes
A0 0D   LDY #13
|-
|<pre>08       PHP
A0 0C   LDY #12
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,840: Line 12,166:
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 0C    LDY #12
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 12,885: Line 12,204:
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>20 xx xx JSR @rts15
08      PHP
48      PHA
A9 4A    LDA #$4A  ;hides 'LSR A'
D0 FD    BNE *-1
68      PLA
28      PLP</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,907: Line 12,234:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 07    LDX #7
A0 07    LDY #7
@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
|-
|<pre>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</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 13,011: Line 12,347:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
88      DEY
88      DEY
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
Line 13,034: Line 12,369:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 0B    LDY #11
@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 13,043: Line 12,387:
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 0B    LDY #11
@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 13,104: Line 12,439:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0A    LDY #10
A2 0A    LDX #10
@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 13,158: Line 12,493:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|25 bytes
!colspan="2"|24 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
EA      NOP
D0 FD    BNE *-1
EA      NOP
A5 00   LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 13,174: Line 12,507:
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
|-
!colspan="2"|25 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,437: Line 12,772:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 0D    LDY #13
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 13,444: Line 12,785:
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 0D    LDY #13
@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 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,458: Line 12,800:
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 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 13,515: Line 12,850:
98      TYA
98      TYA
48      PHA
48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
68      PLA
68      PLA
Line 13,524: Line 12,858:
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,529: Line 12,872:
98      TYA
98      TYA
48      PHA
48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
30 xx    BMI @Y
68      PLA
68      PLA
Line 13,653: Line 12,995:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 09    LDY #9
@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 13,661: Line 13,011:
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 09    LDY #9
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,703: Line 13,045:
48      PHA
48      PHA
18      CLC
18      CLC
A9 F8    LDA #248
A9 F8    LDA #248 ;hides 'SED'
@A = * - 1
@A = * - 1
; ^ Hides SED
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
Line 13,732: Line 13,073:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|25 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>EA      NOP
26 00    ROL $00
A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
66 00   ROR $00
D0 FD   BNE *-1
26 00    ROL $00
36 00    ROL $00,X
66 00    ROR $00
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 13,747: Line 13,088:
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
|-
!colspan="2"|26 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,014: Line 13,357:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
88      DEY
88      DEY
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
Line 14,023: Line 13,365:
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
88      DEY
88      DEY
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
Line 14,222: Line 13,563:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 0D    LDY #13
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,229: Line 13,577:
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 0D    LDY #13
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 14,610: Line 13,951:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
08      PHP
A2 09    LDX #9
@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 14,619: Line 13,969:
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 09    LDX #9
@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 14,825: Line 14,166:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A2 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,833: Line 14,182:
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 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,230: Line 14,571:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
88      DEY
88      DEY
30 xx    BMI @Y
30 xx    BMI @Y
Line 15,469: Line 14,809:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<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>EA      NOP
|<pre>EA      NOP
Line 15,477: Line 14,825:
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 15,495: Line 14,835:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 0D    LDY #13
A2 0D    LDX #13
@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 15,925: Line 15,265:
48      PHA
48      PHA
18      CLC
18      CLC
A9 F8    LDA #248
A9 F8    LDA #248 ;hides 'SED'
@A = * - 1
@A = * - 1
; ^ Hides SED
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
Line 16,023: Line 15,362:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
48      PHA
48      PHA
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
Line 16,031: Line 15,369:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
A5 00    LDA $00
A5 00    LDA $00
30 xx    BMI @Y</pre>||Clobbers A, Y, and Z&N
30 xx    BMI @Y</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
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
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
24 00    BIT $00
24 00    BIT $00
30 xx    BMI @Y</pre>||Clobbers Y, Z&N, and V
30 xx    BMI @Y</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
85 xx    STA @zptemp
85 xx    STA @zptemp
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
Line 16,061: Line 15,395:
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>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
04 00    NOP $00
04 00    NOP $00
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 0F    LDX #15
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 16,074: Line 15,413:
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>A6 00    LDX $00
A2 0F    LDX #15
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 16,085: Line 15,418:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
88      DEY
88      DEY
30 xx    BMI @Y
30 xx    BMI @Y
Line 16,096: Line 15,428:
|<pre>08      PHP
|<pre>08      PHP
A4 00    LDY $00
A4 00    LDY $00
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
88      DEY
88      DEY
30 xx    BMI @Y
30 xx    BMI @Y
Line 16,123: Line 15,454:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0D    LDY #13
A2 0D    LDX #13
@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 16,511: Line 15,842:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0D    LDY #13
A2 0D    LDX #13
@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 16,524: Line 15,855:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0D    LDY #13
A2 0D    LDX #13
@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 16,616: Line 15,947:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|29 bytes
!colspan="2"|28 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
EA      NOP
D0 FD    BNE *-1
EA      NOP
A5 00   LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 16,634: Line 15,963:
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
|-
!colspan="2"|29 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,730: Line 16,061:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
48      PHA
48      PHA
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
Line 16,749: Line 16,079:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 09    LDX #9
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 09    LDY #9
|<pre>A0 09    LDY #9
Line 16,756: Line 16,093:
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 09    LDX #9
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 17,029: Line 16,359:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|30 bytes
!colspan="2"|29 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>EA      NOP
26 00    ROL $00
A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
66 00   ROR $00
D0 FD   BNE *-1
26 00    ROL $00
36 00    ROL $00,X
66 00    ROR $00
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 17,046: Line 16,376:
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
|-
!colspan="2"|30 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,203: Line 16,535:
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
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,213: Line 16,555:
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 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0D    LDY #13
A2 0D    LDX #13
@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 17,535: Line 16,867:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
24 00    BIT $00
24 00    BIT $00
30 xx    BMI @Y
30 xx    BMI @Y
Line 17,623: Line 16,954:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0D    LDY #13
A2 0D    LDX #13
@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 18,004: Line 17,335:
EA      NOP
EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0D    LDY #13
A2 0D    LDX #13
@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 18,092: Line 17,423:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
68      PLA
68      PLA
30 xx    BMI @Y</pre>||Clobbers A, Y, S, and Z&N
30 xx    BMI @Y</pre>||Clobbers A, Y, S, and Z&N
Line 18,100: Line 17,430:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
EA      NOP
EA      NOP
88      DEY
88      DEY
Line 18,124: Line 17,453:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 09    LDX #9
A0 09    LDY #9
@X:
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 xx    BNE @X
D0 xx    BNE @Y
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 09    LDY #9
A2 09    LDX #9
@Y:
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 xx    BNE @Y
D0 xx    BNE @X
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,752: Line 18,081:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 0D    LDY #13
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0D    LDX #13
|<pre>A2 0D    LDX #13
Line 18,758: Line 18,093:
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 0D    LDY #13
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 18,906: Line 18,235:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 11    LDX #17
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,913: Line 18,249:
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:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 19,036: Line 18,365:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|33 bytes
!colspan="2"|32 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
EA      NOP
D0 FD    BNE *-1
EA      NOP
A5 00   LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 19,056: Line 18,383:
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
|-
!colspan="2"|33 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,439: Line 18,768:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|34 bytes
!colspan="2"|33 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>EA      NOP
26 00    ROL $00
A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
66 00   ROR $00
D0 FD   BNE *-1
26 00    ROL $00
36 00    ROL $00,X
66 00    ROR $00
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 19,458: Line 18,787:
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
|-
!colspan="2"|34 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,573: Line 18,904:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
EA      NOP
EA      NOP
88      DEY
88      DEY
Line 19,785: Line 19,115:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and V
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and V
|-
|<pre>A0 0C    LDY #12
@Y:
85 xx    STA @zptemp
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 19,791: Line 19,127:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>A0 0C    LDY #12
@Y:
85 xx    STA @zptemp
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 19,811: Line 19,141:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 12    LDY #18
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,819: Line 19,157:
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 12    LDY #18
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 20,194: Line 19,524:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 0E    LDX #14
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0E    LDY #14
|<pre>A0 0E    LDY #14
Line 20,200: Line 19,536:
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:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,505: Line 19,835:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 12    LDY #18
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,513: Line 19,851:
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 12    LDY #18
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,629: Line 19,959:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A2 14    LDX #20
|<pre>A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 14    LDX #20
@X:
@X:
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 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,647: Line 19,977:
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 12    LDX #18
@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 20,655: Line 19,993:
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 12    LDX #18
@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 20,868: Line 20,198:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A0 0E    LDY #14
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 20,875: Line 20,212:
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:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,930: Line 20,260:
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
A2 12    LDX #18
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,939: Line 20,278:
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 12    LDX #18
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 21,060: Line 20,390:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 13    LDX #19
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,067: Line 20,404:
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 13    LDX #19
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 21,083: Line 20,413:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 0D    LDX #13
A0 0D    LDY #13
@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
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,346: Line 20,676:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 0C    LDX #12
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,354: Line 20,692:
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 0C    LDX #12
@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 21,483: Line 20,813:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 0D    LDY #13
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 0D    LDX #13
|<pre>A2 0D    LDX #13
Line 21,489: Line 20,825:
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>A0 0D    LDY #13
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 21,623: Line 20,953:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|37 bytes
!colspan="2"|36 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
EA      NOP
D0 FD    BNE *-1
EA      NOP
A5 00   LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
Line 21,645: Line 20,973:
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
|-
!colspan="2"|37 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,759: Line 21,089:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 15    LDY #21
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 15    LDX #21
|<pre>A2 15    LDX #21
Line 21,764: Line 21,099:
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 15    LDY #21
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 21,986: Line 21,316:
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>08      PHP
A2 0B    LDX #11
@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 21,995: Line 21,334:
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 0B    LDX #11
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,075: Line 21,405:
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|38 bytes
!colspan="2"|37 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>EA      NOP
26 00    ROL $00
A9 AD   LDA #$4A  ;hides 'LDA $FDD0'
66 00   ROR $00
D0 FD   BNE *-1
26 00    ROL $00
36 00    ROL $00,X
66 00    ROR $00
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 22,096: Line 21,426:
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
|-
!colspan="2"|38 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,207: Line 21,539:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,214: Line 21,552:
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|7 bytes
A2 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>08      PHP
A0 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,228: Line 21,567:
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 14    LDY #20
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 22,332: Line 21,664:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,338: Line 21,676:
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
A2 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 22,374: Line 21,706:
|-
|-
|<pre>18      CLC
|<pre>18      CLC
A9 F4    LDA #244
A9 F4    LDA #244 ;hides 'NOP zp,X'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp,X
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
Line 22,646: Line 21,977:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 22,653: Line 21,990:
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 15    LDX #21
@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 15    LDY #21
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,667: Line 22,005:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
08       PHP
A0 15   LDY #21
A2 14   LDX #20
@Y:
@X:
88       DEY
CA       DEX
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,684: Line 22,023:
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 14    LDX #20
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,721: Line 22,052:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0D    LDX #13
A0 0D    LDY #13
@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 22,827: Line 22,158:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
08      PHP
A2 14    LDX #20
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,835: Line 22,174:
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 14    LDX #20
@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 23,121: Line 22,452:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
48      PHA
A0 15    LDY #21
@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 23,129: Line 22,467:
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 15    LDY #21
A0 15    LDY #21
@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 23,142: Line 22,480:
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
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68       PLA
EA       NOP
A0 15    LDY #21
EA      NOP
@Y:
A2 15    LDX #21
88       DEY
@X:
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
CA       DEX
|-
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,159: Line 22,498:
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 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 23,316: Line 22,647:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,323: Line 22,661:
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 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 23,550: Line 22,881:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 16    LDX #22
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 23,556: Line 22,893:
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>A6 00    LDX $00
A2 16    LDX #22
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,757: Line 23,088:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 15    LDY #21
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,765: Line 23,104:
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 15    LDY #21
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 23,925: Line 23,256:
|<pre>08      PHP
|<pre>08      PHP
18      CLC
18      CLC
A9 F4    LDA #244
A9 F4    LDA #244 ;hides 'NOP zp,X'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp,X
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
Line 23,935: Line 23,265:
|<pre>48      PHA
|<pre>48      PHA
18      CLC
18      CLC
A9 F4    LDA #244
A9 F4    LDA #244 ;hides 'NOP zp,X'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp,X
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
Line 24,107: Line 23,436:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 15    LDX #21
A0 15    LDY #21
@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
EA      NOP
08      PHP
A2 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,124: Line 23,462:
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 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,370: Line 23,699:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
08      PHP
08      PHP
28      PLP
28      PLP
Line 24,428: Line 23,756:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 15    LDX #21
A0 15    LDY #21
@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 24,541: Line 23,869:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 11    LDX #17
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 24,547: Line 23,881:
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 11    LDX #17
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 24,662: Line 23,990:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 18    LDX #24
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 18    LDY #24
|<pre>A0 18    LDY #24
Line 24,667: Line 24,000:
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
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 24,699: Line 24,027:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
A0 16    LDY #22
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,707: Line 24,043:
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 16    LDY #22
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 24,726: Line 24,054:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 15    LDX #21
A0 15    LDY #21
@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 24,739: Line 24,067:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 15    LDX #21
A0 15    LDY #21
@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 24,847: Line 24,175:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
A0 11    LDY #17
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,854: Line 24,189:
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 11    LDY #17
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 24,881: Line 24,209:
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
A2 10    LDX #16
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,890: Line 24,227:
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 10    LDX #16
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 24,972: Line 24,300:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 18    LDY #24
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,978: Line 24,312:
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 18    LDY #24
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 25,052: Line 24,380:
48      PHA
48      PHA
18      CLC
18      CLC
A9 F4    LDA #244
A9 F4    LDA #244 ;hides 'NOP zp,X'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp,X
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
Line 25,143: Line 24,470:
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
Line 25,203: Line 24,529:
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 10    LDY #16
@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 25,213: Line 24,549:
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 10    LDY #16
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 15    LDX #21
A0 15    LDY #21
@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 25,300: Line 24,626:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 18    LDY #24
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 25,307: Line 24,639:
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 18    LDY #24
@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 18    LDX #24
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,321: Line 24,654:
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 18    LDX #24
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 25,439: Line 24,765:
{| 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 25,444: Line 24,775:
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
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
08      PHP
08      PHP
28      PLP
28      PLP
Line 25,542: Line 24,867:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 15    LDX #21
A0 15    LDY #21
@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 25,620: Line 24,945:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
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
|-
|-
Line 25,640: Line 24,964:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 11    LDY #17
@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 25,648: Line 24,980:
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 11    LDY #17
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 25,758: Line 25,082:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
Line 25,766: Line 25,089:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 19    LDX #25
A0 19    LDY #25
@X:
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 19    LDX #25
@X:
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
!colspan="2"|7 bytes
A0 19   LDY #25
|-
|<pre>08       PHP
A0 18   LDY #24
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,785: Line 25,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 18    LDY #24
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 25,844: Line 25,167:
EA      NOP
EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 15    LDX #21
A0 15    LDY #21
@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 25,935: Line 25,258:
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>A0 88    LDY #136
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
@Y = * - 1
; ^ Hides DEY
68      PLA
68      PLA
68      PLA
68      PLA
Line 26,076: Line 25,398:
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
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 26,087: Line 25,414:
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 26,101: Line 25,429:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
08       PHP
A2 19   LDX #25
A2 18   LDX #24
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,118: Line 25,447:
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 18    LDX #24
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,234: Line 25,555:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
Line 26,276: Line 25,596:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 11    LDY #17
A2 11    LDX #17
@Y:
@X:
EA      NOP
EA      NOP
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"|11 bytes
!colspan="2"|11 bytes
Line 26,381: Line 25,701:
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
Line 26,391: Line 25,710:
68      PLA
68      PLA
9A      TXS
9A      TXS
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X</pre>||Clobbers A, X, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, and Z&N
|-
|-
Line 26,418: Line 25,736:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
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 26,426: Line 25,752:
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 19    LDY #25
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 26,444: Line 25,762:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A2 18    LDX #24
@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 18    LDY #24
A0 18    LDY #24
@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 26,461: Line 25,788:
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 18    LDY #24
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,567: Line 25,885:
|-
|-
!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 26,574: Line 25,899:
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 26,730: Line 26,048:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
Line 26,767: Line 26,084:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 18    LDY #24
A2 18    LDX #24
@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 26,897: Line 26,214:
|<pre>8C      TXA
|<pre>8C      TXA
48      PHA
48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
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 26,911: Line 26,235:
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 27,033: Line 26,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 27,042: Line 26,366:
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
!colspan="2"|9 bytes
08      PHP
|-
A2 19   LDX #25
|<pre>08      PHP
A2 10   LDX #16
@X:
@X:
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,059: Line 26,383:
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 10    LDX #16
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 27,176: Line 26,492:
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>A0 11    LDY #17
@Y:
24 00    BIT $00
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 27,182: Line 26,504:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and V
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and V
|-
|<pre>A0 11    LDY #17
@Y:
24 00    BIT $00
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 27,200: Line 26,516:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|<pre>A0 11    LDY #17
@Y:
04 00    NOP $00
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 27,207: Line 26,529:
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 11   LDY #17
!colspan="2"|8 bytes
|-
|<pre>A4 00    LDY $00
A0 13   LDY #19
@Y:
@Y:
04 00    NOP $00
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 27,221: Line 26,544:
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 13    LDY #19
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
Line 27,247: Line 26,562:
!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
|<pre>EA      NOP
Line 27,398: Line 26,713:
8C      TXA
8C      TXA
48      PHA
48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
Line 27,458: Line 26,772:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 11    LDY #17
A2 11    LDX #17
@Y:
@X:
EA      NOP
EA      NOP
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 27,569: Line 26,883:
68      PLA
68      PLA
9A      TXS
9A      TXS
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
Line 27,592: Line 26,905:
8C      TXA
8C      TXA
48      PHA
48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
Line 27,635: Line 26,947:
|-
|-
|<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
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 27,653: Line 26,975:
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 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 27,675: Line 26,987:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 18    LDY #24
A2 18    LDX #24
@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 27,894: Line 27,206:
{| 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 27,900: Line 27,217:
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
!colspan="2"|8 bytes
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
|<pre>08      PHP
A0 13    LDY #19
@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 27,914: Line 27,234:
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 13    LDY #19
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,942: Line 27,254:
|-
|-
|<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 27,955: Line 27,267:
|<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 27,988: Line 27,300:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 18    LDY #24
A2 18    LDX #24
@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 28,068: Line 27,380:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
48      PHA
A0 1B    LDY #27
@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 28,075: Line 27,394:
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 1B    LDY #27
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,164: Line 27,476:
8C      TXA
8C      TXA
48      PHA
48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
Line 28,238: Line 27,549:
{| 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 28,244: Line 27,561:
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 28,351: Line 27,662:
{| 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 28,358: Line 27,675:
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
!colspan="2"|7 bytes
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
|<pre>A6 00    LDX $00
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 28,372: Line 27,689:
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
!colspan="2"|9 bytes
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|9 bytes
|<pre>08      PHP
A0 11    LDY #17
@Y:
24 00    BIT $00
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,387: Line 27,706:
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 11    LDY #17
@Y:
24 00    BIT $00
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,428: Line 27,739:
|-
|-
|<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 28,596: Line 27,907:
8C      TXA
8C      TXA
48      PHA
48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
Line 28,688: Line 27,998:
{| 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 28,693: Line 28,008:
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 28,813: Line 28,123:
|<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 29,066: Line 28,376:
|-
|-
!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 29,073: Line 28,390:
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 29,134: Line 28,444:
8C      TXA
8C      TXA
48      PHA
48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
D0 xx    BNE @X
68      PLA
68      PLA
Line 29,147: Line 28,456:
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 29,230: Line 28,539:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 1D    LDY #29
@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 29,236: Line 28,551:
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 1D    LDY #29
@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 29,409: Line 28,718:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 1D    LDY #29
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 29,415: Line 28,730:
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>68      PLA
A0 1D    LDY #29
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,439: Line 28,748:
|-
|-
!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 29,447: Line 28,764:
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 29,553: Line 28,862:
|-
|-
!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 29,561: Line 28,878:
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 29,578: Line 28,887:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
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 29,586: Line 28,903:
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 1C    LDY #28
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 29,733: Line 29,042:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
48      PHA
A2 1D    LDX #29
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,741: Line 29,057:
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 1D    LDX #29
A2 1D    LDX #29
@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 29,754: Line 29,070:
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 1D    LDX #29
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 29,789: Line 29,098:
!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 29,999: Line 29,308:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 1E    LDX #30
A0 1E    LDY #30
@X:
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 1E    LDX #30
@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 X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A2 11   LDX #17
A0 1E   LDY #30
@X:
@Y:
68      PLA
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>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 30,016: Line 29,331:
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>A2 11   LDX #17
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 1E   LDX #30
@X:
@X:
68      PLA
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"|7 bytes
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 30,030: Line 29,345:
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
!colspan="2"|9 bytes
A2 1E    LDX #30
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!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 30,046: Line 29,364:
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 30,067: Line 29,376:
|-
|-
|<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 30,205: Line 29,514:
|-
|-
|<pre>18      CLC
|<pre>18      CLC
A9 EA    LDA #234
A9 EA    LDA #234 ;hides 'NOP'
@A = * - 1
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
D0 xx    BNE @A</pre>||Clobbers A, Z&N, and C
Line 30,291: Line 29,599:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
08      PHP
A2 1D    LDX #29
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,299: Line 29,615:
D0 xx    BNE @Y
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 1D    LDX #29
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,343: Line 29,651:
|-
|-
|<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 30,498: Line 29,806:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 1D    LDY #29
A2 1D    LDX #29
@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,717: Line 30,025:
|<pre>68      PLA
|<pre>68      PLA
18      CLC
18      CLC
A9 EA    LDA #234
A9 EA    LDA #234 ;hides 'NOP'
@A = * - 1
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
D0 xx    BNE @A</pre>||Clobbers A, S, Z&N, and C
Line 30,732: Line 30,039:
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
48      PHA
08      PHP
A0 1D    LDY #29
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,742: Line 30,058:
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
!colspan="2"|10 bytes
|-
|<pre>8C       TXA
48      PHA
48      PHA
08      PHP
A2 15    LDX #21
A0 1D    LDY #29
@X:
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>98      TYA
48      PHA
A0 15    LDY #21
@Y:
EA      NOP
EA      NOP
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,786: Line 30,093:
|-
|-
|<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 30,966: Line 30,273:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
A0 1E    LDY #30
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,974: Line 30,289:
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 1E    LDY #30
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 30,993: Line 30,300:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 1D    LDY #29
A2 1D    LDX #29
@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
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 15    LDY #21
A2 15    LDX #21
@Y:
@X:
EA      NOP
EA      NOP
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 31,039: Line 30,346:
|<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 31,122: Line 30,429:
|<pre>08      PHP
|<pre>08      PHP
18      CLC
18      CLC
A9 EA    LDA #234
A9 EA    LDA #234 ;hides 'NOP'
@A = * - 1
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
Line 31,131: Line 30,437:
|<pre>48      PHA
|<pre>48      PHA
18      CLC
18      CLC
A9 EA    LDA #234
A9 EA    LDA #234 ;hides 'NOP'
@A = * - 1
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
Line 31,324: Line 30,629:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 0D    LDX #13
@X:
08      PHP
28      PLP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,333: Line 30,647:
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 0D    LDX #13
@X:
08      PHP
28      PLP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 31,366: Line 30,671:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 1D    LDY #29
A2 1D    LDX #29
@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,597: Line 30,902:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 15    LDY #21
A2 15    LDX #21
@Y:
@X:
EA      NOP
EA      NOP
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,836: Line 31,141:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 15    LDY #21
A2 15    LDX #21
@Y:
@X:
EA      NOP
EA      NOP
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,947: Line 31,252:
48      PHA
48      PHA
18      CLC
18      CLC
A9 EA    LDA #234
A9 EA    LDA #234 ;hides 'NOP'
@A = * - 1
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
69 01    ADC #1
D0 xx    BNE @A
D0 xx    BNE @A
Line 31,991: Line 31,295:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 20    LDY #32
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,999: Line 31,311:
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 20    LDY #32
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,172: Line 31,476:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 13    LDX #19
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 13    LDY #19
|<pre>A0 13    LDY #19
Line 32,179: Line 31,490:
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 13    LDX #19
@X:
EA      NOP
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 32,206: Line 31,510:
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
A2 20    LDX #32
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,215: Line 31,528:
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 20    LDX #32
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,391: Line 31,695:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
Line 32,422: Line 31,725:
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
48      PHA
08      PHP
A2 20    LDX #32
@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,431: Line 31,743:
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 20    LDX #32
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 32,452: Line 31,755:
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
EA      NOP
08      PHP
A0 20    LDY #32
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,462: Line 31,775:
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
A0 20    LDY #32
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 32,770: Line 32,073:
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
Line 32,827: Line 32,129:
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
A2 21    LDX #33
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,836: Line 32,147:
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 21    LDX #33
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 32,906: Line 32,208:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 22    LDY #34
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,913: Line 32,222:
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 22    LDY #34
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 32,966: Line 32,268:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 23    LDX #35
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,972: Line 32,280:
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
A2 23    LDX #35
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 33,244: Line 32,546:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
Line 33,269: Line 32,570:
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 14    LDA #20
A9 14    LDA #20 ;hides 'NOP zp,X'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp,X
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
Line 33,375: Line 32,675:
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>EA      NOP
68      PLA
A0 23    LDY #35
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,382: Line 32,689:
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
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68       PLA
EA       NOP
A0 23    LDY #35
EA      NOP
@Y:
A2 23    LDX #35
88       DEY
@X:
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
CA       DEX
|-
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,399: Line 32,707:
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 23    LDX #35
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 33,425: Line 32,725:
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
A2 22    LDX #34
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,434: Line 32,743:
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 22    LDX #34
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 33,644: Line 32,944:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
CA      DEX
CA      DEX
D0 xx    BNE @X
D0 xx    BNE @X
Line 33,880: Line 33,179:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
A0 23    LDY #35
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,888: Line 33,195:
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 23    LDY #35
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 34,028: Line 33,327:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
EA      NOP
A0 1A    LDY #26
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,036: Line 33,343:
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 1A    LDY #26
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 34,184: Line 33,483:
|<pre>08      PHP
|<pre>08      PHP
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20 ;hides 'NOP zp,X'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp,X
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
Line 34,194: Line 33,492:
|<pre>48      PHA
|<pre>48      PHA
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20 ;hides 'NOP zp,X'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp,X
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
Line 34,394: Line 33,691:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 1A    LDX #26
@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 34,402: Line 33,707:
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:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,722: Line 34,019:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 25    LDX #37
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,729: Line 34,033:
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 25    LDX #37
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 34,838: Line 34,135:
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
48      PHA
08      PHP
A2 24    LDX #36
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,847: Line 34,153:
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 24    LDX #36
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 34,942: Line 34,239:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A0 26    LDY #38
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,949: Line 34,253:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
08       PHP
A0 26   LDY #38
A0 25   LDY #37
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,966: Line 34,271:
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 25    LDY #37
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 35,016: Line 34,313:
48      PHA
48      PHA
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20 ;hides 'NOP zp,X'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp,X
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
Line 35,412: Line 34,708:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
48      PHA
48      PHA
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
Line 35,420: Line 34,715:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
A5 00    LDA $00
A5 00    LDA $00
D0 xx    BNE @X</pre>||Clobbers A, X, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
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
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
24 00    BIT $00
24 00    BIT $00
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and V
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
Line 35,456: Line 34,747:
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>A2 E8    LDX #232
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
04 00    NOP $00
04 00    NOP $00
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
Line 35,673: Line 34,963:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
08      PHP
A2 26    LDX #38
@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 35,681: Line 34,979:
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 26    LDX #38
@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 35,792: Line 35,082:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
48      PHA
48      PHA
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
Line 36,043: Line 35,332:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 1D    LDY #29
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1D    LDX #29
|<pre>A2 1D    LDX #29
Line 36,049: Line 35,344:
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:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 36,265: Line 35,554:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
24 00    BIT $00
24 00    BIT $00
D0 xx    BNE @X
D0 xx    BNE @X
Line 36,336: Line 35,624:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A2 1D    LDX #29
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 36,343: Line 35,638:
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
A2 1D    LDX #29
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,477: Line 35,765:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 28    LDX #40
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 36,484: Line 35,779:
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 28    LDX #40
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 36,835: Line 36,123:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 1D    LDX #29
@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 36,843: Line 36,139:
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 1D    LDX #29
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 36,958: Line 36,246:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A2 1A    LDX #26
@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 36,966: Line 36,261:
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
A2 1A   LDX #26
68      PLA
@X:
A0 29   LDY #41
48      PHA
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X</pre>||Clobbers X, 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 36,979: Line 36,274:
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
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68       PLA
EA       NOP
A0 29    LDY #41
EA      NOP
@Y:
A2 29    LDX #41
88       DEY
@X:
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
CA       DEX
|-
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 36,996: Line 36,292:
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 29    LDX #41
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 37,022: Line 36,310:
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>08      PHP
A0 11    LDY #17
@Y:
08      PHP
28      PLP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 37,031: Line 36,328:
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 11    LDY #17
@Y:
08      PHP
28      PLP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,189: Line 36,477:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
08      PHP
A0 1D    LDY #29
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,198: Line 36,495:
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 1D    LDY #29
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 37,488: Line 36,776:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 11    LDY #17
A2 11    LDX #17
@Y:
@X:
08      PHP
08      PHP
28      PLP
28      PLP
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 37,563: Line 36,851:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 1B    LDY #27
@Y:
48      PHA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 1B    LDX #27
|<pre>A2 1B    LDX #27
Line 37,576: Line 36,858:
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>A0 18   LDY #24
|<pre>A0 1B   LDY #27
@Y:
@Y:
68      PLA
48      PHA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A0 18    LDY #24
@Y:
68      PLA
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
Line 37,856: Line 37,144:
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
48      PHA
08      PHP
A2 29    LDX #41
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 37,865: Line 37,162:
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 29    LDX #41
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 38,398: Line 37,686:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 11    LDY #17
A2 11    LDX #17
@Y:
@X:
08      PHP
08      PHP
28      PLP
28      PLP
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 38,444: Line 37,732:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
68      PLA
68      PLA
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
Line 38,452: Line 37,739:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A2 E8    LDX #232
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
EA      NOP
EA      NOP
CA      DEX
CA      DEX
Line 38,689: Line 37,975:
|-
|-
|<pre>18      CLC
|<pre>18      CLC
A9 64    LDA #100
A9 64    LDA #100 ;hides 'NOP zp'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
Line 38,697: Line 37,982:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
A0 2B    LDY #43
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 38,705: Line 37,998:
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 2B    LDY #43
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 38,791: Line 38,076:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
68      PLA
68      PLA
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N; and writes in stack
Line 39,259: Line 38,543:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 E8    LDX #232
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
@X = * - 1
; ^ Hides INX
EA      NOP
EA      NOP
CA      DEX
CA      DEX
Line 39,389: Line 38,672:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 21    LDY #33
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 21    LDX #33
|<pre>A2 21    LDX #33
Line 39,396: Line 38,685:
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 21   LDY #33
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 20   LDY #32
@Y:
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 39,411: Line 38,702:
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 20    LDY #32
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 39,498: Line 38,781:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 2D    LDX #45
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 39,505: Line 38,795:
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 2D    LDX #45
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 39,541: Line 38,824:
|<pre>08      PHP
|<pre>08      PHP
18      CLC
18      CLC
A9 64    LDA #100
A9 64    LDA #100 ;hides 'NOP zp'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
Line 39,551: Line 38,833:
|<pre>48      PHA
|<pre>48      PHA
18      CLC
18      CLC
A9 64    LDA #100
A9 64    LDA #100 ;hides 'NOP zp'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
Line 39,613: Line 38,894:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 2E    LDX #46
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 39,619: Line 38,906:
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>A6 00    LDX $00
A2 2E    LDX #46
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 39,737: Line 39,018:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 2D    LDY #45
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 39,745: Line 39,034:
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 2D    LDY #45
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,004: Line 39,285:
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
A2 2D    LDX #45
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,013: Line 39,303:
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 2D    LDX #45
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 40,206: Line 39,487:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 21    LDX #33
@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 40,214: Line 39,503:
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 21    LDX #33
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 40,310: Line 39,591:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A2 2F    LDX #47
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,317: Line 39,605:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
08       PHP
A2 2F   LDX #47
A0 2E   LDY #46
@X:
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @Y
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,334: Line 39,623:
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 2E    LDY #46
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,384: Line 39,665:
48      PHA
48      PHA
18      CLC
18      CLC
A9 64    LDA #100
A9 64    LDA #100 ;hides 'NOP zp'
@A = * - 1
@A = * - 1
; ^ Hides NOP zp
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
Line 40,505: Line 39,785:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A2 22    LDX #34
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,512: Line 39,799:
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
A2 22    LDX #34
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,646: Line 39,926:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 2F    LDY #47
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 40,653: Line 39,940:
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 2F    LDY #47
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 40,669: Line 39,949:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 21    LDX #33
A0 21    LDY #33
@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
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,751: Line 40,031:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,757: Line 40,043:
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
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 1B    LDY #27
|<pre>A0 1B    LDY #27
Line 40,778: Line 40,058:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A4 00    LDY $00
|<pre>A6 00    LDX $00
A0 30    LDY #48
A2 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 30    LDY #48
@Y:
@Y:
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>A6 00    LDX $00
!colspan="2"|9 bytes
A2 30   LDX #48
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 2E   LDX #46
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X, and S; and writes in stack
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 40,800: Line 40,089:
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 2E    LDX #46
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,930: Line 40,210:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A2 2F    LDX #47
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 40,938: Line 40,226:
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 2F    LDX #47
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,004: Line 40,284:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 31    LDY #49
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 31    LDX #49
|<pre>A2 31    LDX #49
Line 41,009: Line 40,294:
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 31    LDY #49
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,139: Line 40,419:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
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 41,146: Line 40,433:
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 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,195: Line 40,475:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A2 2F    LDX #47
@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 2F    LDY #47
A0 2F    LDY #47
@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 41,212: Line 40,501:
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 2F    LDY #47
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,268: Line 40,548:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 31    LDX #49
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,275: Line 40,561:
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
!colspan="2"|7 bytes
A2 31   LDX #49
|-
|<pre>08       PHP
A2 30   LDX #48
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X; and writes in stack
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 41,289: Line 40,576:
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 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 41,400: Line 40,680:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 2F    LDY #47
A2 2F    LDX #47
@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 41,478: Line 40,758:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 31    LDX #49
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 41,485: Line 40,771:
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 31    LDX #49
@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 31    LDY #49
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,499: Line 40,786:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
08       PHP
A0 31   LDY #49
A0 30   LDY #48
@Y:
@Y:
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 41,516: Line 40,804:
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 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 41,553: Line 40,833:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 21    LDX #33
A0 21    LDY #33
@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 41,631: Line 40,911:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
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 41,639: Line 40,927:
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 30    LDY #48
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 41,658: Line 40,938:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 2F    LDY #47
A2 2F    LDX #47
@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 41,671: Line 40,951:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 2F    LDY #47
A2 2F    LDX #47
@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 41,744: Line 41,024:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A2 1F    LDX #31
@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 41,752: Line 41,039:
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
A2 1F   LDX #31
68      PLA
@X:
A0 31   LDY #49
48      PHA
@Y:
CA       DEX
88       DEY
D0 xx    BNE @X</pre>||Clobbers X, 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 41,765: Line 41,052:
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 31    LDY #49
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 41,808: Line 41,088:
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
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 41,817: Line 41,106:
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 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 42,010: Line 41,290:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 32    LDX #50
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 42,017: Line 41,303:
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
!colspan="2"|9 bytes
A2 32   LDX #50
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 30   LDX #48
@X:
@X:
CA      DEX
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
D0 xx    BNE @X
|-
28      PLP</pre>||Clobbers X, and S; and writes in stack
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 42,033: Line 41,322:
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 30    LDX #48
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,062: Line 41,342:
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
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 42,072: Line 41,362:
D0 xx    BNE @X
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
A0 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 42,095: Line 41,375:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 2F    LDY #47
A2 2F    LDX #47
@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 42,164: Line 41,444:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A0 31    LDY #49
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 42,172: Line 41,460:
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 31    LDY #49
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 42,290: Line 41,570:
|<pre>48      PHA
|<pre>48      PHA
EA      NOP
EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 2F    LDY #47
A2 2F    LDX #47
@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
|-
|-

Revision as of 14:17, 14 March 2016

Delay code

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

All branch instructions assume that no page wrap occurs.

Explanations on the requirements:

  • @zp_temp means you have a zeropage address that you can write random data into.
  • @rts12 means you know a memory address that contains byte $60 (RTS).
  • @rts14 means you know a memory address that contains a harmless 2-cycle instruction that fits your constraints (such as CLC, LDA #0, or NOP), followed by RTS.
  • @rts15 means you know a memory address that contains a JMP that jumps to another location that contains RTS.
  • Alternatively, @rts15 means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as LDA $00), followed by RTS.
  • @A, @X, @Y are local labels.

{{#css:

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

}}


2 cycles

1 bytes
EA       NOP
No requirements


3 cycles

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


4 cycles

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


5 cycles

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


6 cycles

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


7 cycles

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


8 cycles

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


9 cycles

3 bytes
EA       NOP
08       PHP
28       PLP
Writes in stack
4 bytes
A9 AD    LDA #$4A  ;hides 'LDA $FDD0'
D0 FD    BNE *-1
Clobbers A, and Z&N
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


10 cycles

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


11 cycles

3 bytes
48       PHA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
4 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
Writes in stack
A5 00    LDA $00
68       PLA
68       PLA
Clobbers A, S, and Z&N
5 bytes
EA       NOP
A9 AD    LDA #$4A  ;hides 'LDA $FDD0'
D0 FD    BNE *-1
Clobbers A, and Z&N
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


13 cycles

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


14 cycles

3 bytes
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
4 bytes
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
EA       NOP
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
5 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
7 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


15 cycles

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


16 cycles

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


17 cycles

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


18 cycles

4 bytes
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
5 bytes
A5 00    LDA $00
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts15; and writes in stack
A6 00    LDX $00
20 xx xx JSR @rts15
Clobbers X, and Z&N; requires @rts15; and writes in stack
A4 00    LDY $00
20 xx xx JSR @rts15
Clobbers Y, and Z&N; requires @rts15; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts15; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
6 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
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
EA       NOP
EA       NOP
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
7 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


19 cycles

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


20 cycles

5 bytes
EA       NOP
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
48       PHA
48       PHA
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
6 bytes
EA       NOP
A5 00    LDA $00
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts15; and writes in stack
EA       NOP
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
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
EA       NOP
EA       NOP
EA       NOP
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
8 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N
10 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


21 cycles

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


22 cycles

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


23 cycles

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


24 cycles

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


25 cycles

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


26 cycles

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


28 cycles

5 bytes
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
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
48       PHA
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
10 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
14 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


29 cycles

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


30 cycles

6 bytes
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
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
48       PHA
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
15 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


31 cycles

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


32 cycles

6 bytes
68       PLA
68       PLA
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
7 bytes
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
BA       TSX
68       PLA
9A       TXS
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, X, Z&N, and C
48       PHA
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
8 bytes
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
98       TYA
48       PHA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 03    LDY #3
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 03    LDX #3
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
48       PHA
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
12 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
16 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


33 cycles

6 bytes
EA       NOP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
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
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
10 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
12 bytes
A9 AD    LDA #$4A  ;hides 'LDA $FDD0'
D0 FD    BNE *-1
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
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
14 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
17 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
18 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


34 cycles

6 bytes
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; 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
A4 00    LDY $00
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
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
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
48       PHA
A5 00    LDA $00
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
48       PHA
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
9 bytes
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
48       PHA
48       PHA
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
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
08       PHP
A2 03    LDX #3
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
A9 2A    LDA #$2A  ;hides 'ROL 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 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
12 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
17 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


35 cycles

6 bytes
68       PLA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
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
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
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
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
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
48       PHA
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
A9 AD    LDA #$4A  ;hides 'LDA $FDD0'
D0 FD    BNE *-1
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
14 bytes
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
19 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


36 cycles

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


38 cycles

6 bytes
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
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
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
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
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
08       PHP
BA       TSX
68       PLA
9A       TXS
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, and X; 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
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
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
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
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
11 bytes
48       PHA
98       TYA
48       PHA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @zptemp, and @rts12; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12, and support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 2A    LDA #$2A  ;hides 'ROL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
14 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
20 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
21 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


40 cycles

6 bytes
68       PLA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
38       SEC
A9 07    LDA #7
@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 #$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
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
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
48       PHA
08       PHP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
48       PHA
A5 00    LDA $00
A9 4A    LDA #$0A  ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
12 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
15 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
16 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
21 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
22 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


42 cycles

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


44 cycles

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


46 cycles

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


48 cycles

6 bytes
EA       NOP
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
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
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
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
48       PHA
A5 00    LDA $00
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
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
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
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
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
14 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
25 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
26 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


50 cycles

6 bytes
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
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
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
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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
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
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
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
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
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
A4 00    LDY $00
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
18       CLC
90 00    BCC *+2
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
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
14 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
26 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
27 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


52 cycles

5 bytes
48       PHA
A0 88    LDY #136 ;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
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
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
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
15 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
19 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
20 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
27 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
28 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


54 cycles

6 bytes
48       PHA
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
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
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
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
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
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
19 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
27 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


55 cycles

6 bytes
48       PHA
48       PHA
A0 88    LDY #136 ;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
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
15 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
21 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
28 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
29 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


56 cycles

5 bytes
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
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
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
48       PHA
A5 00    LDA $00
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
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
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
16 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
A9 AD    LDA #$4A  ;hides 'LDA $FDD0'
D0 FD    BNE *-1
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    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
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
22 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
29 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
30 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


58 cycles

6 bytes
EA       NOP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
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
18       CLC
90 00    BCC *+2
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
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
7 bytes
A6 00    LDX $00
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
08       PHP
A0 88    LDY #136 ;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
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
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
16 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
21 bytes
EA       NOP
A9 AD    LDA #$4A  ;hides 'LDA $FDD0'
D0 FD    BNE *-1
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    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
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
30 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
31 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


60 cycles

6 bytes
68       PLA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
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
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
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
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
A6 00    LDX $00
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
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
17 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
31 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
32 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


62 cycles

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


64 cycles

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


66 cycles

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


67 cycles

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


68 cycles

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


70 cycles

6 bytes
68       PLA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
48       PHA
08       PHP
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
18 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
24 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
35 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


71 cycles

5 bytes
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 09    LDY #9
@Y:
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
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
19 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
25 bytes
EA       NOP
A9 AD    LDA #$4A  ;hides 'LDA $FDD0'
D0 FD    BNE *-1
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    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
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
36 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
37 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


72 cycles

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


73 cycles

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


74 cycles

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


75 cycles

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


76 cycles

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


77 cycles

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


78 cycles

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


80 cycles

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


81 cycles

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


82 cycles

6 bytes
48       PHA
A0 88    LDY #136 ;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
28 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


83 cycles

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


84 cycles

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


85 cycles

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


86 cycles

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


87 cycles

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


88 cycles

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


89 cycles

5 bytes
A0 88    LDY #136 ;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
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
A2 0B    LDX #11
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
08       PHP
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
24 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
31 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
32 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


90 cycles

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


91 cycles

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


92 cycles

6 bytes
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
32 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


93 cycles

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


94 cycles

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


95 cycles

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


96 cycles

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


97 cycles

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


98 cycles

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


99 cycles

6 bytes
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
26 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
34 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


100 cycles

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


101 cycles

5 bytes
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
27 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
35 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
36 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


102 cycles

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


103 cycles

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


104 cycles

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


105 cycles

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


106 cycles

5 bytes
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
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 0C    LDA #12
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 08    LDA #8
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
27 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
36 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


107 cycles

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


108 cycles

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


109 cycles

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


110 cycles

6 bytes
68       PLA
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
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
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
48       PHA
A5 00    LDA $00
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
28 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
37 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


111 cycles

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


112 cycles

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


113 cycles

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


114 cycles

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


115 cycles

6 bytes
68       PLA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
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
30 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


116 cycles

5 bytes
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 00    LDX $00
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
08       PHP
18       CLC
A9 F4    LDA #244 ;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


117 cycles

7 bytes
48       PHA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
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
31 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


118 cycles

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


119 cycles

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


120 cycles

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


121 cycles

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


122 cycles

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


123 cycles

6 bytes
EA       NOP
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
48       PHA
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 F4    LDA #244 ;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
32 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


124 cycles

4 bytes
A2 E8    LDX #232 ;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
EA       NOP
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
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


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
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


126 cycles

5 bytes
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
98       TYA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
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


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
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
68       PLA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


128 cycles

5 bytes
68       PLA
A2 E8    LDX #232 ;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
48       PHA
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
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


129 cycles

6 bytes
A2 10    LDX #16
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 10    LDY #16
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 88    LDY #136 ;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
98       TYA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


130 cycles

6 bytes
48       PHA
48       PHA
A2 E8    LDX #232 ;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
48       PHA
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


131 cycles

5 bytes
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
6 bytes
08       PHP
A2 E8    LDX #232 ;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
8C       TXA
48       PHA
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


132 cycles

6 bytes
68       PLA
68       PLA
A2 E8    LDX #232 ;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
A0 10    LDY #16
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 10    LDX #16
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, 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


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
48       PHA
A5 00    LDA $00
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


134 cycles

6 bytes
A0 13    LDY #19
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 13    LDX #19
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
48       PHA
08       PHP
A2 E8    LDX #232 ;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
48       PHA
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


136 cycles

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


137 cycles

6 bytes
A2 11    LDX #17
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 11    LDY #17
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 11    LDX #17
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A0 11    LDY #17
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 11    LDX #17
@X:
A4 00    LDY $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Y, and Z&N
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
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
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
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
36 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


138 cycles

6 bytes
EA       NOP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232 ;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
48       PHA
A5 00    LDA $00
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 11    LDX #17
@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 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


139 cycles

6 bytes
48       PHA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A6 00    LDX $00
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 11    LDA #17
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
BA       TSX
68       PLA
9A       TXS
A2 E8    LDX #232 ;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
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
38       SEC
A9 11    LDA #17
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
10 bytes
EA       NOP
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
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
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
36 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


140 cycles

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


141 cycles

5 bytes
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
A0 13    LDY #19
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 13    LDX #19
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
37 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


142 cycles

7 bytes
48       PHA
48       PHA
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
EA       NOP
68       PLA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232 ;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
37 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


144 cycles

6 bytes
48       PHA
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
9 bytes
08       PHP
A0 11    LDY #17
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
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
38 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


146 cycles

5 bytes
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
38 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


148 cycles

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


150 cycles

6 bytes
68       PLA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, 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
39 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


152 cycles

7 bytes
48       PHA
48       PHA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
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
EA       NOP
68       PLA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, 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

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


154 cycles

6 bytes
48       PHA
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
48       PHA
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


156 cycles

5 bytes
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, 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

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
8C       TXA
48       PHA
A2 1D    LDX #29
@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 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


158 cycles

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


159 cycles

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


161 cycles

5 bytes
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
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
8C       TXA
48       PHA
A2 1D    LDX #29
@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
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
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 16    LDX #22
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
68       PLA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
08       PHP
18       CLC
A9 EA    LDA #234 ;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
48       PHA
A5 00    LDA $00
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


164 cycles

6 bytes
48       PHA
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A4 00    LDY $00
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 17    LDA #23
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
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
8C       TXA
48       PHA
A2 1D    LDX #29
@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 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


165 cycles

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


166 cycles

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

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


168 cycles

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


171 cycles

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


172 cycles

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


174 cycles

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


175 cycles

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


176 cycles

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


177 cycles

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


179 cycles

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


180 cycles

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


181 cycles

5 bytes
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
8 bytes
48       PHA
08       PHP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
38       SEC
A9 14    LDA #20 ;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
68       PLA
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


182 cycles

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


183 cycles

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


184 cycles

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


185 cycles

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


186 cycles

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


187 cycles

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


188 cycles

6 bytes
EA       NOP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
38       SEC
A9 14    LDA #20 ;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
48       PHA
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


189 cycles

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


190 cycles

6 bytes
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
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
48       PHA
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


191 cycles

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


192 cycles

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


193 cycles

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


194 cycles

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


195 cycles

6 bytes
68       PLA
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
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
48       PHA
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


196 cycles

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


197 cycles

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


198 cycles

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


199 cycles

5 bytes
A2 E8    LDX #232 ;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
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
98       TYA
48       PHA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


200 cycles

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


201 cycles

5 bytes
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
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
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
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


203 cycles

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


204 cycles

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


206 cycles

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


207 cycles

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


208 cycles

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


209 cycles

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


210 cycles

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


211 cycles

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


213 cycles

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


214 cycles

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


215 cycles

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


216 cycles

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


218 cycles

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


219 cycles

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


220 cycles

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


221 cycles

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


222 cycles

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


223 cycles

6 bytes
EA       NOP
A2 2C    LDX #44
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
8C       TXA
48       PHA
A2 11    LDX #17
@X:
08       PHP
28       PLP
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 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
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
08       PHP
A2 18    LDX #24
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


225 cycles

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


226 cycles

5 bytes
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
18       CLC
A9 64    LDA #100 ;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
68       PLA
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


227 cycles

6 bytes
48       PHA
A2 E8    LDX #232 ;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
48       PHA
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


229 cycles

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


230 cycles

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


231 cycles

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


232 cycles

6 bytes
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
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; 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
48       PHA
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


234 cycles

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


235 cycles

6 bytes
A0 1A    LDY #26
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 1A    LDX #26
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
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
48       PHA
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


236 cycles

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


237 cycles

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


239 cycles

6 bytes
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
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
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
48       PHA
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


241 cycles

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


242 cycles

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


243 cycles

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


244 cycles

6 bytes
48       PHA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, 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
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


245 cycles

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


246 cycles

5 bytes
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
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


247 cycles

7 bytes
48       PHA
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
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
EA       NOP
68       PLA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
8C       TXA
48       PHA
A2 2F    LDX #47
@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 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
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
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


249 cycles

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


250 cycles

6 bytes
68       PLA
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
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
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
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
48       PHA
A5 00    LDA $00
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


251 cycles

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


253 cycles

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


254 cycles

6 bytes
48       PHA
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
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
98       TYA
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
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
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
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
8C       TXA
48       PHA
A2 2F    LDX #47
@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 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


255 cycles

6 bytes
68       PLA
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 24    LDX #36
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 24    LDY #36
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
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:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1F    LDY #31
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 17    LDA #23
@A:
48       PHA
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
10 bytes
38       SEC
A9 17    LDA #23
@A:
EA       NOP
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
98       TYA
48       PHA
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
12 bytes
48       PHA
EA       NOP
8C       TXA
48       PHA
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
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