Fixed cycle delay: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
m (Minor tidification)
m (I forgot what I changed here. Probably something to make the code shorter.)
Line 77: Line 77:
!colspan="2"|2 bytes
!colspan="2"|2 bytes
|-
|-
|<pre>A5 00   LDA $00</pre>||Clobbers A, and Z&N
|<pre>A5 A5   LDA $A5</pre>||Clobbers A, and Z&N
|-
|-
|<pre>A4 00   LDY $00</pre>||Clobbers Y, and Z&N
|<pre>A4 A4   LDY $A4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00</pre>||Clobbers X, and Z&N
|<pre>A6 A6   LDX $A6</pre>||Clobbers X, and Z&N
|-
|-
|<pre>C5 00   CMP $00</pre>||Clobbers Z&N, and C
|<pre>C5 C5   CMP $C5</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00</pre>||Clobbers Z&N, and V
|<pre>24 24   BIT $24</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp</pre>||Requires @zptemp
|<pre>85 xx    STA @zptemp</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00</pre>||Requires support for unofficial opcodes
|<pre>04 04   NOP $04</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|3 bytes
!colspan="2"|3 bytes
Line 126: Line 126:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00   LDA $00</pre>||Clobbers A, and Z&N
A5 A5   LDA $A5</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A6 00   LDX $00</pre>||Clobbers X, and Z&N
A6 A6   LDX $A6</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A4 00   LDY $00</pre>||Clobbers Y, and Z&N
A4 A4   LDY $A4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 144: Line 144:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00   NOP $00</pre>||Requires support for unofficial opcodes
04 04   NOP $04</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
Line 191: Line 191:
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
EA  ... NOP      &times; 2</pre>||Clobbers X, and Z&N
EA  ... NOP      &times; 2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
EA  ... NOP      &times; 2</pre>||Clobbers Y, and Z&N
EA  ... NOP      &times; 2</pre>||Clobbers Y, and Z&N
|-
|-
Line 206: Line 206:
EA  ... NOP      &times; 2</pre>||Requires @zptemp
EA  ... NOP      &times; 2</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 2</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 2</pre>||Requires support for unofficial opcodes
|-
|-
Line 256: Line 256:
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|<pre>A2 AE    LDX #$AE  ;hides 'LDX $FDD0'
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 AC    LDY #$AC  ;hides 'LDY $FDD0'
|<pre>A0 AC    LDY #$AC  ;hides 'LDY $FDD0'
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 AE    LDX #$AE  ;hides 'LDX $FDD0'
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 277: Line 277:
EA  ... NOP      &times; 3</pre>||Requires @zptemp
EA  ... NOP      &times; 3</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 3</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 3</pre>||Requires support for unofficial opcodes
|-
|-
Line 303: Line 303:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>26 00   ROL $00
|<pre>26 26   ROL $26
66 00   ROR $00</pre>||Clobbers Z&N
66 26   ROR $26</pre>||Clobbers Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 358: Line 358:
EA  ... NOP      &times; 4</pre>||Requires @zptemp
EA  ... NOP      &times; 4</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 4</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 4</pre>||Requires support for unofficial opcodes
|-
|-
Line 379: Line 379:
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N
76 36   ROR $36,X</pre>||Clobbers Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 432: Line 432:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00</pre>||Clobbers X, and Z&N
66 26   ROR $26</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00</pre>||Clobbers Y, and Z&N
66 26   ROR $26</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00</pre>||Clobbers Z&N, and C
66 26   ROR $26</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00</pre>||Clobbers Z&N, and V
66 26   ROR $26</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00</pre>||Clobbers Z&N; and requires @zptemp
66 26   ROR $26</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00</pre>||Clobbers Z&N; and requires support for unofficial opcodes
66 26   ROR $26</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00</pre>||Clobbers Z&N; and not relocatable code
66 26   ROR $26</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18  ... CLC      &times; 5
|<pre>18  ... CLC      &times; 5
Line 471: Line 471:
EA  ... NOP      &times; 5</pre>||Requires @zptemp
EA  ... NOP      &times; 5</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 5</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 5</pre>||Requires support for unofficial opcodes
|-
|-
Line 499: Line 499:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N
76 36   ROR $36,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 529: Line 529:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
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>48       PHA
|<pre>08       PHP
BA      TSX
BA      TSX
68       PLA
28       PLP
9A      TXS
9A      TXS
68       PLA</pre>||Clobbers X, and Z&N; and writes in stack
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
20 xx xx JSR @rts12</pre>||Clobbers Y, and Z&N; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers Y, and Z&N; requires @rts12; and writes in stack
|-
|<pre>08      PHP
BA      TSX
68      PLA
9A      TXS
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 553: Line 547:
9A      TXS</pre>||Clobbers A, X, and Z&N
9A      TXS</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
20 xx xx JSR @rts12</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
20 xx xx JSR @rts12</pre>||Clobbers Z&N, and V; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers Z&N, and V; requires @rts12; and writes in stack
|-
|-
Line 564: Line 558:
|<pre>48  ... PHA      &times; 5</pre>||Clobbers S; and writes in stack
|<pre>48  ... PHA      &times; 5</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
20 xx xx JSR @rts12</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
Line 573: Line 567:
EA  ... NOP      &times; 4</pre>||Writes in stack
EA  ... NOP      &times; 4</pre>||Writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers A, and Z&N
76 36   ROR $36,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Y, and Z&N
76 36   ROR $36,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers X, and Z&N
76 36   ROR $36,X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and C
76 36   ROR $36,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and V
76 36   ROR $36,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00</pre>||Clobbers Z&N; and requires @zptemp
66 26   ROR $26</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 618: Line 612:
EA  ... NOP      &times; 6</pre>||Requires @zptemp
EA  ... NOP      &times; 6</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 6</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 6</pre>||Requires support for unofficial opcodes
|-
|-
Line 641: Line 635:
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
00 00    BRK 0</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
00 00    BRK 0</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 661: Line 655:
|<pre>68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|<pre>68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
00 00    BRK 0</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 685: Line 679:
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N
76 36   ROR $36,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 715: Line 709:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
20 xx xx JSR @rts14</pre>||Clobbers A, and Z&N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, and Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>A6 00   LDX $00
|<pre>A4 A4    LDY $A4
20 xx xx JSR @rts14</pre>||Clobbers Y, and Z&N; requires @rts14; and writes in stack
|-
|<pre>A6 A6    LDX $A6
20 xx xx JSR @rts14</pre>||Clobbers X, and Z&N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers X, and Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>A4 00    LDY $00
|<pre>C5 C5   CMP $C5
20 xx xx JSR @rts14</pre>||Clobbers Y, and Z&N; requires @rts14; and writes in stack
|-
|<pre>C5 00   CMP $00
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
|-
|-
Line 745: Line 739:
68  ... PLA      &times; 2</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 2</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
20 xx xx JSR @rts14</pre>||Requires @rts14, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
Line 751: Line 745:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
48      PHA
48      PHA
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00</pre>||Clobbers A, and Z&N
66 26   ROR $26</pre>||Clobbers A, and Z&N
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A4 00   LDY $00
A6 A6   LDX $A6
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Y, and Z&N
76 36   ROR $36,X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A6 00   LDX $00
A4 A4   LDY $A4
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers X, and Z&N
76 36   ROR $36,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
C5 00   CMP $00
C5 C5   CMP $C5
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and C
76 36   ROR $36,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
24 00   BIT $00
24 24   BIT $24
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and V
76 36   ROR $36,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00   NOP $00
04 04   NOP $04
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 795: Line 789:
|<pre>EA      NOP
|<pre>EA      NOP
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 809: Line 803:
EA  ... NOP      &times; 7</pre>||Requires @zptemp
EA  ... NOP      &times; 7</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 7</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 7</pre>||Requires support for unofficial opcodes
|-
|-
Line 839: Line 833:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
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>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack
|-
|-
Line 861: Line 855:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00   LDA $00
A5 A5   LDA $A5
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A6 00   LDX $00
A6 A6   LDX $A6
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A4 00   LDY $00
A4 A4   LDY $A4
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
Line 890: Line 884:
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00   NOP $00
04 04   NOP $04
00 00    BRK 0</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 923: Line 917:
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N
76 36   ROR $36,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 969: Line 963:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
48      PHA
48      PHA
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers A, and Z&N
76 36   ROR $36,X</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 03    LDY #3
A0 03    LDY #3
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 03    LDX #3
A2 03    LDX #3
CA      DEX
CA      DEX
Line 992: Line 986:
|<pre>EA      NOP
|<pre>EA      NOP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and C
76 36   ROR $36,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and V
76 36   ROR $36,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 1,016: Line 1,010:
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,030: Line 1,024:
EA  ... NOP      &times; 8</pre>||Requires @zptemp
EA  ... NOP      &times; 8</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 8</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 8</pre>||Requires support for unofficial opcodes
|-
|-
Line 1,070: Line 1,064:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00   LDA $00
A5 A5   LDA $A5
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
|<pre>EA      NOP
A6 00   LDX $00
A6 A6   LDX $A6
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
|<pre>EA      NOP
A4 00   LDY $00
A4 A4   LDY $A4
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
|-
|-
Line 1,105: Line 1,099:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00   NOP $00
04 04   NOP $04
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
Line 1,130: Line 1,124:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>26 00   ROL $00   \ &times; 2
|<pre>26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N
66 26   ROR $26   /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,148: Line 1,142:
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 04    LDY #4
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 04    LDY #4
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 1,184: Line 1,178:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
E6 xx    INC @zptemp
E6 xx    INC @zptemp
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and C
76 36   ROR $36,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and V
76 36   ROR $36,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,208: Line 1,202:
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 1,222: Line 1,216:
EA  ... NOP      &times; 9</pre>||Requires @zptemp
EA  ... NOP      &times; 9</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 9</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 9</pre>||Requires support for unofficial opcodes
|-
|-
Line 1,281: Line 1,275:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
BA      TSX
BA      TSX
68       PLA
08       PHP
28  ... PLP      &times; 2
9A      TXS
9A      TXS
68      PLA
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 1,298: Line 1,291:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
Line 1,305: Line 1,298:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>26 00   ROL $00
|<pre>26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N
76 36   ROR $36,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 1,360: Line 1,353:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
Line 1,386: Line 1,379:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N, and C
66 26   ROR $26   /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N, and V
66 26   ROR $26   /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
66 26   ROR $26   /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N; and not relocatable code
66 26   ROR $26   /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 1,420: Line 1,413:
EA  ... NOP      &times; 10</pre>||Requires @zptemp
EA  ... NOP      &times; 10</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 10</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 10</pre>||Requires support for unofficial opcodes
|-
|-
Line 1,477: Line 1,470:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 04    LDX #4
A2 04    LDX #4
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
Line 1,488: Line 1,481:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
Line 1,501: Line 1,494:
28      PLP
28      PLP
08      PHP
08      PHP
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>36 00   ROL $00,X \ &times; 2
|<pre>36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 1,527: Line 1,520:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
00 00    BRK 0</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
Line 1,576: Line 1,569:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
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
Line 1,608: Line 1,601:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
Line 1,644: Line 1,637:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and C
76 36   ROR $36,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N, and V
76 36   ROR $36,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N; and requires @zptemp
66 26   ROR $26   /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 1,685: Line 1,678:
EA  ... NOP      &times; 11</pre>||Requires @zptemp
EA  ... NOP      &times; 11</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 11</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 11</pre>||Requires support for unofficial opcodes
|-
|-
Line 1,738: Line 1,731:
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @rts14; and writes in stack
|-
|-
Line 1,758: Line 1,751:
28      PLP
28      PLP
08      PHP
08      PHP
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
68      PLA      \ &times; 2
68      PLA      \ &times; 2
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
Line 1,770: Line 1,763:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 1,799: Line 1,792:
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
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
Line 1,812: Line 1,805:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
20 xx xx JSR @rts15</pre>||Clobbers Z&N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Z&N; requires @rts15; and writes in stack
|-
|-
Line 1,832: Line 1,825:
28      PLP
28      PLP
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack
|-
|<pre>A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,872: Line 1,870:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>20 xx xx JSR @rts12
08      PHP
BA      TSX
28      PLP
9A      TXS
28      PLP</pre>||Clobbers X; requires @rts12; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 1,886: Line 1,891:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
20 xx xx JSR @rts12&times; 2</pre>||Clobbers Z&N, and V; requires @rts12; and writes in stack
20 xx xx JSR @rts12&times; 2</pre>||Clobbers Z&N, and V; requires @rts12; and writes in stack
|-
|-
Line 1,901: Line 1,906:
28      PLP      /</pre>||Clobbers S; and writes in stack
28      PLP      /</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
20 xx xx JSR @rts12&times; 2</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts12&times; 2</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
Line 1,920: Line 1,925:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 1,955: Line 1,960:
EA  ... NOP      &times; 12</pre>||Requires @zptemp
EA  ... NOP      &times; 12</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 12</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 12</pre>||Requires support for unofficial opcodes
|-
|-
Line 2,042: Line 2,047:
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 2,082: Line 2,087:
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>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
00 00... BRK 0    &times; 2</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
00 00... BRK 0    &times; 2</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
00 00... BRK 0    &times; 2</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 2,098: Line 2,103:
00 00... BRK 0    &times; 2</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 2,150: Line 2,155:
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack
Line 2,173: Line 2,178:
48  ... PHA      &times; 5</pre>||Clobbers S; requires @rts14; and writes in stack
48  ... PHA      &times; 5</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre>||Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
Line 2,181: Line 2,186:
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
08      PHP
08      PHP
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
28      PLP</pre>||Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|-
Line 2,194: Line 2,199:
28      PLP
28      PLP
08      PHP
08      PHP
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
Line 2,201: Line 2,206:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
48      PHA
48      PHA
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X</pre>||Clobbers A, and Z&N
76 36   ROR $36,X</pre>||Clobbers A, and Z&N
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
C5 00   CMP $00
C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
24 00   BIT $00
24 24   BIT $24
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00   NOP $00
04 04   NOP $04
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 2,239: Line 2,244:
|<pre>EA      NOP
|<pre>EA      NOP
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 2,253: Line 2,258:
EA  ... NOP      &times; 13</pre>||Requires @zptemp
EA  ... NOP      &times; 13</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 13</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 13</pre>||Requires support for unofficial opcodes
|-
|-
Line 2,366: Line 2,371:
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 2,379: Line 2,384:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 06    LDY #6
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 06    LDY #6
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 2,437: Line 2,442:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00   NOP $00
04 04   NOP $04
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 2,451: Line 2,456:
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>24 00   BIT $00
|<pre>24 24   BIT $24
20 xx xx JSR @rts14&times; 2</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
20 xx xx JSR @rts14&times; 2</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
|-
|-
Line 2,480: Line 2,485:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
20 xx xx JSR @rts14&times; 2</pre>||Requires @rts14, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts14&times; 2</pre>||Requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
Line 2,486: Line 2,491:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 04    LDX #4
A2 04    LDX #4
CA      DEX
CA      DEX
Line 2,493: Line 2,498:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
Line 2,501: Line 2,506:
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
08      PHP
08      PHP
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
|-
|-
Line 2,512: Line 2,517:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /
76 36   ROR $36,X /
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
48      PHA
48      PHA
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers A, and Z&N
76 36   ROR $36,X /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 2,525: Line 2,530:
|<pre>EA      NOP
|<pre>EA      NOP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
C5 00   CMP $00
C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
24 00   BIT $00
24 24   BIT $24
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
04 00   NOP $00
04 04   NOP $04
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 2,549: Line 2,554:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 2,563: Line 2,568:
EA  ... NOP      &times; 14</pre>||Requires @zptemp
EA  ... NOP      &times; 14</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 14</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 14</pre>||Requires support for unofficial opcodes
|-
|-
Line 2,609: Line 2,614:
18      CLC
18      CLC
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C
|-
|<pre>A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 2,617: Line 2,632:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
20 xx xx JSR @rts14&times; 2</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
20 xx xx JSR @rts14&times; 2</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|<pre>A2 FA    LDX #250 ;hides 'NOP'
EA      NOP
E8  ... INX      &times; 2
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 FA    LDY #250 ;hides 'NOP'
|<pre>A0 FA    LDY #250 ;hides 'NOP'
Line 2,631: Line 2,646:
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 FA   LDX #250 ;hides 'NOP'
!colspan="2"|8 bytes
|-
|<pre>A6 A6    LDX $A6
A2 04   LDX #4
EA      NOP
EA      NOP
E8  ... INX      &times; 2
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 04    LDY #4
A0 04    LDY #4
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 04    LDX #4
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 2,674: Line 2,684:
|<pre>08      PHP
|<pre>08      PHP
A0 03    LDY #3
A0 03    LDY #3
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 2,681: Line 2,691:
|<pre>08      PHP
|<pre>08      PHP
A2 03    LDX #3
A2 03    LDX #3
24 00   BIT $00
24 24   BIT $24
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 2,713: Line 2,723:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N
66 26   ROR $26   /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 2,783: Line 2,793:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
20 xx xx JSR @rts15&times; 2</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack
20 xx xx JSR @rts15&times; 2</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack
|-
|-
Line 2,805: Line 2,815:
20 xx xx JSR @rts14&times; 2</pre>||Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14&times; 2</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
Line 2,822: Line 2,832:
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
08      PHP
08      PHP
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
|-
|-
Line 2,836: Line 2,846:
28      PLP      /
28      PLP      /
08      PHP
08      PHP
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
68      PLA      \ &times; 3
68      PLA      \ &times; 3
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
Line 2,849: Line 2,859:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
E6 xx    INC @zptemp
E6 xx    INC @zptemp
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 2,873: Line 2,883:
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 2,887: Line 2,897:
EA  ... NOP      &times; 15</pre>||Requires @zptemp
EA  ... NOP      &times; 15</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 15</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 15</pre>||Requires support for unofficial opcodes
|-
|-
Line 2,922: Line 2,932:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 06    LDX #6
A2 06    LDX #6
CA      DEX
CA      DEX
Line 2,963: Line 2,973:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 3,001: Line 3,011:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>26 00   ROL $00
|<pre>26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 3,140: Line 3,150:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N, and C
66 26   ROR $26   /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N, and V
66 26   ROR $26   /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
66 26   ROR $26   /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N; and not relocatable code
66 26   ROR $26   /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 3,182: Line 3,192:
EA  ... NOP      &times; 16</pre>||Requires @zptemp
EA  ... NOP      &times; 16</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 16</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 16</pre>||Requires support for unofficial opcodes
|-
|-
Line 3,269: Line 3,279:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
Line 3,302: Line 3,312:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>36 00   ROL $00,X \ &times; 3
|<pre>36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 3,357: Line 3,367:
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 3,455: Line 3,465:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /</pre>||Clobbers Z&N; and requires @zptemp
66 26   ROR $26   /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 3,498: Line 3,508:
EA  ... NOP      &times; 17</pre>||Requires @zptemp
EA  ... NOP      &times; 17</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 17</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 17</pre>||Requires support for unofficial opcodes
|-
|-
Line 3,590: Line 3,600:
|<pre>68      PLA      \ &times; 2
|<pre>68      PLA      \ &times; 2
48      PHA      /
48      PHA      /
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers A, and Z&N
76 36   ROR $36,X /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 3,616: Line 3,626:
|-
|-
|<pre>00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler; and writes in stack
|<pre>00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
A0 07    LDY #7
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,622: Line 3,637:
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|7 bytes
A0 07    LDY #7
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>A6 A6    LDX $A6
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,650: Line 3,660:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 05    LDY #5 ;hides 'ORA zp'
88      DEY ;first loop only
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,657: Line 3,674:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>08      PHP
A0 05    LDY #5 ;hides 'ORA zp'
88      DEY ;first loop only
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
Line 3,696: Line 3,706:
10 FA    BPL *-4
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 3,728: Line 3,745:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A6 A6   LDX $A6
A0 04    LDY #4
A2 04    LDX #4
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A4 A4   LDY $A4
A2 04    LDX #4
A0 04    LDY #4
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 3,774: Line 3,791:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 3,809: Line 3,826:
EA  ... NOP      &times; 18</pre>||Requires @zptemp
EA  ... NOP      &times; 18</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 18</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 18</pre>||Requires support for unofficial opcodes
|-
|-
Line 3,845: Line 3,862:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 3,850: Line 3,872:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,891: Line 3,908:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 06    LDY #6
A2 06    LDX #6
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 06    LDX #6
A0 06    LDY #6
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,934: Line 3,951:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
68      PLA      \ &times; 4
68      PLA      \ &times; 4
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
Line 3,942: Line 3,959:
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 4,003: Line 4,020:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 06    LDX #6
A2 06    LDX #6
CA      DEX
CA      DEX
Line 4,031: Line 4,048:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00   CMP $00
C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 4,054: Line 4,071:
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
C5 00   CMP $00
C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
24 00   BIT $00
24 24   BIT $24
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00   NOP $00
04 04   NOP $04
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 4,078: Line 4,095:
|<pre>EA      NOP
|<pre>EA      NOP
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 4,092: Line 4,109:
EA  ... NOP      &times; 19</pre>||Requires @zptemp
EA  ... NOP      &times; 19</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 19</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 19</pre>||Requires support for unofficial opcodes
|-
|-
Line 4,116: Line 4,133:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
Line 4,133: Line 4,150:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 4,195: Line 4,217:
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
00 00... BRK 0    &times; 3</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 3</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 4,205: Line 4,227:
00 00... BRK 0    &times; 3</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 3</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 4,250: Line 4,272:
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 4,272: Line 4,294:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 06    LDY #6
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
Line 4,277: Line 4,304:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 06    LDY #6
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 4,365: Line 4,387:
|<pre>EA      NOP
|<pre>EA      NOP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
C5 00   CMP $00
C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
24 00   BIT $00
24 24   BIT $24
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
04 00   NOP $00
04 04   NOP $04
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 4,389: Line 4,411:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 4,403: Line 4,425:
EA  ... NOP      &times; 20</pre>||Requires @zptemp
EA  ... NOP      &times; 20</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 20</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 20</pre>||Requires support for unofficial opcodes
|-
|-
Line 4,440: Line 4,462:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
Line 4,499: Line 4,521:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 4,519: Line 4,541:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 4,553: Line 4,575:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00   NOP $00
04 04   NOP $04
00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 4,605: Line 4,627:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>26 00   ROL $00   \ &times; 2
|<pre>26 26   ROL $26   \ &times; 2
66 00   ROR $00   /
66 26   ROR $26   /
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 4,642: Line 4,664:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 4,647: Line 4,674:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 4,678: Line 4,700:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 07    LDX #7
A0 07    LDY #7
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 07    LDY #7
A2 07    LDX #7
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,719: Line 4,741:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>36 00   ROL $00,X \ &times; 2
|<pre>36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /
76 36   ROR $36,X /
68      PLA      \ &times; 3
68      PLA      \ &times; 3
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
Line 4,728: Line 4,750:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
E6 xx    INC @zptemp
E6 xx    INC @zptemp
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
C5 00   CMP $00
C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
24 00   BIT $00
24 24   BIT $24
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
04 00   NOP $00
04 04   NOP $04
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
4C xx xx JMP *+3
36 00    ROL $00,X \ &times; 3
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 4,766: Line 4,785:
EA  ... NOP      &times; 21</pre>||Requires @zptemp
EA  ... NOP      &times; 21</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 21</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 21</pre>||Requires support for unofficial opcodes
|-
|-
Line 4,832: Line 4,851:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
Line 4,839: Line 4,858:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 07    LDX #7
A2 07    LDX #7
CA      DEX
CA      DEX
Line 4,889: Line 4,908:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>26 00   ROL $00
|<pre>26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 4,921: Line 4,940:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, X, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, X, Z&N, and C
|-
|<pre>A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 4,965: Line 4,989:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A0 08    LDY #8
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 4,970: Line 4,999:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A0 08    LDY #8
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,990: Line 5,014:
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 5,015: Line 5,039:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 07    LDY #7
A2 07    LDX #7
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 07    LDX #7
A0 07    LDY #7
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,075: Line 5,099:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
68      PLA      \ &times; 5
68      PLA      \ &times; 5
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
Line 5,084: Line 5,108:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
E6 xx    INC @zptemp
E6 xx    INC @zptemp
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /
66 26   ROR $26   /
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /
66 26   ROR $26   /
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /
66 26   ROR $26   /
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>EA      NOP
26 00    ROL $00  \ &times; 2
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
66 00    ROR $00  /
36 00    ROL $00,X \ &times; 2
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 5,126: Line 5,147:
EA  ... NOP      &times; 22</pre>||Requires @zptemp
EA  ... NOP      &times; 22</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 22</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 22</pre>||Requires support for unofficial opcodes
|-
|-
Line 5,210: Line 5,231:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>36 00   ROL $00,X \ &times; 4
|<pre>36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 5,246: Line 5,267:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 09    LDX #9
A2 09    LDX #9
CA      DEX
CA      DEX
Line 5,259: Line 5,280:
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
24 00   BIT $00
24 24   BIT $24
90 FB    BCC *-3</pre>||Clobbers A, Z&N, C, and V
90 FB    BCC *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
Line 5,285: Line 5,306:
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
Line 5,301: Line 5,322:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 5,312: Line 5,333:
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>26 00   ROL $00
|<pre>26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 5,370: Line 5,398:
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
26 00   ROL $00   \ &times; 2
26 26   ROL $26   \ &times; 2
66 00   ROR $00   /
66 26   ROR $26   /
36 00   ROL $00,X \ &times; 2
36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|20 bytes
|-
|<pre>EA  ... NOP      &times; 2
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 5,413: Line 5,446:
EA  ... NOP      &times; 23</pre>||Requires @zptemp
EA  ... NOP      &times; 23</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 23</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 23</pre>||Requires support for unofficial opcodes
|-
|-
Line 5,432: Line 5,465:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 07    LDX #7
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 07    LDY #7
|<pre>A0 07    LDY #7
Line 5,437: Line 5,475:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 07    LDX #7
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
Line 5,536: Line 5,569:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 5,605: Line 5,638:
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
Line 5,620: Line 5,653:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
Line 5,658: Line 5,691:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00   CMP $00
C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 5,680: Line 5,713:
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 3
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|21 bytes
|-
|<pre>EA  ... NOP      &times; 3
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 5,715: Line 5,753:
EA  ... NOP      &times; 24</pre>||Requires @zptemp
EA  ... NOP      &times; 24</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 24</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 24</pre>||Requires support for unofficial opcodes
|-
|-
Line 5,739: Line 5,777:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N
Line 5,833: Line 5,871:
|<pre>18      CLC
|<pre>18      CLC
A9 4A    LDA #$4A ;hides 'LSR A'
A9 4A    LDA #$4A ;hides 'LSR A'
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
|-
|-
Line 5,861: Line 5,899:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>36 00   ROL $00,X \ &times; 2
|<pre>36 36   ROL $36,X \ &times; 2
76 00   ROR $00,X /
76 36   ROR $36,X /
68      PLA      \ &times; 4
68      PLA      \ &times; 4
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
Line 5,869: Line 5,907:
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 5,891: Line 5,929:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,896: Line 5,939:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 5,975: Line 6,013:
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
C5 00   CMP $00
C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
24 00   BIT $00
24 24   BIT $24
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 00   NOP $00
04 04   NOP $04
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 5,999: Line 6,037:
|<pre>EA      NOP
|<pre>EA      NOP
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|22 bytes
|-
|<pre>EA  ... NOP      &times; 4
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 6,013: Line 6,056:
EA  ... NOP      &times; 25</pre>||Requires @zptemp
EA  ... NOP      &times; 25</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 25</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 25</pre>||Requires support for unofficial opcodes
|-
|-
Line 6,058: Line 6,101:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 0A    LDX #10
A2 0A    LDX #10
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 0A    LDY #10
A0 0A    LDY #10
88      DEY
88      DEY
Line 6,100: Line 6,143:
D0 FD    BNE *-1
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>08      PHP
A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,141: Line 6,191:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 6,162: Line 6,212:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 6,189: Line 6,239:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
68      PLA      \ &times; 6
68      PLA      \ &times; 6
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|19 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
36 00    ROL $00,X \ &times; 4
76 00    ROR $00,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 6,240: Line 6,288:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A0 06    LDY #6
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
Line 6,245: Line 6,298:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|<pre>A0 06    LDY #6
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,304: Line 6,352:
|<pre>EA      NOP
|<pre>EA      NOP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
C5 00   CMP $00
C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
24 00   BIT $00
24 24   BIT $24
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
04 00   NOP $00
04 04   NOP $04
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 6,328: Line 6,376:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
4C xx xx JMP *+3
4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|22 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 6,342: Line 6,396:
EA  ... NOP      &times; 26</pre>||Requires @zptemp
EA  ... NOP      &times; 26</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 26</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 26</pre>||Requires support for unofficial opcodes
|-
|-
Line 6,421: Line 6,475:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
24 00   BIT $00
24 24   BIT $24
90 FB    BCC *-3
90 FB    BCC *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
Line 6,427: Line 6,481:
|<pre>08      PHP
|<pre>08      PHP
A2 06    LDX #6
A2 06    LDX #6
24 00   BIT $00
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 6,458: Line 6,512:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00   CMP $00
C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 6,474: Line 6,528:
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|19 bytes
|-
|-
|<pre>26 00    ROL $00  \ &times; 2
|<pre>EA      NOP
66 00    ROR $00  /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
36 00    ROL $00,X \ &times; 3
76 00    ROR $00,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 6,596: Line 6,648:
!colspan="2"|20 bytes
!colspan="2"|20 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>C5 C5    CMP $C5
E6 xx   INC @zptemp
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
36 00    ROL $00,X \ &times; 4
|-
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
|<pre>24 24   BIT $24
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|-
!colspan="2"|21 bytes
|<pre>85 xx    STA @zptemp
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>EA  ... NOP     &times; 3
|<pre>04 04    NOP $04
C5 00    CMP $00
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
36 00    ROL $00,X \ &times; 4
76 00    ROR $00,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|21 bytes
24 00    BIT $00
36 00    ROL $00,X \ &times; 4
76 00    ROR $00,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>4C xx xx JMP *+3
04 00    NOP $00
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
36 00    ROL $00,X \ &times; 4
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>36 36   ROL $36,X
4C xx xx JMP *+3
76 36   ROR $36,X
36 00   ROL $00,X \ &times; 4
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 6,636: Line 6,682:
EA  ... NOP      &times; 27</pre>||Requires @zptemp
EA  ... NOP      &times; 27</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 27</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 27</pre>||Requires support for unofficial opcodes
|-
|-
Line 6,696: Line 6,742:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 6,746: Line 6,792:
!colspan="2"|20 bytes
!colspan="2"|20 bytes
|-
|-
|<pre>26 00   ROL $00
|<pre>26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 6,771: Line 6,817:
28      PLP
28      PLP
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>48      PHA
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,776: Line 6,827:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 6,799: Line 6,845:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
Line 6,833: Line 6,879:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
30 FD    BMI *-1
Line 6,926: Line 6,972:
EA  ... NOP      &times; 12
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
!colspan="2"|20 bytes
|-
|<pre>E6 xx    INC @zptemp
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
|-
|-
|<pre>EA   ... NOP     &times; 3
|<pre>EA       NOP
E6 xx   INC @zptemp
C5 C5   CMP $C5
36 00    ROL $00,X \ &times; 4
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|22 bytes
|<pre>EA      NOP
24 24    BIT $24
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|-
|<pre>C5 00    CMP $00
|<pre>EA      NOP
26 00   ROL $00  \ &times; 2
04 04   NOP $04
66 00    ROR $00  /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
36 00    ROL $00,X \ &times; 3
76 00    ROR $00,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
!colspan="2"|22 bytes
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
36 00    ROL $00,X \ &times; 3
76 00    ROR $00,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00    NOP $00
|<pre>EA      NOP
26 00    ROL $00  \ &times; 2
4C xx xx JMP *+3
66 00    ROR $00  /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
36 00    ROL $00,X \ &times; 3
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>EA      NOP
26 00   ROL $00  \ &times; 2
36 36   ROL $36,X
66 00   ROR $00  /
76 36   ROR $36,X
36 00    ROL $00,X \ &times; 3
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 6,973: Line 7,016:
EA  ... NOP      &times; 28</pre>||Requires @zptemp
EA  ... NOP      &times; 28</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 28</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 28</pre>||Requires support for unofficial opcodes
|-
|-
Line 7,053: Line 7,096:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 0A    LDY #10
A2 0A    LDX #10
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 0A    LDX #10
A0 0A    LDY #10
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00   LDA $00
A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 7,122: Line 7,165:
!colspan="2"|20 bytes
!colspan="2"|20 bytes
|-
|-
|<pre>36 00   ROL $00,X \ &times; 5
|<pre>36 36   ROL $36,X \ &times; 5
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 7,198: Line 7,241:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 0A    LDX #10
A0 0A    LDY #10
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 0A    LDY #10
A2 0A    LDX #10
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 7,226: Line 7,269:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A6 A6    LDX $A6
A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 0A    LDY #10
A0 0A    LDY #10
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
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 0A    LDX #10
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,272: Line 7,315:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00   CMP $00
C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 7,290: Line 7,333:
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
68      PLA      \ &times; 7
68      PLA      \ &times; 7
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|21 bytes
|-
|<pre>EA      NOP
E6 xx    INC @zptemp
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>04 04   NOP $04
26 00    ROL $00  \ &times; 2
26 26   ROL $26
66 00    ROR $00  /
66 26   ROR $26
36 00    ROL $00,X \ &times; 3
36 36   ROL $36,X \ &times; 4
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|<pre>04 00   NOP $00
26 00   ROL $00
66 00   ROR $00
36 00   ROL $00,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|24 bytes
|-
|<pre>EA  ... NOP      &times; 2
36 36    ROL $36,X
76 36    ROR $36,X
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 7,340: Line 7,390:
EA  ... NOP      &times; 29</pre>||Requires @zptemp
EA  ... NOP      &times; 29</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 29</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 29</pre>||Requires support for unofficial opcodes
|-
|-
Line 7,411: Line 7,461:
C8      INY
C8      INY
D0 FC    BNE *-2</pre>||Clobbers A, Y, Z&N, and D
D0 FC    BNE *-2</pre>||Clobbers A, Y, Z&N, and D
|-
|<pre>A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,474: Line 7,529:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
36 00   ROL $00,X \ &times; 5
36 36   ROL $36,X \ &times; 5
76 00   ROR $00,X /</pre>||Clobbers Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 7,512: Line 7,567:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,522: Line 7,583:
D0 FB    BNE *-3
D0 FB    BNE *-3
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
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 7,664: Line 7,719:
!colspan="2"|22 bytes
!colspan="2"|22 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
36 00   ROL $00,X \ &times; 5
36 36   ROL $36,X \ &times; 5
76 00   ROR $00,X /</pre>||Clobbers Z&N, and C
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
36 00   ROL $00,X \ &times; 5
36 36   ROL $36,X \ &times; 5
76 00   ROR $00,X /</pre>||Clobbers Z&N, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
36 00   ROL $00,X \ &times; 4
36 36   ROL $36,X \ &times; 4
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
36 00   ROL $00,X \ &times; 5
36 36   ROL $36,X \ &times; 5
76 00   ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
36 00   ROL $00,X \ &times; 5
36 36   ROL $36,X \ &times; 5
76 00   ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|25 bytes
|-
|<pre>EA  ... NOP      &times; 3
36 36    ROL $36,X
76 36    ROR $36,X
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 7,699: Line 7,761:
EA  ... NOP      &times; 30</pre>||Requires @zptemp
EA  ... NOP      &times; 30</pre>||Requires @zptemp
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
EA  ... NOP      &times; 30</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 30</pre>||Requires support for unofficial opcodes
|-
|-
Line 7,848: Line 7,910:
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
Line 7,865: Line 7,927:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 0B    LDY #11
A2 0B    LDX #11
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 0B    LDX #11
A0 0B    LDY #11
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 8,004: Line 8,066:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
Line 8,011: Line 8,073:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
Line 8,071: Line 8,133:
9A      TXS</pre>||Clobbers A, X, Z&N, and C; and writes in stack
9A      TXS</pre>||Clobbers A, X, Z&N, and C; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>A2 0C   LDX #12
A2 88   LDX #136 ;hides 'DEY'
CA      DEX
CA      DEX
30 FC   BMI *-2</pre>||Clobbers X, Y, and Z&N; and requires @zptemp
D0 FB   BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
Line 8,098: Line 8,160:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 09    LDY #9
A0 09    LDY #9
EA      NOP
EA      NOP
Line 8,104: Line 8,166:
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 09    LDX #9
A2 09    LDX #9
EA      NOP
EA      NOP
Line 8,127: Line 8,189:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 0B    LDX #11
A0 0B    LDY #11
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 0B    LDY #11
A2 0B    LDX #11
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,345: Line 8,407:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 0D    LDX #13
A2 0D    LDX #13
CA      DEX
CA      DEX
Line 8,487: Line 8,549:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 8,493: Line 8,555:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
Line 8,589: Line 8,651:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0E    LDX #14
|<pre>A2 0E    LDX #14
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #44
|<pre>A9      LDA #44
Line 8,694: Line 8,756:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
EA      NOP
EA      NOP
30 FC    BMI *-2</pre>||Clobbers Y, and Z&N
30 FC    BMI *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 0A    LDX #10 ;hides 'ASL A'
A2 0A    LDX #10 ;hides 'ASL A'
CA      DEX
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers A, X, Z&N, and C
D0 FC    BNE *-2</pre>||Clobbers A, X, Z&N, and C
|-
|<pre>A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 8,753: Line 8,820:
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 08    LDX #8
24 24    BIT $24
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 08    LDY #8
A0 08    LDY #8
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 08    LDX #8
24 00    BIT $00
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,785: Line 8,852:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 8,792: Line 8,859:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
Line 8,952: Line 9,019:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
Line 8,958: Line 9,025:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
Line 9,004: Line 9,071:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 0E    LDX #14
A2 0E    LDX #14
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 0E    LDY #14
A0 0E    LDY #14
88      DEY
88      DEY
Line 9,032: Line 9,099:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 9,040: Line 9,107:
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
Line 9,055: Line 9,122:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
E6 xx    INC @zptemp
A2 0C   LDX #12
A2 88   LDX #136 ;hides 'DEY'
CA      DEX
CA      DEX
30 FC   BMI *-2
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and Y; requires @zptemp; and writes in stack
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,087: Line 9,154:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
Line 9,110: Line 9,177:
08      PHP
08      PHP
A2 08    LDX #8
A2 08    LDX #8
24 00   BIT $00
24 24   BIT $24
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 9,118: Line 9,185:
08      PHP
08      PHP
A0 08    LDY #8
A0 08    LDY #8
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 9,195: Line 9,262:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,201: Line 9,273:
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA  ... NOP      &times; 2
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 9,212: Line 9,284:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,244: Line 9,311:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 0D    LDX #13
A0 0D    LDY #13
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 0D    LDY #13
A2 0D    LDX #13
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 9,304: Line 9,371:
48  ... PHA      &times; 2
48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
Line 9,393: Line 9,460:
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
Line 9,401: Line 9,468:
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 9,415: Line 9,482:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 0D    LDX #13
A2 0D    LDX #13
CA      DEX
CA      DEX
Line 9,460: Line 9,527:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 9,469: Line 9,536:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,590: Line 9,662:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
Line 9,715: Line 9,787:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
A5 00   LDA $00
A5 A5   LDA $A5
30 FB    BMI *-3</pre>||Clobbers A, Y, and Z&N
30 FB    BMI *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
A6 00   LDX $00
A6 A6   LDX $A6
30 FB    BMI *-3</pre>||Clobbers X, Y, and Z&N
30 FB    BMI *-3</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
C5 00   CMP $00
C5 C5   CMP $C5
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and C
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
24 00   BIT $00
24 24   BIT $24
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and V
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and V
|-
|-
Line 9,745: Line 9,817:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
04 00   NOP $00
04 04   NOP $04
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 0F    LDY #15
A0 0F    LDY #15
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 0F    LDX #15
A2 0F    LDX #15
CA      DEX
CA      DEX
Line 9,771: Line 9,843:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
Line 9,811: Line 9,883:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
EA      NOP
EA      NOP
Line 9,818: Line 9,890:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 0A    LDX #10 ;hides 'ASL A'
A2 0A    LDX #10 ;hides 'ASL A'
CA      DEX
CA      DEX
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>08      PHP
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 9,922: Line 10,001:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
Line 10,081: Line 10,160:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
Line 10,139: Line 10,218:
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
Line 10,193: Line 10,272:
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
Line 10,200: Line 10,279:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 0E    LDY #14
A0 0E    LDY #14
88      DEY
88      DEY
Line 10,207: Line 10,286:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 0E    LDX #14
A2 0E    LDX #14
CA      DEX
CA      DEX
Line 10,248: Line 10,327:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
10 F9    BPL *-5
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 10,333: Line 10,412:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
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      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 10,496: Line 10,575:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
Line 10,524: Line 10,603:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 10,564: Line 10,643:
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
08      PHP
08      PHP
38      SEC
38      SEC
Line 10,572: Line 10,651:
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
48      PHA
48      PHA
38      SEC
38      SEC
Line 10,583: Line 10,662:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
Line 10,623: Line 10,702:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 10    LDY #16
A0 10    LDY #16
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 10    LDX #16
A2 10    LDX #16
CA      DEX
CA      DEX
Line 10,674: Line 10,753:
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
18      CLC
18      CLC
10 F8    BPL *-6</pre>||Clobbers A, Z&N, and C; and writes in stack
10 F8    BPL *-6</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
08      PHP
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 0E    LDY #14
A0 0E    LDY #14
88      DEY
88      DEY
Line 10,711: Line 10,797:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
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      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 10,915: Line 11,001:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 11    LDX #17
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 11    LDX #17
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #59
|<pre>A9      LDA #59
Line 10,949: Line 11,035:
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
C5 00   CMP $00
C5 C5   CMP $C5
30 FB    BMI *-3
30 FB    BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
Line 10,958: Line 11,044:
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
Line 10,994: Line 11,080:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 0F    LDX #15
A2 0F    LDX #15
CA      DEX
CA      DEX
Line 11,016: Line 11,102:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4
D0 FA    BNE *-4
Line 11,328: Line 11,414:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
30 FA    BMI *-4
30 FA    BMI *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 11,335: Line 11,421:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
30 FA    BMI *-4
30 FA    BMI *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
Line 11,390: Line 11,476:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4
D0 FA    BNE *-4
Line 11,420: Line 11,506:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00   CMP $00
C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 11,465: Line 11,551:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 11    LDX #17
A2 11    LDX #17
CA      DEX
CA      DEX
Line 11,496: Line 11,582:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 09    LDX #9
A0 09    LDY #9
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
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
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,569: Line 11,655:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4
D0 FA    BNE *-4
Line 11,577: Line 11,663:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
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 11,682: Line 11,768:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 10    LDY #16
A2 10    LDX #16
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 10    LDX #16
A0 10    LDY #16
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,753: Line 11,839:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4
D0 FA    BNE *-4
Line 11,770: Line 11,856:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>36 00   ROL $00,X
|<pre>36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 11,800: Line 11,886:
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
08      PHP
08      PHP
48      PHA
48      PHA
Line 11,814: Line 11,900:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
C5 00   CMP $00
C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 11,893: Line 11,979:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 10    LDX #16
A2 10    LDX #16
CA      DEX
CA      DEX
Line 11,900: Line 11,986:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 10    LDY #16
A0 10    LDY #16
88      DEY
88      DEY
Line 11,914: Line 12,000:
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
|-
|-
Line 11,972: Line 12,058:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
30 FA    BMI *-4
30 FA    BMI *-4
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
Line 11,979: Line 12,065:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
30 FA    BMI *-4
30 FA    BMI *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
Line 11,988: Line 12,074:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
18      CLC
18      CLC
Line 11,997: Line 12,083:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
18      CLC
18      CLC
Line 12,007: Line 12,093:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
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 12,278: Line 12,364:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
Line 12,292: Line 12,378:
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
18      CLC
18      CLC
Line 12,350: Line 12,436:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 12    LDX #18
A2 12    LDX #18
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 12    LDY #18
A0 12    LDY #18
88      DEY
88      DEY
Line 12,580: Line 12,666:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
30 FA    BMI *-4
30 FA    BMI *-4
68      PLA
68      PLA
Line 12,676: Line 12,762:
|<pre>08      PHP
|<pre>08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
24 00   BIT $00
24 24   BIT $24
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 12,919: Line 13,005:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 12,968: Line 13,054:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
26 00   ROL $00
26 26   ROL $26
66 00   ROR $00
66 26   ROR $26
90 F9    BCC *-5
90 F9    BCC *-5
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 13,000: Line 13,086:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
30 FA    BMI *-4
30 FA    BMI *-4
68      PLA
68      PLA
Line 13,011: Line 13,097:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
18      CLC
18      CLC
Line 13,281: Line 13,367:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
18      CLC
18      CLC
Line 13,374: Line 13,460:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A6 A6    LDX $A6
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 12    LDY #18
A0 12    LDY #18
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
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 12    LDX #18
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 13,450: Line 13,536:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 13    LDX #19
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 13,480: Line 13,571:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 0E    LDX #14
A2 0E    LDX #14
EA      NOP
EA      NOP
Line 13,486: Line 13,577:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 0E    LDY #14
A0 0E    LDY #14
EA      NOP
EA      NOP
Line 13,712: Line 13,803:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 14    LDX #20
A2 14    LDX #20
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 14    LDY #20
A0 14    LDY #20
88      DEY
88      DEY
Line 13,757: Line 13,848:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
00 00    BRK 0
00 00    BRK 0
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
Line 13,772: Line 13,863:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 08    LDY #8
A2 08    LDX #8
08      PHP
08      PHP
28      PLP
28      PLP
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 08    LDX #8
A0 08    LDY #8
08      PHP
08      PHP
28      PLP
28      PLP
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,924: Line 14,015:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 14,016: Line 14,107:
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
Line 14,404: Line 14,495:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A4 A4    LDY $A4
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 A6   LDX $A6
A2 15    LDX #21
A2 15    LDX #21
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 14,461: Line 14,552:
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
08      PHP
A2 13    LDX #19
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A2 13    LDX #19
A2 13    LDX #19
CA      DEX
CA      DEX
Line 14,698: Line 14,796:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 14    LDX #20
A0 14    LDY #20
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 14    LDY #20
A2 14    LDX #20
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A6 A6    LDX $A6
A2 14    LDX #20
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 14    LDY #20
A0 14    LDY #20
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
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 14    LDX #20
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,774: Line 14,872:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
00 00    BRK 0
00 00    BRK 0
10 F9    BPL *-5
10 F9    BPL *-5
Line 14,781: Line 14,879:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
00 00    BRK 0
00 00    BRK 0
10 F9    BPL *-5
10 F9    BPL *-5
Line 14,826: Line 14,924:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 14,848: Line 14,951:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 14,853: Line 14,961:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 14,880: Line 14,983:
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 0D    LDY #13
C5 C5    CMP $C5
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
C5 00   CMP $00
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
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
C5 00    CMP $00
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,028: Line 15,131:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
Line 15,035: Line 15,138:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 15,108: Line 15,211:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A6 A6    LDX $A6
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4   LDY $A4
A0 16    LDY #22
A0 16    LDY #22
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A5 A5   LDA $A5
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A5 00   LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
Line 15,156: Line 15,259:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 15,402: Line 15,505:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 15    LDX #21
A2 15    LDX #21
CA      DEX
CA      DEX
Line 15,409: Line 15,512:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 15    LDY #21
A0 15    LDY #21
88      DEY
88      DEY
Line 15,468: Line 15,571:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00   LDA $00
A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 15,505: Line 15,608:
48      PHA
48      PHA
A0 0D    LDY #13
A0 0D    LDY #13
A5 00   LDA $00
A5 A5   LDA $A5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 15,576: Line 15,679:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 15,772: Line 15,880:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
00 00    BRK 0
00 00    BRK 0
10 F9    BPL *-5
10 F9    BPL *-5
Line 15,832: Line 15,940:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 17    LDX #23
A2 17    LDX #23
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
Line 15,862: Line 15,970:
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 16,070: Line 16,185:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 16,158: Line 16,273:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
Line 16,165: Line 16,280:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 16    LDY #22
A0 16    LDY #22
88      DEY
88      DEY
Line 16,172: Line 16,287:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 16    LDX #22
A2 16    LDX #22
CA      DEX
CA      DEX
Line 16,178: Line 16,293:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 16,204: Line 16,319:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 16,454: Line 16,569:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
C5 00   CMP $00
C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 16,479: Line 16,594:
48      PHA
48      PHA
A0 0D    LDY #13
A0 0D    LDY #13
A5 00   LDA $00
A5 A5   LDA $A5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 16,542: Line 16,657:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 18    LDY #24
A0 18    LDY #24
88      DEY
88      DEY
Line 16,585: Line 16,700:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13 ;hides 'ORA abs'
A0 0D    LDY #13 ;hides 'ORA abs'
A5 00    LDA $0
A5 00    LDA $0
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0D    LDY #13 ;hides 'ORA abs'
A2 0D    LDX #13 ;hides 'ORA abs'
A5 00    LDA $0
A5 00    LDA $0
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,604: Line 16,719:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 16,614: Line 16,736:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A2 16    LDX #22
A0 16    LDY #22
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A0 16    LDY #22
A2 16    LDX #22
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 3
Line 16,652: Line 16,774:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A0 16    LDY #22
A2 16    LDX #22
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 16    LDX #22
A0 16    LDY #22
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 16,718: Line 16,840:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 18    LDY #24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 16,723: Line 16,850:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 18    LDY #24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,852: Line 16,974:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
Line 16,859: Line 16,981:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 17    LDX #23
A2 17    LDX #23
CA      DEX
CA      DEX
Line 16,865: Line 16,987:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 16,884: Line 17,006:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 17,140: Line 17,262:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 17,177: Line 17,299:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A6 A6    LDX $A6
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4   LDY $A4
A0 19    LDY #25
A0 19    LDY #25
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,285: Line 17,407:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 17,421: Line 17,547:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
04 00   NOP $00
04 04   NOP $04
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
|-
Line 17,427: Line 17,553:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 18    LDY #24
A0 18    LDY #24
88      DEY
88      DEY
Line 17,435: Line 17,561:
|<pre>38      SEC
|<pre>38      SEC
A9 10    LDA #16
A9 10    LDA #16
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
Line 17,536: Line 17,662:
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers A, X, and Z&N
D0 FD    BNE *-1</pre>||Clobbers A, X, and Z&N
|-
|<pre>A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 17,728: Line 17,859:
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
Line 17,735: Line 17,866:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 18,036: Line 18,167:
|<pre>08      PHP
|<pre>08      PHP
A2 10    LDX #16
A2 10    LDX #16
C5 00   CMP $00
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 18,043: Line 18,174:
|<pre>08      PHP
|<pre>08      PHP
A0 10    LDY #16
A0 10    LDY #16
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 18,096: Line 18,227:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 11    LDY #17
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 18,101: Line 18,237:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 11    LDY #17
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
A5 00   LDA $00
A5 A5   LDA $A5
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers A, X, and Z&N
D0 F9    BNE *-5</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
A5 00   LDA $00
A5 A5   LDA $A5
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
A4 00   LDY $00
A4 A4   LDY $A4
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
C5 00   CMP $00
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and C
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
24 00   BIT $00
24 24   BIT $24
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
24 00   BIT $00
24 24   BIT $24
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
Line 18,155: Line 18,286:
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
04 00   NOP $00
04 04   NOP $04
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
04 00   NOP $00
04 04   NOP $04
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
Line 18,176: Line 18,307:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 13    LDY #19
A0 13    LDY #19
EA      NOP
EA      NOP
Line 18,182: Line 18,313:
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 13    LDX #19
A2 13    LDX #19
EA      NOP
EA      NOP
Line 18,192: Line 18,323:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>08      PHP
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 18,217: Line 18,354:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 19    LDX #25
A0 19    LDY #25
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,331: Line 18,468:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 18,411: Line 18,548:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
04 00   NOP $00
04 04   NOP $04
10 F8    BPL *-6
10 F8    BPL *-6
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 18,419: Line 18,556:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
04 00   NOP $00
04 04   NOP $04
10 F8    BPL *-6
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
Line 18,428: Line 18,565:
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 18,436: Line 18,573:
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 18,478: Line 18,615:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 1B    LDX #27
A2 1B    LDX #27
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 1B    LDY #27
A0 1B    LDY #27
88      DEY
88      DEY
Line 18,526: Line 18,663:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
04 00   NOP $00
04 04   NOP $04
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
|-
Line 18,546: Line 18,683:
|<pre>38      SEC
|<pre>38      SEC
A9 11    LDA #17
A9 11    LDA #17
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 18,783: Line 18,927:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 F8    BCC *-6
90 F8    BCC *-6
Line 18,791: Line 18,935:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
28      PLP
28      PLP
08      PHP
08      PHP
Line 18,807: Line 18,951:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1C    LDX #28
|<pre>A2 1C    LDX #28
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #114
|<pre>A9      LDA #114
Line 18,894: Line 19,038:
B0 F9    BCS *-5
B0 F9    BCS *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts14; and writes in stack
|-
|<pre>8C      TXA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; requires @zptemp; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 18,964: Line 19,116:
88  ... DEY      &times; 2
88  ... DEY      &times; 2
30 FA    BMI *-4</pre>||Clobbers A, Y, and Z&N
30 FA    BMI *-4</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 19,232: Line 19,389:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 1C    LDX #28
A2 1C    LDX #28
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 1C    LDY #28
A0 1C    LDY #28
88      DEY
88      DEY
Line 19,264: Line 19,421:
|<pre>08      PHP
|<pre>08      PHP
A0 11    LDY #17
A0 11    LDY #17
24 00   BIT $00
24 24   BIT $24
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 19,271: Line 19,428:
|<pre>08      PHP
|<pre>08      PHP
A2 11    LDX #17
A2 11    LDX #17
C5 00   CMP $00
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 19,406: Line 19,563:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 1B    LDY #27
A2 1B    LDX #27
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
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 19,471: Line 19,628:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 19,534: Line 19,691:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
04 00   NOP $00
04 04   NOP $04
10 F8    BPL *-6
10 F8    BPL *-6
68      PLA
68      PLA
Line 19,545: Line 19,702:
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 19,609: Line 19,766:
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
A9 EB    LDA #$EB ;hides 'SBC #$7A'
Line 19,618: Line 19,775:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A4 A4    LDY $A4
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 1B    LDX #27
A2 1B    LDX #27
CA      DEX
CA      DEX
Line 19,624: Line 19,788:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A5 A5   LDA $A5
A4 00    LDY $00
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>A5 00   LDA $00
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
Line 19,682: Line 19,839:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
04 00   NOP $00
04 04   NOP $04
10 F8    BPL *-6
10 F8    BPL *-6
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 19,690: Line 19,847:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
04 00   NOP $00
04 04   NOP $04
10 F8    BPL *-6
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
Line 19,699: Line 19,856:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 19,714: Line 19,871:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 19,755: Line 19,912:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 20,019: Line 20,181:
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 3
Line 20,065: Line 20,237:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 1D    LDY #29
A0 1D    LDY #29
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 1D    LDX #29
A2 1D    LDX #29
CA      DEX
CA      DEX
Line 20,115: Line 20,287:
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
|-
|<pre>08      PHP
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 20,390: Line 20,569:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 1E    LDX #30
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1E    LDY #30
|<pre>A0 1E    LDY #30
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1E    LDX #30
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #124
|<pre>A9      LDA #124
Line 20,448: Line 20,627:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 1C    LDY #28
A0 1C    LDY #28
88      DEY
88      DEY
Line 20,455: Line 20,634:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 1C    LDX #28
A2 1C    LDX #28
CA      DEX
CA      DEX
Line 20,589: Line 20,768:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 1D    LDX #29
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 20,821: Line 21,005:
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
08      PHP
08      PHP
18      CLC
18      CLC
Line 20,829: Line 21,013:
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
48      PHA
48      PHA
18      CLC
18      CLC
Line 20,840: Line 21,024:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
Line 20,847: Line 21,031:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 20,881: Line 21,065:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
04 00   NOP $00
04 04   NOP $04
10 F8    BPL *-6
10 F8    BPL *-6
68      PLA
68      PLA
Line 20,892: Line 21,076:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 20,922: Line 21,106:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 1E    LDX #30
A2 1E    LDX #30
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 1E    LDY #30
A0 1E    LDY #30
88      DEY
88      DEY
Line 20,957: Line 21,141:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|<pre>08      PHP
A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 21,009: Line 21,200:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 1C    LDX #28
A0 1C    LDY #28
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A0 1C    LDY #28
A2 1C    LDX #28
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,229: Line 21,420:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 1D    LDX #29
A2 1D    LDX #29
CA      DEX
CA      DEX
Line 21,236: Line 21,427:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 1D    LDY #29
A0 1D    LDY #29
88      DEY
88      DEY
Line 21,263: Line 21,454:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00   LDA $00
A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Line 21,529: Line 21,720:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 1E    LDX #30
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,535: Line 21,732:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1E    LDX #30
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,675: Line 21,866:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 1F    LDX #31
A2 1F    LDX #31
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 1F    LDY #31
A0 1F    LDY #31
88      DEY
88      DEY
Line 21,689: Line 21,880:
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
Line 21,712: Line 21,903:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 1D    LDX #29
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 21,737: Line 21,935:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
20 xx xx JSR @rts12
20 xx xx JSR @rts12
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
Line 21,935: Line 22,133:
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
08      PHP
08      PHP
48      PHA
48      PHA
Line 21,948: Line 22,146:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 22,010: Line 22,208:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00   LDA $00
A5 A5   LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
Line 22,017: Line 22,215:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 1E    LDY #30
A2 1E    LDX #30
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 1E    LDX #30
A0 1E    LDY #30
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A4 A4    LDY $A4
A0 1E    LDY #30
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 1E    LDX #30
A2 1E    LDX #30
CA      DEX
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
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
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 22,090: Line 22,288:
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
20 xx xx JSR @rts12
20 xx xx JSR @rts12
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
Line 22,106: Line 22,304:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Line 22,112: Line 22,310:
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
|-
|-
|<pre>C5 00   CMP $00
|<pre>C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 22,316: Line 22,514:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
C5 00   CMP $00
C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 22,391: Line 22,589:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 20    LDX #32
A2 20    LDX #32
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 20    LDY #32
A0 20    LDY #32
88      DEY
88      DEY
Line 22,681: Line 22,879:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
Line 22,688: Line 22,886:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 1F    LDX #31
A2 1F    LDX #31
CA      DEX
CA      DEX
Line 22,695: Line 22,893:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 1F    LDY #31
A0 1F    LDY #31
88      DEY
88      DEY
Line 22,707: Line 22,905:
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
Line 22,732: Line 22,930:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
20 xx xx JSR @rts12
20 xx xx JSR @rts12
D0 F8    BNE *-6
D0 F8    BNE *-6
Line 22,975: Line 23,173:
|<pre>08      PHP
|<pre>08      PHP
EA      NOP
EA      NOP
A5 00   LDA $00
A5 A5   LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
Line 22,989: Line 23,187:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
Line 23,018: Line 23,216:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
20 xx xx JSR @rts12
20 xx xx JSR @rts12
D0 F8    BNE *-6
D0 F8    BNE *-6
Line 23,037: Line 23,235:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00   CMP $00
C5 C5   CMP $C5
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 23,320: Line 23,518:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 20    LDY #32
A0 20    LDY #32
88      DEY
88      DEY
Line 23,327: Line 23,525:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 20    LDX #32
A2 20    LDX #32
CA      DEX
CA      DEX
Line 23,617: Line 23,815:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
Line 23,833: Line 24,031:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 21    LDY #33
A2 21    LDX #33
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 21    LDX #33
A0 21    LDY #33
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 23,917: Line 24,115:
|<pre>08      PHP
|<pre>08      PHP
EA      NOP
EA      NOP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
Line 23,984: Line 24,182:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
Line 24,044: Line 24,242:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
EA      NOP
EA      NOP
Line 24,050: Line 24,248:
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
A5 00   LDA $00
A5 A5   LDA $A5
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
24 00   BIT $00
24 24   BIT $24
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
Line 24,075: Line 24,273:
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
04 00   NOP $00
04 04   NOP $04
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
Line 24,081: Line 24,279:
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
Line 24,301: Line 24,499:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 15    LDY #21 ;hides 'ORA zp,X'
88      DEY ;first loop only
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 15    LDX #21 ;hides 'ORA zp,X'
|<pre>A2 15    LDX #21 ;hides 'ORA zp,X'
Line 24,307: Line 24,510:
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 15   LDY #21 ;hides 'ORA zp,X'
|<pre>A2 D8   LDX #216 ;hides 'CLD'
88      DEY ;first loop only
E8  ... INX      &times; 2
88      DEY
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and D
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A0 D8    LDY #216 ;hides 'CLD'
|<pre>A0 D8    LDY #216 ;hides 'CLD'
C8  ... INY      &times; 2
C8  ... INY      &times; 2
D0 FB    BNE *-3</pre>||Clobbers Y, Z&N, and D
D0 FB    BNE *-3</pre>||Clobbers Y, Z&N, and D
|-
|<pre>A2 D8    LDX #216 ;hides 'CLD'
E8  ... INX      &times; 2
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and D
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,329: Line 24,527:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A0 14    LDY #20 ;hides 'NOP zp,X'
EA      NOP
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 14    LDX #20 ;hides 'NOP zp,X'
|<pre>A2 14    LDX #20 ;hides 'NOP zp,X'
Line 24,335: Line 24,538:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 14    LDY #20 ;hides 'NOP zp,X'
!colspan="2"|7 bytes
EA      NOP
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
|<pre>A6 A6    LDX $A6
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 23    LDY #35
A0 23    LDY #35
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 24,379: Line 24,577:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
Line 24,400: Line 24,598:
|<pre>38      SEC
|<pre>38      SEC
A9 16    LDA #22
A9 16    LDA #22
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
Line 24,687: Line 24,885:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
Line 24,813: Line 25,011:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 EC   LDX #236 ;hides 'CPX abs'
|<pre>A2 23   LDX #35
E6 xx    INC @zptemp
CA       DEX
E8       INX
D0 FB   BNE *-3
D0 FA   BNE *-4</pre>||Clobbers X, Z&N, and C; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 EC    LDY #236 ;hides 'CPX abs'
|<pre>A0 EC    LDY #236 ;hides 'CPX abs'
Line 25,010: Line 25,208:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
20 xx xx JSR @rts15
20 xx xx JSR @rts15
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
Line 25,062: Line 25,260:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
Line 25,069: Line 25,267:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 25,114: Line 25,312:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 24    LDX #36
A2 24    LDX #36
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 24    LDY #36
A0 24    LDY #36
88      DEY
88      DEY
Line 25,161: Line 25,359:
|<pre>08      PHP
|<pre>08      PHP
A0 16    LDY #22
A0 16    LDY #22
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 25,168: Line 25,366:
|<pre>08      PHP
|<pre>08      PHP
A2 16    LDX #22
A2 16    LDX #22
24 00   BIT $00
24 24   BIT $24
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 25,190: Line 25,388:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 25,197: Line 25,395:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
Line 25,311: Line 25,509:
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
Line 25,449: Line 25,647:
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
A9 EB    LDA #$EB ;hides 'SBC #$DA'
Line 25,457: Line 25,655:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
Line 25,507: Line 25,705:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
D0 F8    BNE *-6
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 25,515: Line 25,713:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
D0 F8    BNE *-6
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
Line 25,524: Line 25,722:
38      SEC
38      SEC
A9 16    LDA #22
A9 16    LDA #22
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 25,532: Line 25,730:
38      SEC
38      SEC
A9 16    LDA #22
A9 16    LDA #22
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 25,573: Line 25,771:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 25,621: Line 25,824:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 F8    BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
B0 F8    BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
Line 25,636: Line 25,839:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 23    LDX #35
A0 23    LDY #35
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 23    LDY #35
A2 23    LDX #35
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,780: Line 25,983:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
Line 25,787: Line 25,990:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 25,843: Line 26,046:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 25    LDX #37
A2 25    LDX #37
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 25    LDY #37
A0 25    LDY #37
88      DEY
88      DEY
Line 25,872: Line 26,075:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 EC   LDX #236 ;hides 'CPX abs'
A2 23   LDX #35
E6 xx    INC @zptemp
CA       DEX
E8       INX
D0 FB   BNE *-3
D0 FA   BNE *-4
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
Line 25,908: Line 26,111:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
Line 26,087: Line 26,290:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00   NOP $00
04 04   NOP $04
20 xx xx JSR @rts15
20 xx xx JSR @rts15
D0 F8    BNE *-6
D0 F8    BNE *-6
Line 26,125: Line 26,328:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 26,194: Line 26,397:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 24    LDX #36
A2 24    LDX #36
CA      DEX
CA      DEX
Line 26,201: Line 26,404:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 24    LDY #36
A0 24    LDY #36
88      DEY
88      DEY
Line 26,219: Line 26,422:
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
Line 26,242: Line 26,445:
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP
28      PLP
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C; and writes in stack
Line 26,295: Line 26,498:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA
68      PLA
Line 26,402: Line 26,605:
|<pre>08      PHP
|<pre>08      PHP
A2 17    LDX #23
A2 17    LDX #23
C5 00   CMP $00
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 26,409: Line 26,612:
|<pre>08      PHP
|<pre>08      PHP
A0 17    LDY #23
A0 17    LDY #23
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 26,431: Line 26,634:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 FA    BCS *-4
B0 FA    BCS *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 26,438: Line 26,641:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 FA    BCS *-4
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
Line 26,584: Line 26,787:
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
08      PHP
08      PHP
38      SEC
38      SEC
Line 26,592: Line 26,795:
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
48      PHA
48      PHA
38      SEC
38      SEC
Line 26,603: Line 26,806:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
Line 26,610: Line 26,813:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 26,643: Line 26,846:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
D0 F8    BNE *-6
D0 F8    BNE *-6
68      PLA
68      PLA
Line 26,654: Line 26,857:
38      SEC
38      SEC
A9 16    LDA #22
A9 16    LDA #22
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 26,684: Line 26,887:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 26    LDX #38
A2 26    LDX #38
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 26    LDY #38
A0 26    LDY #38
88      DEY
88      DEY
Line 26,721: Line 26,924:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 26,765: Line 26,975:
08      PHP
08      PHP
A2 17    LDX #23
A2 17    LDX #23
C5 00   CMP $00
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 26,773: Line 26,983:
08      PHP
08      PHP
A0 17    LDY #23
A0 17    LDY #23
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 26,798: Line 27,008:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 F8    BCS *-6
B0 F8    BCS *-6
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 26,806: Line 27,016:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 F8    BCS *-6
B0 F8    BCS *-6
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
Line 26,956: Line 27,166:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 27,020: Line 27,230:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 25    LDX #37
A2 25    LDX #37
CA      DEX
CA      DEX
Line 27,027: Line 27,237:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 25    LDY #37
A0 25    LDY #37
88      DEY
88      DEY
Line 27,033: Line 27,243:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
Line 27,077: Line 27,287:
48      PHA
48      PHA
A0 17    LDY #23
A0 17    LDY #23
A5 00   LDA $00
A5 A5   LDA $A5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 27,118: Line 27,328:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 FA    BCS *-4
B0 FA    BCS *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
Line 27,126: Line 27,336:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 FA    BCS *-4
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
Line 27,285: Line 27,495:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,290: Line 27,505:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 27,368: Line 27,578:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
Line 27,391: Line 27,601:
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 27,404: Line 27,614:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
36 00   ROL $00,X
36 36   ROL $36,X
76 00   ROR $00,X
76 36   ROR $36,X
28      PLP
28      PLP
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 27,450: Line 27,660:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA
68      PLA
Line 27,484: Line 27,694:
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
A5 00   LDA $00
A5 A5   LDA $A5
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
A4 00   LDY $00
A4 A4   LDY $A4
D0 FB    BNE *-3</pre>||Clobbers X, Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
C5 00   CMP $00
C5 C5   CMP $C5
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and C
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and C
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
24 00   BIT $00
24 24   BIT $24
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and V
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and V
|-
|-
Line 27,509: Line 27,719:
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
04 00   NOP $00
04 04   NOP $04
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 27    LDX #39
A2 27    LDX #39
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 27    LDY #39
A0 27    LDY #39
88      DEY
88      DEY
Line 27,634: Line 27,844:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 FA    BCS *-4
B0 FA    BCS *-4
68      PLA
68      PLA
Line 27,782: Line 27,992:
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 00   NOP $00
|<pre>04 04   NOP $04
08      PHP
08      PHP
48      PHA
48      PHA
Line 27,795: Line 28,005:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 27,810: Line 28,020:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 28    LDY #40
|<pre>A0 28    LDY #40
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #174
|<pre>A9      LDA #174
Line 27,842: Line 28,052:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
Line 27,865: Line 28,075:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 26    LDX #38
A2 26    LDX #38
CA      DEX
CA      DEX
Line 27,872: Line 28,082:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 26    LDY #38
A0 26    LDY #38
88      DEY
88      DEY
Line 27,962: Line 28,172:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 F8    BCS *-6
B0 F8    BCS *-6
68      PLA
68      PLA
Line 27,997: Line 28,207:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 28,020: Line 28,235:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 28,025: Line 28,245:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 28,049: Line 28,264:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 26    LDY #38
A2 26    LDX #38
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 26    LDX #38
A0 26    LDY #38
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,108: Line 28,323:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,113: Line 28,333:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 28,177: Line 28,392:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
Line 28,184: Line 28,399:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 28,210: Line 28,425:
48      PHA
48      PHA
A0 17    LDY #23
A0 17    LDY #23
A5 00   LDA $00
A5 A5   LDA $A5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 28,242: Line 28,457:
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00   NOP $00
04 04   NOP $04
B0 FA    BCS *-4
B0 FA    BCS *-4
68      PLA
68      PLA
Line 28,480: Line 28,695:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 28,529: Line 28,744:
|<pre>08      PHP
|<pre>08      PHP
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
24 00   BIT $00
24 24   BIT $24
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
Line 28,556: Line 28,771:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A4 A4   LDY $A4
A0 27    LDY #39
A0 27    LDY #39
88      DEY
88      DEY
Line 28,611: Line 28,826:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 E9    LDX #233 ;hides 'SBC #imm'
24 EA    BIT $EA ;hides 'NOP'
E8      INX
D0 FA    BNE *-4</pre>||Clobbers A, X, Z&N, C, and V
|-
|-
|<pre>A0 E9    LDY #233 ;hides 'SBC #imm'
|<pre>A0 E9    LDY #233 ;hides 'SBC #imm'
Line 28,617: Line 28,837:
D0 FA    BNE *-4</pre>||Clobbers A, Y, Z&N, C, and V
D0 FA    BNE *-4</pre>||Clobbers A, Y, Z&N, C, and V
|-
|-
|<pre>A2 E9   LDX #233 ;hides 'SBC #imm'
|<pre>A2 28   LDX #40
24 EA   BIT $EA ;hides 'NOP'
CA      DEX
E8       INX
D0 FB    BNE *-3
D0 FA   BNE *-4</pre>||Clobbers A, X, Z&N, C, and V
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48  ... PHA      &times; 2
A2 28   LDX #40
CA       DEX
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 28,626: Line 28,851:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,644: Line 28,864:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 1D    LDX #29
A2 1D    LDX #29
EA      NOP
EA      NOP
Line 28,650: Line 28,870:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 1D    LDY #29
A0 1D    LDY #29
EA      NOP
EA      NOP
Line 28,797: Line 29,017:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
Line 28,804: Line 29,024:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
18      CLC
18      CLC
Line 28,873: Line 29,093:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 29    LDX #41
A2 29    LDX #41
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 29    LDY #41
A0 29    LDY #41
88      DEY
88      DEY
Line 28,911: Line 29,131:
28      PLP
28      PLP
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and writes in stack
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and writes in stack
|-
|<pre>08      PHP
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 29,101: Line 29,328:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC
Line 29,166: Line 29,393:
|<pre>38      SEC
|<pre>38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
Line 29,248: Line 29,475:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 29,429: Line 29,661:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,434: Line 29,671:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 2A    LDX #42
A2 2A    LDX #42
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 2A    LDY #42
A0 2A    LDY #42
88      DEY
88      DEY
Line 29,478: Line 29,710:
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
08      PHP
A2 28    LDX #40
A0 28    LDY #40
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 29,491: Line 29,723:
D0 FB    BNE *-3
D0 FB    BNE *-3
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      &times; 2
08      PHP
A0 28    LDY #40
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 29,517: Line 29,756:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A4 A4   LDY $A4
A2 1D    LDX #29
A0 1D    LDY #29
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00   LDY $00
A6 A6   LDX $A6
A0 1D    LDY #29
A2 1D    LDX #29
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,647: Line 29,886:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 00   BIT $00
24 24   BIT $24
48      PHA
48      PHA
18      CLC
18      CLC
Line 29,690: Line 29,929:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 29    LDX #41
A0 29    LDY #41
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 29    LDY #41
A2 29    LDX #41
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,712: Line 29,951:
|<pre>08      PHP
|<pre>08      PHP
A0 1A    LDY #26
A0 1A    LDY #26
C5 00   CMP $00
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 29,719: Line 29,958:
|<pre>08      PHP
|<pre>08      PHP
A2 1A    LDX #26
A2 1A    LDX #26
C5 00   CMP $00
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
Line 29,812: Line 30,051:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 18    LDX #24
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 18    LDY #24
|<pre>A0 18    LDY #24
Line 29,817: Line 30,061:
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 18    LDX #24
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 12    LDY #18
|<pre>A0 12    LDY #18
Line 29,865: Line 30,104:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 29    LDY #41
A2 29    LDX #41
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 29    LDX #41
A0 29    LDY #41
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,990: Line 30,229:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 29,998: Line 30,237:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
Line 30,033: Line 30,272:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,038: Line 30,282:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,050: Line 30,289:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 00   LDX $00
|<pre>A6 A6   LDX $A6
A2 2B    LDX #43
A2 2B    LDX #43
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00   LDY $00
|<pre>A4 A4   LDY $A4
A0 2B    LDY #43
A0 2B    LDY #43
88      DEY
88      DEY
Line 30,094: Line 30,333:
|<pre>38      SEC
|<pre>38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
24 00   BIT $00
24 24   BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 30,321: Line 30,567:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>A5 A5   LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
EA      NOP
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>48      PHA
08      PHP
A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,334: Line 30,587:
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"|9 bytes
08      PHP
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 2A    LDY #42
A0 2A    LDY #42
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00   LDX $00
A6 A6   LDX $A6
A2 2A    LDX #42
A2 2A    LDX #42
CA      DEX
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
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 2A    LDY #42
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,420: Line 30,666:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 30,597: Line 30,848:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00   LDA $00
A5 A5   LDA $A5
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
Line 30,604: Line 30,855:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 00   BIT $00
|<pre>24 24   BIT $24
48      PHA
48      PHA
38      SEC
38      SEC

Revision as of 16:38, 15 March 2016

Delay code

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

All code samples are written for CA65.

Assumptions:

  • No page wrap occurs during any branch instruction. If a page wrap occurs, it adds +1 cycle for each loop, completely thwarting the accurate delay.
  • No interrupt / NMI occurs during the delay code. This is important for accurate delay, but it is also required for correctness in those code samples where a PLA-PHA sequence is used.

It is possible to verify on compile time that no page wrap occurs, by replacing all branches with these macros:

.macro branch_check opc, dest
    opc dest
    .assert >* = >dest, warning, "branch_check: failed, crosses page"
.endmacro
.macro Jcc dest
        branch_check bcc, dest
.endmacro
.macro Jcs dest
        branch_check bcs, dest
.endmacro
.macro Jeq dest
        branch_check beq, dest
.endmacro
.macro Jne dest
        branch_check bne, dest
.endmacro
.macro Jmi dest
        branch_check bmi, dest
.endmacro
.macro Jpl dest
        branch_check bpl, dest
.endmacro
.macro Jvc dest
        branch_check bvc, dest
.endmacro
.macro Jvs dest
        branch_check bvs, dest
.endmacro

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

Explanations on the requirements:

  • @zptemp means you have a zeropage address that you can write random data into.
  • @rti means you have a dummy interrupt handler installed that does nothing but RTI.
  • @rts12 means you know a memory address that contains byte $60 (RTS).
  • @rts14 means you know a memory address that contains a harmless 2-cycle instruction that fits your constraints (such as CLC, LDA #0, or NOP), followed by RTS.
  • @rts15 means you know a memory address that contains a JMP that jumps to another location that contains RTS. Alternatively, it means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as LDA $00), followed by RTS.
  • delay_a_25_clocks, delay_256a_16_clocks, delay_256a_x_33_clocks, delay_256a_x_31_clocks, and delay_256x_a_30_clocks are defined at Delay code.

{{#css:

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

}}


2 cycles

1 bytes
EA       NOP
No requirements
  • All instructions cost at least 2 cycles. There is no way to do 1 cycle of delay (though −1 cycles may sometimes appear in branch cost calculations).


3 cycles

1 bytes
48       PHA
Clobbers S; and writes in stack
2 bytes
A5 A5    LDA $A5
Clobbers A, and Z&N
A4 A4    LDY $A4
Clobbers Y, and Z&N
A6 A6    LDX $A6
Clobbers X, and Z&N
C5 C5    CMP $C5
Clobbers Z&N, and C
24 24    BIT $24
Clobbers Z&N, and V
85 xx    STA @zptemp
Requires @zptemp
04 04    NOP $04
Requires support for unofficial opcodes
3 bytes
4C xx xx JMP *+3
Not relocatable code
  • Not relocatable means that the target address is hardcoded into the code. In ROM hacking, it sometimes makes sense to move code blobs around, and a hardcoded address makes it difficult to relocate the code. This restriction does not apply to branches, which use relative addressing. It is also assumed to not apply to JSR instructions, as chances are the JSR target is outside the code being relocated.


4 cycles

1 bytes
68       PLA
Clobbers A, S, and Z&N
2 bytes
EA   ... NOP      × 2
No requirements
  • zp-indexed modes such as LDA $00,X also do 4 cycles, but having side effects, these two-byte instructions are inferior to a simple 2 × NOP.
  • There is also an unofficial opcode NOP $00,X (34 00), but there is no reason to use this instruction when the official equivalent has the same performance.


5 cycles

2 bytes
E6 xx    INC @zptemp
Clobbers Z&N; and requires @zptemp
EA       NOP
48       PHA
Clobbers S; and writes in stack
3 bytes
EA       NOP
A5 A5    LDA $A5
Clobbers A, and Z&N
EA       NOP
A6 A6    LDX $A6
Clobbers X, and Z&N
EA       NOP
A4 A4    LDY $A4
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 04    NOP $04
Requires support for unofficial opcodes
4 bytes
EA       NOP
4C xx xx JMP *+3
Not relocatable code
  • abs-indexed modes such as LDA $1234,X cause 4 or 5 cycles of delay, depending whether a page wrap occurred. Because you need extra setup code to make sure that a wrap does occur, you do not see this mode in these samples, outside situations where circumstances permit.


6 cycles

2 bytes
48   ... PHA      × 2
Clobbers S; and writes in stack
EA       NOP
68       PLA
Clobbers A, S, and Z&N
3 bytes
EA   ... NOP      × 3
No requirements
  • zp-indexed RMW instructions such as INC @zptemp,X do 6 cycles, but as the memory address modified depends on the value of X, and in this document it is a bit difficult to formalize the rules under which you can write to such addresses, thus the instruction is not used.
  • ix and iy instructions such as LDA ($00,X) or LDA ($00),Y do 6 cycles, but there may be side effects for reading from random memory addresses (such as $2002), and therefore we do not do that. With ind-y there is also the trouble of predicting whether a wrap occurs or not.
  • Absolute RMW instructions like INC $2000 do 6 cycles, but weighing 3 bytes with side-effects it would be inferior to 3 × NOP.


7 cycles

2 bytes
08       PHP
28       PLP
Writes in stack
68       PLA
48       PHA
Clobbers A, and Z&N
3 bytes
EA       NOP
E6 xx    INC @zptemp
Clobbers Z&N; and requires @zptemp
4 bytes
A6 A6    LDX $A6
EA   ... NOP      × 2
Clobbers X, and Z&N
A4 A4    LDY $A4
EA   ... NOP      × 2
Clobbers Y, and Z&N
18   ... CLC      × 2
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 2
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 2
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 2
Requires support for unofficial opcodes
5 bytes
4C xx xx JMP *+3
EA   ... NOP      × 2
Not relocatable code
  • PHP-PLP is very efficient for 7 cycles of delay, but it does modify stack contents. S register remains unchanged though.
  • PLA-PHA does not overwrite any bytes in stack. It just writes back the same byte. But it does clobber A and Z+N.
  • abs-indexed RMW instructions such as INC abs,X do 7 cycles, but it is difficult to formalize the rules under which one could write to such random addresses.


8 cycles

2 bytes
68   ... PLA      × 2
Clobbers A, S, and Z&N
3 bytes
BA       TSX
68       PLA
9A       TXS
Clobbers A, X, and Z&N
EA       NOP
48   ... PHA      × 2
Clobbers S; and writes in stack
4 bytes
EA   ... NOP      × 4
No requirements
  • ix and iy RMW instructions such as SLO ($00,X) or SLO ($00),Y would do 8 cycles for 2 bytes of code, but it is dangerous to read random memory addresses, let alone write to them, so we do not do that. These instructions are also unofficial.


9 cycles

3 bytes
EA       NOP
08       PHP
28       PLP
Writes in stack
EA       NOP
68       PLA
48       PHA
Clobbers A, and Z&N
4 bytes
A2 AE    LDX #$AE  ;hides 'LDX $FDD0'
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 AC    LDY #$AC  ;hides 'LDY $FDD0'
D0 FD    BNE *-1
Clobbers Y, and Z&N
EA   ... NOP      × 2
E6 xx    INC @zptemp
Clobbers Z&N; and requires @zptemp
5 bytes
18   ... CLC      × 3
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 3
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 3
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 3
Requires support for unofficial opcodes
6 bytes
4C xx xx JMP *+3
EA   ... NOP      × 3
Not relocatable code
  • Jumping into the middle of another instruction is a very efficient way of reducing code size. Note that all code samples using branches on this page require that no page wrap occurs.


10 cycles

3 bytes
48       PHA
08       PHP
28       PLP
Clobbers S; and writes in stack
EA       NOP
68   ... PLA      × 2
Clobbers A, S, and Z&N
4 bytes
08       PHP
24 24    BIT $24
28       PLP
Writes in stack
26 26    ROL $26
66 26    ROR $26
Clobbers Z&N
5 bytes
EA   ... NOP      × 5
No requirements
  • Note that the ROL-ROR sequence preserves the original value of the memory address. Carry is also preserved.


11 cycles

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


12 cycles

3 bytes
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
68   ... PLA      × 3
Clobbers A, S, and Z&N
4 bytes
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N
08       PHP
E6 xx    INC @zptemp
28       PLP
Requires @zptemp; and writes in stack
48   ... PHA      × 4
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      × 6
No requirements
  • JSR-RTS causes 12 cycles of delay. But it does write a function return address in the stack, which may be unwanted in some applications. S is not modified.
  • Again, ROL-ROR does not have side effects (as long as an interrupt does not happen in the middle), except for Z+N.


13 cycles

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


14 cycles

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


15 cycles

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


16 cycles

3 bytes
48       PHA
00 00    BRK 0
Clobbers S; requires dummy interrupt handler; and writes in stack
4 bytes
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
A5 A5    LDA $A5
00 00    BRK 0
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
A6 A6    LDX $A6
00 00    BRK 0
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
A4 A4    LDY $A4
00 00    BRK 0
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
C5 C5    CMP $C5
00 00    BRK 0
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
24 24    BIT $24
00 00    BRK 0
Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
85 xx    STA @zptemp
00 00    BRK 0
Requires @zptemp, and dummy interrupt handler; and writes in stack
68   ... PLA      × 4
Clobbers A, S, and Z&N
04 04    NOP $04
00 00    BRK 0
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
5 bytes
EA       NOP
08       PHP       \ × 2
28       PLP       /
Writes in stack
EA       NOP
68       PLA       \ × 2
48       PHA       /
Clobbers A, and Z&N
A2 03    LDX #3
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 03    LDY #3
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
6 bytes
EA   ... NOP      × 2
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N
8 bytes
EA   ... NOP      × 8
No requirements


17 cycles

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


18 cycles

4 bytes
E6 xx    INC @zptemp
00 00    BRK 0
Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
EA       NOP
48       PHA
00 00    BRK 0
Clobbers S; requires dummy interrupt handler; and writes in stack
5 bytes
A5 A5    LDA $A5
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts15; and writes in stack
A4 A4    LDY $A4
20 xx xx JSR @rts15
Clobbers Y, and Z&N; requires @rts15; and writes in stack
A6 A6    LDX $A6
20 xx xx JSR @rts15
Clobbers X, and Z&N; requires @rts15; and writes in stack
C5 C5    CMP $C5
20 xx xx JSR @rts15
Clobbers Z&N, and C; requires @rts15; and writes in stack
24 24    BIT $24
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts15; and writes in stack
EA   ... NOP      × 2
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
EA       NOP
A5 A5    LDA $A5
00 00    BRK 0
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
EA       NOP
A6 A6    LDX $A6
00 00    BRK 0
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
EA       NOP
A4 A4    LDY $A4
00 00    BRK 0
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
18       CLC
90 00    BCC *+2
00 00    BRK 0
Clobbers C; requires dummy interrupt handler; and writes in stack
B8       CLV
50 00    BVC *+2
00 00    BRK 0
Clobbers V; requires dummy interrupt handler; and writes in stack
EA       NOP
85 xx    STA @zptemp
00 00    BRK 0
Requires @zptemp, and dummy interrupt handler; and writes in stack
48   ... PHA      × 2
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68   ... PLA      × 4
Clobbers A, S, and Z&N
04 04    NOP $04
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
EA       NOP
04 04    NOP $04
00 00    BRK 0
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
A9       LDA #0
20 xx xx JSR delay_256a_16_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks, and delay_256a_16_clocks
6 bytes
EA   ... NOP      × 2
08       PHP       \ × 2
28       PLP       /
Writes in stack
EA   ... NOP      × 2
68       PLA       \ × 2
48       PHA       /
Clobbers A, and Z&N
EA       NOP
A0 03    LDY #3
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 03    LDX #3
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
7 bytes
EA   ... NOP      × 3
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N
9 bytes
EA   ... NOP      × 9
No requirements


19 cycles

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


20 cycles

4 bytes
08       PHP
28       PLP
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
5 bytes
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
E6 xx    INC @zptemp
20 xx xx JSR @rts15
Clobbers Z&N; requires @zptemp, and @rts15; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68   ... PLA      × 5
Clobbers A, S, and Z&N
48   ... PHA      × 2
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
6 bytes
EA       NOP
A5 A5    LDA $A5
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts15; and writes in stack
EA       NOP
A6 A6    LDX $A6
20 xx xx JSR @rts15
Clobbers X, and Z&N; requires @rts15; and writes in stack
EA       NOP
A4 A4    LDY $A4
20 xx xx JSR @rts15
Clobbers Y, and Z&N; requires @rts15; and writes in stack
BA       TSX
68   ... PLA      × 4
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      × 3
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      × 2
08       PHP       \ × 2
28       PLP       /
Clobbers S; and writes in stack
EA       NOP
04 04    NOP $04
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
7 bytes
EA   ... NOP      × 3
08       PHP       \ × 2
28       PLP       /
Writes in stack
EA   ... NOP      × 3
68       PLA       \ × 2
48       PHA       /
Clobbers A, and Z&N
EA   ... NOP      × 2
A2 03    LDX #3
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 03    LDY #3
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
8 bytes
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N
10 bytes
EA   ... NOP      × 10
No requirements


21 cycles

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


22 cycles

5 bytes
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
08       PHP
28       PLP
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
68   ... PLA      × 2
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
6 bytes
A0 03    LDY #3
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 03    LDX #3
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68   ... PLA      × 5
Clobbers A, S, and Z&N
EA       NOP
48   ... PHA      × 2
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
7 bytes
08       PHP
24 24    BIT $24
28       PLP
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
08       PHP
BA       TSX
08       PHP
28   ... PLP      × 2
9A       TXS
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 4
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP
36 36    ROL $36,X
76 36    ROR $36,X
28       PLP
Clobbers S; and writes in stack
8 bytes
08       PHP
24 24    BIT $24
36 36    ROL $36,X
76 36    ROR $36,X
28       PLP
Writes in stack
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N
11 bytes
EA   ... NOP      × 11
No requirements


23 cycles

5 bytes
68   ... PLA      × 2
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
A9 2A    LDA #$2A ;hides 'ROL A'
48       PHA
10 FC    BPL *-2
Clobbers A, S, Z&N, and C; and writes in stack
48       PHA
08       PHP
28       PLP
00 00    BRK 0
Clobbers S; requires dummy interrupt handler; and writes in stack
6 bytes
EA       NOP
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
08       PHP
24 24    BIT $24
28       PLP
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
EA       NOP
48   ... PHA      × 2
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68       PLA
48       PHA
68   ... PLA      × 4
Clobbers A, S, and Z&N
7 bytes
EA       NOP
08       PHP       \ × 3
28       PLP       /
Writes in stack
EA       NOP
68       PLA       \ × 3
48       PHA       /
Clobbers A, and Z&N
9 bytes
E6 xx    INC @zptemp
EA   ... NOP      × 3
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires @zptemp
10 bytes
C5 C5    CMP $C5
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N, and C
24 24    BIT $24
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N, and V
04 04    NOP $04
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires support for unofficial opcodes
11 bytes
4C xx xx JMP *+3
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and not relocatable code
12 bytes
18   ... CLC      × 10
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 10
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 10
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 10
Requires support for unofficial opcodes
13 bytes
4C xx xx JMP *+3
EA   ... NOP      × 10
Not relocatable code


24 cycles

4 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
5 bytes
48       PHA
68   ... PLA      × 2
00 00    BRK 0
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
6 bytes
20 xx xx JSR @rts12× 2
Requires @rts12; and writes in stack
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA   ... NOP      × 2
08       PHP
28       PLP
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
68   ... PLA      × 6
Clobbers A, S, and Z&N
48       PHA
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
24 24    BIT $24
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP       \ × 3
28       PLP       /
Clobbers S; and writes in stack
8 bytes
08       PHP
28       PLP
08       PHP
26 26    ROL $26
66 26    ROR $26
28       PLP
Writes in stack
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N
12 bytes
EA   ... NOP      × 12
No requirements


25 cycles

5 bytes
20 xx xx JSR @rts12
00 00    BRK 0
Requires dummy interrupt handler, and @rts12; and writes in stack
68   ... PLA      × 3
00 00    BRK 0
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
6 bytes
36 36    ROL $36,X
76 36    ROR $36,X
00 00    BRK 0
Clobbers Z&N; requires dummy interrupt handler; and writes in stack
08       PHP
E6 xx    INC @zptemp
28       PLP
00 00    BRK 0
Requires @zptemp, and dummy interrupt handler; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
A0 03    LDY #3
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 03    LDX #3
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
Clobbers A, S, Z&N, and C
48       PHA
68   ... PLA      × 2
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
48   ... PHA      × 4
00 00    BRK 0
Clobbers S; requires dummy interrupt handler; and writes in stack
7 bytes
08       PHP
24 24    BIT $24
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
08       PHP
28       PLP
10 FA    BPL *-4
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
EA   ... NOP      × 2
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
08       PHP
24 24    BIT $24
28       PLP
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
08       PHP
28       PLP
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 4
Clobbers A, S, and Z&N
08       PHP
A9       LDA #0
20 xx xx JSR delay_256a_16_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
48       PHA
A9       LDA #0
20 xx xx JSR delay_256a_16_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
8 bytes
EA   ... NOP      × 2
08       PHP       \ × 3
28       PLP       /
Writes in stack
EA   ... NOP      × 2
68       PLA       \ × 3
48       PHA       /
Clobbers A, and Z&N
10 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N, and C
24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires @zptemp
04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires support for unofficial opcodes
11 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and not relocatable code
13 bytes
18   ... CLC      × 11
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 11
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 11
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 11
Requires support for unofficial opcodes
14 bytes
4C xx xx JMP *+3
EA   ... NOP      × 11
Not relocatable code


26 cycles

4 bytes
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
5 bytes
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 0A    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      × 2
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
68   ... PLA      × 3
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× 2
Requires @rts12; and writes in stack
EA   ... NOP      × 2
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
36 36    ROL $36,X
76 36    ROR $36,X
20 xx xx JSR @rts14
Clobbers Z&N; requires @rts14; and writes in stack
08       PHP
E6 xx    INC @zptemp
28       PLP
20 xx xx JSR @rts14
Requires @zptemp, and @rts14; and writes in stack
EA       NOP
68   ... PLA      × 6
Clobbers A, S, and Z&N
48   ... PHA      × 4
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
8 bytes
08       PHP
28       PLP
08       PHP
36 36    ROL $36,X
76 36    ROR $36,X
28       PLP
Writes in stack
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 2
48       PHA       /
Clobbers A, and Z&N
9 bytes
EA       NOP
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N
13 bytes
EA   ... NOP      × 13
No requirements


27 cycles

5 bytes
00 00    BRK 0
20 xx xx JSR @rts14
Requires dummy interrupt handler, and @rts14; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C; and writes in stack
A9       LDA #0
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts15
Requires @rts12, and @rts15; and writes in stack
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
00 00    BRK 0
08       PHP       \ × 2
28       PLP       /
Requires dummy interrupt handler; and writes in stack
68   ... PLA      × 3
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
7 bytes
36 36    ROL $36,X
76 36    ROR $36,X
20 xx xx JSR @rts15
Clobbers Z&N; requires @rts15; and writes in stack
08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
10 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
10 FC    BPL *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
E6 xx    INC @zptemp
28       PLP
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48       PHA
20 xx xx JSR @rts12× 2
Clobbers S; requires @rts12; and writes in stack
48   ... PHA      × 4
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68       PLA
48       PHA
68   ... PLA      × 5
Clobbers A, S, and Z&N
48   ... PHA      × 2
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
A0 82    LDY #130 ;hides 'NOP #imm'
04 EA    NOP $EA ;hides 'NOP'
88       DEY
30 FA    BMI *-4
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 82    LDX #130 ;hides 'NOP #imm'
04 EA    NOP $EA ;hides 'NOP'
CA       DEX
30 FA    BMI *-4
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
08       PHP
24 24    BIT $24
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
20 xx xx JSR @rts12
08       PHP
BA       TSX
28       PLP
9A       TXS
28       PLP
Clobbers X; requires @rts12; and writes in stack
EA   ... NOP      × 3
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
24 24    BIT $24
20 xx xx JSR @rts12× 2
Clobbers Z&N, and V; requires @rts12; and writes in stack
EA   ... NOP      × 3
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12× 2
Requires @zptemp, and @rts12; and writes in stack
48   ... PHA      × 2
08       PHP       \ × 3
28       PLP       /
Clobbers S; and writes in stack
04 04    NOP $04
20 xx xx JSR @rts12× 2
Requires @rts12, and support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
48       PHA
A9 6A    LDA #$6A ;hides 'ROR A'
38       SEC
10 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
EA   ... NOP      × 3
68       PLA       \ × 3
48       PHA       /
Clobbers A, and Z&N
10 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires @zptemp
04 04    NOP $04
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
11 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
14 bytes
18   ... CLC      × 12
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 12
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 12
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 12
Requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
EA   ... NOP      × 12
Not relocatable code


28 cycles

5 bytes
EA       NOP
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
A9       LDA #1
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
20 xx xx JSR @rts14× 2
Requires @rts14; and writes in stack
7 bytes
08       PHP
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
48   ... PHA      × 2
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68   ... PLA      × 7
Clobbers A, S, and Z&N
8 bytes
08       PHP       \ × 4
28       PLP       /
Writes in stack
68       PLA       \ × 4
48       PHA       /
Clobbers A, and Z&N
10 bytes
EA   ... NOP      × 2
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N
14 bytes
EA   ... NOP      × 14
No requirements


29 cycles

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


30 cycles

5 bytes
68       PLA
00 00... BRK 0    × 2
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
A9       LDA #3
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
20 xx xx JSR @rts15× 2
Requires @rts15; and writes in stack
EA   ... NOP      × 2
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
68       PLA
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
7 bytes
EA   ... NOP      × 2
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
EA       NOP
20 xx xx JSR @rts14× 2
Requires @rts14; and writes in stack
8 bytes
08       PHP
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
48   ... PHA      × 2
20 xx xx JSR @rts12× 2
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68   ... PLA      × 7
Clobbers A, S, and Z&N
9 bytes
08       PHP
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA       \ × 4
48       PHA       /
Clobbers A, and Z&N
11 bytes
EA   ... NOP      × 3
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N
15 bytes
EA   ... NOP      × 15
No requirements


31 cycles

5 bytes
A0 06    LDY #6
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
6 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
E6 xx    INC @zptemp
00 00... BRK 0    × 2
Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
00 00... BRK 0    × 2
Clobbers S; requires dummy interrupt handler; and writes in stack
7 bytes
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
18       CLC
90 00    BCC *+2
00 00... BRK 0    × 2
Clobbers C; requires dummy interrupt handler; and writes in stack
B8       CLV
50 00    BVC *+2
00 00... BRK 0    × 2
Clobbers V; requires dummy interrupt handler; and writes in stack
EA   ... NOP      × 2
00 00    BRK 0
20 xx xx JSR @rts14
Requires dummy interrupt handler, and @rts14; and writes in stack
EA       NOP
85 xx    STA @zptemp
00 00... BRK 0    × 2
Requires @zptemp, and dummy interrupt handler; and writes in stack
48       PHA
20 xx xx JSR @rts14× 2
Clobbers S; requires @rts14; and writes in stack
EA       NOP
04 04    NOP $04
00 00... BRK 0    × 2
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12× 2
Requires @rts12; and writes in stack
EA       NOP
08       PHP       \ × 2
28       PLP       /
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
24 24    BIT $24
20 xx xx JSR @rts14× 2
Clobbers Z&N, and V; requires @rts14; and writes in stack
EA   ... NOP      × 2
00 00    BRK 0
08       PHP       \ × 2
28       PLP       /
Requires dummy interrupt handler; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts14× 2
Requires @zptemp, and @rts14; and writes in stack
68       PLA
48       PHA
68   ... PLA      × 6
Clobbers A, S, and Z&N
48       PHA
08       PHP
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
04 04    NOP $04
20 xx xx JSR @rts14× 2
Requires @rts14, and support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
20 xx xx JSR @rts14
08       PHP
26 26    ROL $26
66 26    ROR $26
28       PLP
Requires @rts14; and writes in stack
48       PHA
08       PHP       \ × 4
28       PLP       /
Clobbers S; and writes in stack
10 bytes
08       PHP
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
28       PLP
Writes in stack
68       PLA
48       PHA
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers A, and Z&N
11 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
12 bytes
EA   ... NOP      × 2
C5 C5    CMP $C5
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N, and C
EA   ... NOP      × 2
24 24    BIT $24
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N, and V
EA   ... NOP      × 2
04 04    NOP $04
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
13 bytes
EA   ... NOP      × 2
4C xx xx JMP *+3
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
16 bytes
18   ... CLC      × 14
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 14
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 14
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 14
Requires support for unofficial opcodes
17 bytes
4C xx xx JMP *+3
EA   ... NOP      × 14
Not relocatable code


32 cycles

5 bytes
A9       LDA #5
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 05    LDY #5 ;hides 'ORA zp'
88       DEY ;first loop only
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, and Z&N
A2 05    LDX #5 ;hides 'ORA zp'
CA       DEX ;first loop only
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, and Z&N
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
48   ... PHA      × 2
00 00... BRK 0    × 2
Clobbers S; requires dummy interrupt handler; and writes in stack
7 bytes
EA       NOP
20 xx xx JSR @rts15× 2
Requires @rts15; and writes in stack
A9 2A    LDA #$2A ;hides 'ROL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
Clobbers A, Z&N, and C
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
EA   ... NOP      × 3
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
20 xx xx JSR @rts14× 2
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
A2 FA    LDX #250 ;hides 'NOP'
EA       NOP
E8   ... INX      × 2
D0 FA    BNE *-4
Clobbers X, and Z&N; and requires support for unofficial opcodes
A0 FA    LDY #250 ;hides 'NOP'
EA       NOP
C8   ... INY      × 2
D0 FA    BNE *-4
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
A6 A6    LDX $A6
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 04    LDY #4
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
EA   ... NOP      × 2
20 xx xx JSR @rts14× 2
Requires @rts14; and writes in stack
68   ... PLA      × 8
Clobbers A, S, and Z&N
9 bytes
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
08       PHP
28       PLP
10 FA    BPL *-4
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 03    LDY #3
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 03    LDX #3
24 24    BIT $24
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
EA       NOP
48   ... PHA      × 2
20 xx xx JSR @rts12× 2
Clobbers S; requires @rts12; and writes in stack
08       PHP
48       PHA
A9       LDA #0
20 xx xx JSR delay_256a_16_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
EA   ... NOP      × 2
68       PLA       \ × 4
48       PHA       /
Clobbers A, and Z&N
12 bytes
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N
16 bytes
EA   ... NOP      × 16
No requirements


33 cycles

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


34 cycles

5 bytes
A0 88    LDY #136 ;hides 'DEY'
88       DEY
30 FC    BMI *-2
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
6 bytes
48       PHA
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
68   ... PLA      × 2
00 00... BRK 0    × 2
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
28       PLP
00 00    BRK 0
20 xx xx JSR @rts14
Requires dummy interrupt handler, and @rts14; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA       NOP
48   ... PHA      × 2
00 00... BRK 0    × 2
Clobbers S; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #0
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #0
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 2
20 xx xx JSR @rts15× 2
Requires @rts15; and writes in stack
08       PHP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; and writes in stack
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA   ... NOP      × 4
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
20 xx xx JSR @rts14× 2
Clobbers S; requires @rts14; and writes in stack
9 bytes
08       PHP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
10 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
EA       NOP
68   ... PLA      × 8
Clobbers A, S, and Z&N
11 bytes
EA   ... NOP      × 3
68       PLA       \ × 4
48       PHA       /
Clobbers A, and Z&N
12 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N
17 bytes
EA   ... NOP      × 17
No requirements


35 cycles

5 bytes
A9       LDA #8
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 88    LDY #136 ;hides 'DEY'
88   ... DEY      × 2
30 FB    BMI *-3
Clobbers Y, and Z&N
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
10 FB    BPL *-3
Clobbers A, Z&N, and C; and writes in stack
A2 F8    LDX #248 ;hides 'SED'
E8   ... INX      × 2
D0 FB    BNE *-3
Clobbers X, Z&N, and D
68       PLA
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
Clobbers A, S, Z&N, and C
7 bytes
EA   ... NOP      × 2
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
EA       NOP
08       PHP
28       PLP
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
68       PLA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, S, and Z&N; and writes in stack
08       PHP
A9       LDA #1
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #1
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 2
08       PHP
A9 0A    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
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts14× 2
Requires @rts14; and writes in stack
E6 xx    INC @zptemp
20 xx xx JSR @rts15× 2
Clobbers Z&N; requires @zptemp, and @rts15; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts15× 2
Clobbers S; requires @rts15; and writes in stack
9 bytes
08       PHP
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
68       PLA
28       PLP
Writes in stack
68       PLA
48       PHA
68   ... PLA      × 7
Clobbers A, S, and Z&N
10 bytes
68       PLA       \ × 5
48       PHA       /
Clobbers A, and Z&N
13 bytes
E6 xx    INC @zptemp
EA   ... NOP      × 3
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
14 bytes
C5 C5    CMP $C5
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N, and V
04 04    NOP $04
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and not relocatable code
18 bytes
18   ... CLC      × 16
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 16
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 16
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 16
Requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
EA   ... NOP      × 16
Not relocatable code


36 cycles

5 bytes
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V
6 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
7 bytes
48       PHA
08       PHP
28       PLP
00 00... BRK 0    × 2
Clobbers S; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #2
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #2
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
90 FC    BCC *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 04    LDY #4
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
90 FC    BCC *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
08       PHP
24 24    BIT $24
28       PLP
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
20 xx xx JSR @rts15× 2
Clobbers S; requires @rts15; and writes in stack
9 bytes
20 xx xx JSR @rts12× 3
Requires @rts12; and writes in stack
EA   ... NOP      × 3
20 xx xx JSR @rts15× 2
Requires @rts15; and writes in stack
68   ... PLA      × 9
Clobbers A, S, and Z&N
EA       NOP
48   ... PHA      × 2
20 xx xx JSR @rts14× 2
Clobbers S; requires @rts14; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
10 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
12 bytes
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N
18 bytes
EA   ... NOP      × 18
No requirements


37 cycles

5 bytes
A9       LDA #10
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
A0 88    LDY #136 ;hides 'DEY'
88       DEY
30 FC    BMI *-2
Clobbers Y, S, and Z&N; and writes in stack
A0 04    LDY #4
68       PLA
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, S, and Z&N
A2 04    LDX #4
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
A0 04    LDY #4
EA   ... NOP      × 2
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N
A2 04    LDX #4
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
00 00    BRK 0
10 FA    BPL *-4
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #3
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #3
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts15× 2
Requires @rts15; and writes in stack
EA   ... NOP      × 2
08       PHP
28       PLP
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
9 bytes
EA   ... NOP      × 3
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14× 2
Requires @rts14; and writes in stack
10 bytes
08       PHP
48       PHA
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 7
Clobbers A, S, and Z&N
11 bytes
EA       NOP
68       PLA       \ × 5
48       PHA       /
Clobbers A, and Z&N
14 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires @zptemp
04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
19 bytes
18   ... CLC      × 17
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 17
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 17
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 17
Requires support for unofficial opcodes
20 bytes
4C xx xx JMP *+3
EA   ... NOP      × 17
Not relocatable code


38 cycles

5 bytes
A9       LDA #11
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, and V
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, S, Z&N, and C
7 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 06    LDY #6
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
20 xx xx JSR @rts12
00 00... BRK 0    × 2
Requires dummy interrupt handler, and @rts12; and writes in stack
8 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
10 bytes
EA       NOP
68   ... PLA      × 9
Clobbers A, S, and Z&N
12 bytes
68       PLA       \ × 2
48       PHA       /
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers A, and Z&N
13 bytes
EA       NOP
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N
19 bytes
EA   ... NOP      × 19
No requirements


39 cycles

4 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
6 bytes
00 00... BRK 0    × 3
Requires dummy interrupt handler; and writes in stack
48       PHA
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #5
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #5
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 05    LDY #5 ;hides 'ORA zp'
88       DEY ;first loop only
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers A, and Y; and writes in stack
08       PHP
A2 05    LDX #5 ;hides 'ORA zp'
CA       DEX ;first loop only
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers A, and X; and writes in stack
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
20 xx xx JSR @rts14
10 F9    BPL *-5
Clobbers A, and Z&N; requires @rts14; and writes in stack
68   ... PLA      × 2
08       PHP
A9 0A    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× 2
Requires @rts15; and writes in stack
08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
08       PHP
A2 FA    LDX #250 ;hides 'NOP'
EA       NOP
E8   ... INX      × 2
D0 FA    BNE *-4
28       PLP
Clobbers X; requires support for unofficial opcodes; and writes in stack
08       PHP
A0 FA    LDY #250 ;hides 'NOP'
EA       NOP
C8   ... INY      × 2
D0 FA    BNE *-4
28       PLP
Clobbers Y; requires support for unofficial opcodes; and writes in stack
10 bytes
08       PHP
A6 A6    LDX $A6
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 04    LDY #4
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
28       PLP
20 xx xx JSR @rts14× 2
Requires @rts14; and writes in stack
48       PHA
20 xx xx JSR @rts12× 3
Clobbers S; requires @rts12; and writes in stack
68       PLA
48       PHA
68   ... PLA      × 8
Clobbers A, S, and Z&N
11 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
68       PLA
28       PLP
Writes in stack
12 bytes
EA   ... NOP      × 2
68       PLA       \ × 5
48       PHA       /
Clobbers A, and Z&N
14 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
04 04    NOP $04
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
20 bytes
18   ... CLC      × 18
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 18
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 18
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 18
Requires support for unofficial opcodes
21 bytes
4C xx xx JMP *+3
EA   ... NOP      × 18
Not relocatable code


40 cycles

5 bytes
A9       LDA #13
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 05    LDY #5 ;hides 'ORA zp'
EA       NOP
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, and Z&N
A2 05    LDX #5 ;hides 'ORA zp'
EA       NOP
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
B0 FC    BCS *-2
Clobbers A, S, Z&N, C, and V
7 bytes
EA   ... NOP      × 2
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, and V
00 00... BRK 0    × 2
20 xx xx JSR @rts14
Requires dummy interrupt handler, and @rts14; and writes in stack
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, S, Z&N, and C
08       PHP
A9       LDA #6
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #6
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18   ... CLC      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 06    LDY #6
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
18   ... CLC      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
00 00... BRK 0    × 2
08       PHP       \ × 2
28       PLP       /
Requires dummy interrupt handler; and writes in stack
9 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
10 bytes
68   ... PLA      × 10
Clobbers A, S, and Z&N
12 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 4
48       PHA       /
Clobbers A, and Z&N
14 bytes
EA   ... NOP      × 2
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N
20 bytes
EA   ... NOP      × 20
No requirements


41 cycles

5 bytes
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
7 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 88    LDY #136 ;hides 'DEY'
88       DEY
30 FC    BMI *-2
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
00 00... BRK 0    × 3
Requires dummy interrupt handler; and writes in stack
8 bytes
48       PHA
08       PHP
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts12, @rts14, and @rts15; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
48       PHA
A9       LDA #0
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
11 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 8
Clobbers A, S, and Z&N
13 bytes
EA   ... NOP      × 3
68       PLA       \ × 5
48       PHA       /
Clobbers A, and Z&N
14 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
15 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and V
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
16 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
21 bytes
18   ... CLC      × 19
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 19
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 19
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 19
Requires support for unofficial opcodes
22 bytes
4C xx xx JMP *+3
EA   ... NOP      × 19
Not relocatable code


42 cycles

5 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C; and writes in stack
A9       LDA #15
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
7 bytes
EA       NOP
A2 05    LDX #5 ;hides 'ORA zp'
EA       NOP
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, and Z&N
EA       NOP
A0 05    LDY #5 ;hides 'ORA zp'
EA       NOP
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, and Z&N
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
00 00... BRK 0    × 3
Clobbers S; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #8
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #8
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
10 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 F8    LDX #248 ;hides 'SED'
E8   ... INX      × 2
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 88    LDY #136 ;hides 'DEY'
88   ... DEY      × 2
30 FB    BMI *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
24 24    BIT $24
00 00... BRK 0    × 3
Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
EA       NOP
00 00... BRK 0    × 2
20 xx xx JSR @rts14
Requires dummy interrupt handler, and @rts14; and writes in stack
85 xx    STA @zptemp
00 00... BRK 0    × 3
Requires @zptemp, and dummy interrupt handler; and writes in stack
04 04    NOP $04
00 00... BRK 0    × 3
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
9 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts15× 2
Requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts14× 3
Requires @rts14; and writes in stack
EA       NOP
00 00... BRK 0    × 2
08       PHP       \ × 2
28       PLP       /
Requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9       LDA #1
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
11 bytes
EA       NOP
68   ... PLA      × 10
Clobbers A, S, and Z&N
12 bytes
68       PLA       \ × 6
48       PHA       /
Clobbers A, and Z&N
15 bytes
EA   ... NOP      × 3
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N
21 bytes
EA   ... NOP      × 21
No requirements


43 cycles

5 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 06    LDY #6
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 06    LDX #6
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
7 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
8 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
EA   ... NOP      × 2
00 00... BRK 0    × 3
Requires dummy interrupt handler; and writes in stack
9 bytes
20 xx xx JSR @rts15
20 xx xx JSR @rts14× 2
Requires @rts14, and @rts15; and writes in stack
08       PHP
48       PHA
A9       LDA #2
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
90 FC    BCC *-2
68       PLA
28       PLP
Writes in stack
11 bytes
68       PLA
48       PHA
68   ... PLA      × 9
Clobbers A, S, and Z&N
13 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 8
10 F4    BPL *-10
Clobbers A, and Z&N
15 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
16 bytes
EA   ... NOP      × 2
C5 C5    CMP $C5
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and C
EA   ... NOP      × 2
24 24    BIT $24
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and V
EA   ... NOP      × 2
04 04    NOP $04
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
17 bytes
EA   ... NOP      × 2
4C xx xx JMP *+3
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
22 bytes
18   ... CLC      × 20
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 20
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 20
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 20
Requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
EA   ... NOP      × 20
Not relocatable code


44 cycles

5 bytes
A9       LDA #17
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
88       DEY
30 FB    BMI *-3
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
Clobbers A, Z&N, and C
48       PHA
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
A9       LDA #10
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #10
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
00 00    BRK 0
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
E6 xx    INC @zptemp
00 00... BRK 0    × 3
Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
08       PHP
A0 88    LDY #136 ;hides 'DEY'
88       DEY
30 FC    BMI *-2
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA       NOP
48       PHA
00 00... BRK 0    × 3
Clobbers S; requires dummy interrupt handler; and writes in stack
9 bytes
08       PHP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 04    LDY #4
EA   ... NOP      × 2
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 04    LDX #4
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
20 xx xx JSR @rts14
20 xx xx JSR @rts15× 2
Requires @rts14, and @rts15; and writes in stack
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
00 00    BRK 0
10 FA    BPL *-4
68       PLA
Clobbers Z&N; requires dummy interrupt handler; and writes in stack
18       CLC
90 00    BCC *+2
00 00... BRK 0    × 3
Clobbers C; requires dummy interrupt handler; and writes in stack
B8       CLV
50 00    BVC *+2
00 00... BRK 0    × 3
Clobbers V; requires dummy interrupt handler; and writes in stack
EA   ... NOP      × 2
00 00... BRK 0    × 2
20 xx xx JSR @rts14
Requires dummy interrupt handler, and @rts14; and writes in stack
EA       NOP
85 xx    STA @zptemp
00 00... BRK 0    × 3
Requires @zptemp, and dummy interrupt handler; and writes in stack
EA       NOP
04 04    NOP $04
00 00... BRK 0    × 3
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #3
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP       \ × 2
28       PLP       /
20 xx xx JSR @rts15× 2
Requires @rts15; and writes in stack
EA       NOP
20 xx xx JSR @rts14× 3
Requires @rts14; and writes in stack
EA   ... NOP      × 2
00 00... BRK 0    × 2
08       PHP       \ × 2
28       PLP       /
Requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Writes in stack
68   ... PLA      × 11
Clobbers A, S, and Z&N
13 bytes
EA       NOP
68       PLA       \ × 6
48       PHA       /
Clobbers A, and Z&N
16 bytes
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N
22 bytes
EA   ... NOP      × 22
No requirements


45 cycles

5 bytes
A9       LDA #18
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
7 bytes
EA   ... NOP      × 2
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
08       PHP
A9       LDA #11
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #11
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48   ... PHA      × 2
00 00... BRK 0    × 3
Clobbers S; requires dummy interrupt handler; and writes in stack
9 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
68       PLA
28       PLP
Writes in stack
12 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 9
Clobbers A, S, and Z&N
14 bytes
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
68       PLA       \ × 3
48       PHA       /
Clobbers A, and Z&N
16 bytes
EA   ... NOP      × 2
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
17 bytes
EA   ... NOP      × 3
C5 C5    CMP $C5
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and C
EA   ... NOP      × 3
24 24    BIT $24
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and V
EA   ... NOP      × 3
04 04    NOP $04
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
18 bytes
26 26... ROL $26  × 9
Clobbers Z&N
23 bytes
18   ... CLC      × 21
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 21
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 21
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 21
Requires support for unofficial opcodes
24 bytes
4C xx xx JMP *+3
EA   ... NOP      × 21
Not relocatable code


46 cycles

5 bytes
A0 09    LDY #9
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 09    LDX #9
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #19
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
8 bytes
08       PHP
28       PLP
00 00... BRK 0    × 3
Requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A4 A4    LDY $A4
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #5
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15× 2
Requires @rts14, and @rts15; and writes in stack
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
20 xx xx JSR @rts14
10 F9    BPL *-5
68       PLA
Clobbers Z&N; requires @rts14; and writes in stack
11 bytes
08       PHP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack
12 bytes
EA       NOP
68   ... PLA      × 11
Clobbers A, S, and Z&N
14 bytes
EA   ... NOP      × 2
68       PLA       \ × 6
48       PHA       /
Clobbers A, and Z&N
16 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N
23 bytes
EA   ... NOP      × 23
No requirements


47 cycles

5 bytes
A9       LDA #20
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
7 bytes
BA       TSX
68       PLA
9A       TXS
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, X, Z&N, and C
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
00 00    BRK 0
A0 88    LDY #136 ;hides 'DEY'
88       DEY
30 FC    BMI *-2
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
08       PHP
A9       LDA #13
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #13
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
A0 05    LDY #5 ;hides 'ORA zp'
EA       NOP
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers A, and Y; and writes in stack
08       PHP
A2 05    LDX #5 ;hides 'ORA zp'
EA       NOP
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers A, and X; and writes in stack
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
Clobbers A, Z&N, and C
68       PLA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A, S, and Z&N; and writes in stack
9 bytes
EA       NOP
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
28       PLP
00 00... BRK 0    × 2
20 xx xx JSR @rts14
Requires dummy interrupt handler, and @rts14; and writes in stack
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA       NOP
48   ... PHA      × 2
00 00... BRK 0    × 3
Clobbers S; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9       LDA #6
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18   ... CLC      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
68       PLA
28       PLP
Writes in stack
12 bytes
68       PLA
48       PHA
68   ... PLA      × 10
Clobbers A, S, and Z&N
14 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 5
48       PHA       /
Clobbers A, and Z&N
17 bytes
EA   ... NOP      × 3
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
18 bytes
C5 C5    CMP $C5
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N, and V
04 04    NOP $04
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
EA       NOP
26 26... ROL $26  × 9
Clobbers Z&N
24 bytes
18   ... CLC      × 22
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 22
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 22
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 22
Requires support for unofficial opcodes
25 bytes
4C xx xx JMP *+3
EA   ... NOP      × 22
Not relocatable code


48 cycles

5 bytes
A9       LDA #21
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 09    LDY #9
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 09    LDX #9
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
7 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
9 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
12 bytes
68   ... PLA      × 12
Clobbers A, S, and Z&N
15 bytes
EA   ... NOP      × 3
68       PLA       \ × 6
48       PHA       /
Clobbers A, and Z&N
16 bytes
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N
24 bytes
EA   ... NOP      × 24
No requirements


49 cycles

4 bytes
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers Y, and Z&N
5 bytes
A9       LDA #22
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 06    LDX #6
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
90 FC    BCC *-2
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 09    LDX #9
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
90 FB    BCC *-3
Clobbers A, Z&N, and C; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
24 24    BIT $24
90 FB    BCC *-3
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
90 FB    BCC *-3
Clobbers A, Z&N, and C; and requires @zptemp
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA       NOP
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
90 FB    BCC *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
08       PHP
A9       LDA #15
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #15
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
26 26    ROL $26
66 26    ROR $26
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
9 bytes
08       PHP
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
28       PLP
00 00... BRK 0    × 3
Clobbers S; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9       LDA #8
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
28       PLP
Writes in stack
13 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 10
Clobbers A, S, and Z&N
14 bytes
68       PLA       \ × 7
48       PHA       /
Clobbers A, and Z&N
18 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
20 bytes
EA   ... NOP      × 2
26 26... ROL $26  × 9
Clobbers Z&N
25 bytes
18   ... CLC      × 23
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 23
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 23
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 23
Requires support for unofficial opcodes
26 bytes
4C xx xx JMP *+3
EA   ... NOP      × 23
Not relocatable code


50 cycles

5 bytes
A9       LDA #23
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 07    LDY #7
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
B0 FB    BCS *-3
Clobbers A, Z&N, C, and V
7 bytes
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
68       PLA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A, S, and Z&N; and writes in stack
68   ... PLA      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
08       PHP
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 2
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 06    LDX #6
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 06    LDY #6
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA   ... NOP      × 2
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
9 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Writes in stack
13 bytes
EA       NOP
68   ... PLA      × 12
Clobbers A, S, and Z&N
15 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 8
10 F4    BPL *-10
Clobbers A, and Z&N
17 bytes
EA       NOP
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N
25 bytes
EA   ... NOP      × 25
No requirements


51 cycles

5 bytes
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
Clobbers A, Z&N, C, and V
7 bytes
20 xx xx JSR @rts12
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
68   ... PLA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
08       PHP
A9       LDA #17
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #17
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
88       DEY
30 FB    BMI *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
36 36    ROL $36,X
76 36    ROR $36,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
48       PHA
08       PHP
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
20 xx xx JSR @rts12
00 00... BRK 0    × 3
Requires dummy interrupt handler, and @rts12; and writes in stack
08       PHP
48       PHA
A9       LDA #10
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
00 00    BRK 0
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
08       PHP
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
13 bytes
68       PLA
48       PHA
68   ... PLA      × 11
Clobbers A, S, and Z&N
15 bytes
EA       NOP
68       PLA       \ × 7
48       PHA       /
Clobbers A, and Z&N
18 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
04 04    NOP $04
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
21 bytes
EA   ... NOP      × 3
26 26... ROL $26  × 9
Clobbers Z&N
26 bytes
18   ... CLC      × 24
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 24
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 24
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 24
Requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
EA   ... NOP      × 24
Not relocatable code


52 cycles

5 bytes
48       PHA
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers Y, S, and Z&N; and writes in stack
A9       LDA #25
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A4 A4    LDY $A4
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers Y, and Z&N
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
7 bytes
EA       NOP
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
EA       NOP
10 F9    BPL *-5
Clobbers A, Z&N, C, and V
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
90 FC    BCC *-2
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #18
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #18
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
00 00... BRK 0    × 4
Requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
Clobbers A, S, Z&N, and C
9 bytes
EA   ... NOP      × 3
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
18       CLC
A9 4A    LDA #$4A ;hides 'LSR A'
36 36    ROL $36,X
76 36    ROR $36,X
90 F9    BCC *-5
Clobbers A, Z&N, and C
08       PHP
48       PHA
A9       LDA #11
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack
13 bytes
68   ... PLA      × 13
Clobbers A, S, and Z&N
16 bytes
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
68       PLA       \ × 4
48       PHA       /
Clobbers A, and Z&N
18 bytes
EA   ... NOP      × 2
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N
26 bytes
EA   ... NOP      × 26
No requirements


53 cycles

5 bytes
68       PLA
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers A, Y, S, and Z&N
A9       LDA #26
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FA    BMI *-4
Clobbers A, Z&N, C, and V
A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
7 bytes
08       PHP
A2 09    LDX #9
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
20 xx xx JSR @rts14
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
68       PLA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
90 FC    BCC *-2
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #19
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #19
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Writes in stack
68       PLA       \ × 2
48       PHA       /
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
14 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 11
Clobbers A, S, and Z&N
16 bytes
EA   ... NOP      × 2
68       PLA       \ × 7
48       PHA       /
Clobbers A, and Z&N
18 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
19 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N, and V
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
20 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
22 bytes
EA   ... NOP      × 4
26 26... ROL $26  × 9
Clobbers Z&N
27 bytes
18   ... CLC      × 25
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 25
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 25
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 25
Requires support for unofficial opcodes
28 bytes
4C xx xx JMP *+3
EA   ... NOP      × 25
Not relocatable code


54 cycles

5 bytes
A9       LDA #27
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
E6 xx    INC @zptemp
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers Y, and Z&N; and requires @zptemp
48       PHA
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
A0 88    LDY #136 ;hides 'DEY'
68       PLA
88       DEY
30 FB    BMI *-3
Clobbers A, Y, S, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
10 FB    BPL *-3
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
Clobbers A, Z&N, and C
08       PHP
A9       LDA #20
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #20
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
68   ... PLA      × 2
08       PHP
A9 0A    LDA #$0A ;hides 'ASL 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 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A, and X; and writes in stack
08       PHP
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
EA       NOP
00 00... BRK 0    × 4
Requires dummy interrupt handler; and writes in stack
EA       NOP
48   ... PHA      × 2
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #13
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack
14 bytes
EA       NOP
68   ... PLA      × 13
Clobbers A, S, and Z&N
16 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 6
48       PHA       /
Clobbers A, and Z&N
18 bytes
36 36... ROL $36,X× 9
Clobbers Z&N
27 bytes
EA   ... NOP      × 27
No requirements


55 cycles

5 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
A0 F8    LDY #248 ;hides 'SED'
C8       INY
D0 FC    BNE *-2
Clobbers Y, Z&N, and D
A2 F8    LDX #248 ;hides 'SED'
E8       INX
D0 FC    BNE *-2
Clobbers X, Z&N, and D
6 bytes
48   ... PHA      × 2
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers Y, S, and Z&N; and writes in stack
A0 06    LDY #6
68       PLA
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, S, and Z&N
A2 06    LDX #6
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
7 bytes
A0 06    LDY #6
EA   ... NOP      × 2
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N
A2 06    LDX #6
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N
08       PHP
A9       LDA #21
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #21
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A0 09    LDY #9
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 09    LDX #9
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
9 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Writes in stack
14 bytes
68       PLA
48       PHA
68   ... PLA      × 12
Clobbers A, S, and Z&N
16 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 11
10 F1    BPL *-13
Clobbers A, and Z&N
19 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
20 bytes
EA   ... NOP      × 2
C5 C5    CMP $C5
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N, and C
EA   ... NOP      × 2
24 24    BIT $24
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N, and V
EA   ... NOP      × 2
04 04    NOP $04
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
21 bytes
EA   ... NOP      × 2
4C xx xx JMP *+3
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
22 bytes
26 26    ROL $26
66 26    ROR $26
26 26... ROL $26  × 9
Clobbers Z&N
28 bytes
18   ... CLC      × 26
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 26
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 26
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 26
Requires support for unofficial opcodes
29 bytes
4C xx xx JMP *+3
EA   ... NOP      × 26
Not relocatable code


56 cycles

5 bytes
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #29
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
28       PLP
Clobbers Y; and writes in stack
7 bytes
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
Clobbers A, Z&N, C, and V; and requires @zptemp
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
10 FB    BPL *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #22
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #22
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
Clobbers A, Z&N, and C
48       PHA
08       PHP
A2 09    LDX #9
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
24 24    BIT $24
90 FB    BCC *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 06    LDX #6
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
90 FB    BCC *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
48       PHA
A9       LDA #15
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Writes in stack
14 bytes
68   ... PLA      × 14
Clobbers A, S, and Z&N
16 bytes
68       PLA       \ × 8
48       PHA       /
Clobbers A, and Z&N
19 bytes
EA       NOP
36 36... ROL $36,X× 9
Clobbers Z&N
28 bytes
EA   ... NOP      × 28
No requirements


57 cycles

5 bytes
A9       LDA #30
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 08    LDY #8
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 08    LDX #8
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
7 bytes
08       PHP
A9       LDA #23
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #23
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
B0 FB    BCS *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 07    LDY #7
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
08       PHP
48       PHA
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Writes in stack
15 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 12
Clobbers A, S, and Z&N
17 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 11
10 F1    BPL *-13
Clobbers A, and Z&N
20 bytes
C5 C5    CMP $C5
36 36... ROL $36,X× 9
Clobbers Z&N, and C
24 24    BIT $24
36 36... ROL $36,X× 9
Clobbers Z&N, and V
85 xx    STA @zptemp
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
04 04    NOP $04
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
21 bytes
4C xx xx JMP *+3
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
22 bytes
36 36    ROL $36,X
76 36    ROR $36,X
26 26... ROL $26  × 9
Clobbers Z&N
29 bytes
18   ... CLC      × 27
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 27
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 27
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 27
Requires support for unofficial opcodes
30 bytes
4C xx xx JMP *+3
EA   ... NOP      × 27
Not relocatable code


58 cycles

5 bytes
A9       LDA #31
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
20 xx xx JSR @rts12
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
08       PHP
48       PHA
A9       LDA #17
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
68       PLA
28       PLP
Writes in stack
15 bytes
EA       NOP
68   ... PLA      × 14
Clobbers A, S, and Z&N
17 bytes
EA       NOP
68       PLA       \ × 8
48       PHA       /
Clobbers A, and Z&N
20 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N
29 bytes
EA   ... NOP      × 29
No requirements


59 cycles

5 bytes
A9       LDA #32
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
Clobbers A, Z&N, and C; and writes in stack
48       PHA
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
68       PLA
A2 F8    LDX #248 ;hides 'SED'
E8       INX
D0 FC    BNE *-2
Clobbers A, X, S, Z&N, and D
68       PLA
A0 F8    LDY #248 ;hides 'SED'
C8       INY
D0 FC    BNE *-2
Clobbers A, Y, S, Z&N, and D
7 bytes
A6 A6    LDX $A6
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
28       PLP
Clobbers Y, and S; and writes in stack
08       PHP
A9       LDA #25
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #25
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A4 A4    LDY $A4
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
28       PLP
Clobbers Y; and writes in stack
00 00    BRK 0
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
9 bytes
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
EA       NOP
10 F9    BPL *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
EA       NOP
10 F9    BPL *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #18
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
08       PHP
28       PLP
00 00... BRK 0    × 4
Requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Writes in stack
15 bytes
68       PLA
48       PHA
68   ... PLA      × 13
Clobbers A, S, and Z&N
17 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
20 bytes
E6 xx    INC @zptemp
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
21 bytes
EA       NOP
C5 C5    CMP $C5
36 36... ROL $36,X× 9
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36... ROL $36,X× 9
Clobbers Z&N, and V
EA       NOP
04 04    NOP $04
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
22 bytes
EA       NOP
4C xx xx JMP *+3
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
23 bytes
EA       NOP
36 36    ROL $36,X
76 36    ROR $36,X
26 26... ROL $26  × 9
Clobbers Z&N
30 bytes
18   ... CLC      × 28
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 28
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 28
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 28
Requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
EA   ... NOP      × 28
Not relocatable code


60 cycles

5 bytes
A9       LDA #33
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
EA       NOP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #26
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #26
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FA    BMI *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FA    BMI *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
9 bytes
20 xx xx JSR @rts14
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9       LDA #19
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Writes in stack
15 bytes
68   ... PLA      × 15
Clobbers A, S, and Z&N
18 bytes
EA   ... NOP      × 2
68       PLA       \ × 8
48       PHA       /
Clobbers A, and Z&N
20 bytes
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N
30 bytes
EA   ... NOP      × 30
No requirements


61 cycles

5 bytes
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #34
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
Clobbers A, Z&N, and C; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
90 FB    BCC *-3
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
08       PHP
A9       LDA #27
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #27
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
08       PHP
E6 xx    INC @zptemp
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
28       PLP
Clobbers Y; requires @zptemp; and writes in stack
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
08       PHP
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #20
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
EA       NOP
08       PHP
28       PLP
00 00... BRK 0    × 4
Requires dummy interrupt handler; and writes in stack
EA       NOP
48   ... PHA      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
68       PLA
28       PLP
Writes in stack
16 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 13
Clobbers A, S, and Z&N
18 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 7
48       PHA       /
Clobbers A, and Z&N
21 bytes
EA       NOP
E6 xx    INC @zptemp
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
22 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N, and V
04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
24 bytes
EA   ... NOP      × 2
36 36    ROL $36,X
76 36    ROR $36,X
26 26... ROL $26  × 9
Clobbers Z&N
31 bytes
18   ... CLC      × 29
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 29
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 29
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 29
Requires support for unofficial opcodes
32 bytes
4C xx xx JMP *+3
EA   ... NOP      × 29
Not relocatable code


62 cycles

5 bytes
A2 88    LDX #136 ;hides 'DEY'
CA       DEX
30 FC    BMI *-2
Clobbers X, Y, and Z&N
A9       LDA #35
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
00 00    BRK 0
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
7 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 F8    LDX #248 ;hides 'SED'
E8       INX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 F8    LDY #248 ;hides 'SED'
C8       INY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
68       PLA
48       PHA
A2 F8    LDX #248 ;hides 'SED'
E8       INX
D0 FC    BNE *-2
Clobbers A, X, Z&N, and D
68       PLA
48       PHA
A0 F8    LDY #248 ;hides 'SED'
C8       INY
D0 FC    BNE *-2
Clobbers A, Y, Z&N, and D
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
EA       NOP
68       PLA
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
8 bytes
EA   ... NOP      × 3
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
9 bytes
08       PHP
48       PHA
A9       LDA #21
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Writes in stack
16 bytes
EA       NOP
68   ... PLA      × 15
Clobbers A, S, and Z&N
18 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 11
10 F1    BPL *-13
Clobbers A, and Z&N
21 bytes
EA       NOP
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N
31 bytes
EA   ... NOP      × 31
No requirements


63 cycles

5 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
A9       LDA #36
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
7 bytes
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and not relocatable code
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
08       PHP
A9       LDA #29
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #29
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
9 bytes
08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
08       PHP
E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
28       PLP
Clobbers A; requires @zptemp; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
00 00... BRK 0    × 2
10 F8    BPL *-6
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
28       PLP
Clobbers A, and S; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
48   ... PHA      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9       LDA #22
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
90 FB    BCC *-3
68       PLA
28       PLP
Writes in stack
16 bytes
68       PLA
48       PHA
68   ... PLA      × 14
Clobbers A, S, and Z&N
18 bytes
68       PLA       \ × 9
48       PHA       /
Clobbers A, and Z&N
22 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
04 04    NOP $04
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
25 bytes
EA   ... NOP      × 3
36 36    ROL $36,X
76 36    ROR $36,X
26 26... ROL $26  × 9
Clobbers Z&N
32 bytes
18   ... CLC      × 30
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 30
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 30
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 30
Requires support for unofficial opcodes
33 bytes
4C xx xx JMP *+3
EA   ... NOP      × 30
Not relocatable code


64 cycles

5 bytes
A9       LDA #37
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA   ... NOP      × 2
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
10 FA    BPL *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #30
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #30
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 08    LDY #8
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 08    LDX #8
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #23
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
28       PLP
Writes in stack
  • From 64 cycles onwards, these tables quit considering writing into stack as a drawback.


65 cycles

5 bytes
A9       LDA #38
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 08    LDY #8
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 08    LDX #8
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
EA   ... NOP      × 2
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
08       PHP
A9       LDA #31
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #31
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and not relocatable code
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
EA       NOP
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
00 00... BRK 0    × 2
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
28       PLP
Writes in stack


66 cycles

5 bytes
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #39
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
08       PHP
A9       LDA #32
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #32
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
48       PHA
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A4 A4    LDY $A4
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #25
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
00 00    BRK 0
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
EA       NOP
10 F9    BPL *-5
68       PLA
28       PLP
Writes in stack


67 cycles

5 bytes
A9       LDA #40
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
BA       TSX
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
9A       TXS
Clobbers A, X, Z&N, and C; and writes in stack
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
A0 06    LDY #6
48   ... PHA      × 2
88       DEY
D0 F9    BNE *-5
Clobbers Y, S, and Z&N; and writes in stack
A2 06    LDX #6
48   ... PHA      × 2
CA       DEX
D0 F9    BNE *-5
Clobbers X, S, and Z&N; and writes in stack
08       PHP
A9       LDA #33
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #33
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A4 A4    LDY $A4
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
90 FA    BCC *-4
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A; requires @zptemp; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #26
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FA    BMI *-4
68       PLA
28       PLP
Writes in stack


68 cycles

5 bytes
A9       LDA #41
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
7 bytes
08       PHP
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #34
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #34
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp
9 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #27
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


69 cycles

5 bytes
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
30 FC    BMI *-2
Clobbers Y, and Z&N
A2 0A    LDX #10 ;hides 'ASL A'
CA       DEX
D0 FC    BNE *-2
Clobbers A, X, Z&N, and C
A9       LDA #42
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
A2 88    LDX #136 ;hides 'DEY'
CA       DEX
30 FC    BMI *-2
28       PLP
Clobbers X, and Y; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
10 FA    BPL *-4
Clobbers A, Z&N, and C; and writes in stack
08       PHP
A9       LDA #35
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #35
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
00 00    BRK 0
08       PHP
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
28       PLP
Clobbers Y; requires dummy interrupt handler; and writes in stack
9 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


70 cycles

5 bytes
A9       LDA #43
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
48       PHA
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #36
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #36
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
20 xx xx JSR @rts15
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
EA       NOP
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; writes in stack; and not relocatable code
48       PHA
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #29
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68       PLA
28       PLP
Requires @rts14; and writes in stack
08       PHP
E6 xx    INC @zptemp
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
28       PLP
Requires @zptemp; and writes in stack
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
00 00... BRK 0    × 2
10 F8    BPL *-6
68       PLA
Clobbers Z&N; requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


71 cycles

5 bytes
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #44
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
7 bytes
08       PHP
A9       LDA #37
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #37
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
9 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA   ... NOP      × 2
B0 FA    BCS *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA   ... NOP      × 2
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #30
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


72 cycles

5 bytes
A9       LDA #45
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
30 FC    BMI *-2
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 0A    LDX #10 ;hides 'ASL A'
CA       DEX
D0 FC    BNE *-2
Clobbers A, X, S, Z&N, and C; and writes in stack
7 bytes
A4 A4    LDY $A4
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
30 FC    BMI *-2
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 0A    LDX #10 ;hides 'ASL A'
CA       DEX
D0 FC    BNE *-2
Clobbers A, X, Z&N, and C
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
08       PHP
A9       LDA #38
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #38
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A2 88    LDX #136 ;hides 'DEY'
CA       DEX
30 FC    BMI *-2
28       PLP
Clobbers X, Y, and S; and writes in stack
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
98       TYA
48       PHA
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 08    LDX #8
24 24    BIT $24
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #31
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; writes in stack; and not relocatable code
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
00 00... BRK 0    × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
28       PLP
Writes in stack


73 cycles

5 bytes
A9       LDA #46
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
08       PHP
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
90 FB    BCC *-3
Clobbers A, Z&N, and C; and writes in stack
08       PHP
A9       LDA #39
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #39
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
28       PLP
Clobbers A, and S; requires @zptemp; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #32
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
28       PLP
Writes in stack


74 cycles

5 bytes
A9       LDA #47
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #40
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #40
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 24    BIT $24
28       PLP
10 F9    BPL *-5
Clobbers A, Z&N, and C; and writes in stack
9 bytes
08       PHP
BA       TSX
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
9A       TXS
28       PLP
Clobbers A, and X; and writes in stack
08       PHP
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48       PHA
08       PHP
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X, and S; and writes in stack
68       PLA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
28       PLP
Clobbers A, S, and Z&N; requires @zptemp; and writes in stack
68       PLA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
28       PLP
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #33
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
90 FA    BCC *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 08    LDX #8
24 24    BIT $24
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 08    LDY #8
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
28       PLP
Requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
EA       NOP
08       PHP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
28       PLP
Writes in stack


75 cycles

5 bytes
A9       LDA #48
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
EA       NOP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #41
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #41
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9       LDA #34
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
28       PLP
Writes in stack


76 cycles

5 bytes
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
30 FC    BMI *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
A9       LDA #49
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
30 FC    BMI *-2
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0A    LDX #10 ;hides 'ASL A'
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers A, and X; and writes in stack
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #42
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #42
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp
48       PHA
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
04 04    NOP $04
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #35
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


77 cycles

5 bytes
A9       LDA #50
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #43
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #43
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
EA   ... NOP      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
8C       TXA
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #36
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
20 xx xx JSR @rts15
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68       PLA
28       PLP
Requires @zptemp; and writes in stack
EA       NOP
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


78 cycles

5 bytes
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
30 FA    BMI *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #44
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #44
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #37
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA   ... NOP      × 2
B0 FA    BCS *-4
68       PLA
28       PLP
Writes in stack


79 cycles

5 bytes
A0 88    LDY #136 ;hides 'DEY'
48       PHA
30 FC    BMI *-2
Clobbers Y, S, and Z&N; and writes in stack
A9       LDA #52
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 88    LDY #136 ;hides 'DEY'
A5 A5    LDA $A5
30 FB    BMI *-3
Clobbers A, Y, and Z&N
A0 88    LDY #136 ;hides 'DEY'
A6 A6    LDX $A6
30 FB    BMI *-3
Clobbers X, Y, and Z&N
A0 88    LDY #136 ;hides 'DEY'
C5 C5    CMP $C5
30 FB    BMI *-3
Clobbers Y, Z&N, and C
A0 88    LDY #136 ;hides 'DEY'
24 24    BIT $24
30 FB    BMI *-3
Clobbers Y, Z&N, and V
A0 88    LDY #136 ;hides 'DEY'
85 xx    STA @zptemp
30 FB    BMI *-3
Clobbers Y, and Z&N; and requires @zptemp
48       PHA
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
A0 88    LDY #136 ;hides 'DEY'
04 04    NOP $04
30 FB    BMI *-3
Clobbers Y, and Z&N; and requires support for unofficial opcodes
7 bytes
A4 A4    LDY $A4
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
08       PHP
A9       LDA #45
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #45
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C; and writes in stack
48       PHA
08       PHP
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
30 FC    BMI *-2
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 0A    LDX #10 ;hides 'ASL A'
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers A, X, and S; and writes in stack
9 bytes
08       PHP
A4 A4    LDY $A4
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
30 FC    BMI *-2
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 0A    LDX #10 ;hides 'ASL A'
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers A, and X; and writes in stack
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
08       PHP
48       PHA
A9       LDA #38
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
00 00    BRK 0
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
10 FA    BPL *-4
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
10 FA    BPL *-4
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68       PLA
28       PLP
Requires @zptemp; and writes in stack
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


80 cycles

5 bytes
A9       LDA #53
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 88    LDX #136 ;hides 'DEY'
EA       NOP
CA       DEX
30 FB    BMI *-3
Clobbers X, Y, and Z&N
68       PLA
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
30 FC    BMI *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
EA   ... NOP      × 2
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #46
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #46
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0B    LDA #11
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
68       PLA
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
90 FB    BCC *-3
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
90 FB    BCC *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #39
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; requires @zptemp; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
28       PLP
Writes in stack


81 cycles

5 bytes
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #54
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
30 FB    BMI *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
E6 xx    INC @zptemp
90 FA    BCC *-4
Clobbers A, Z&N, C, and V; and requires @zptemp
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
30 FA    BMI *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #47
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #47
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires @zptemp
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
00 00    BRK 0
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
08       PHP
A4 A4    LDY $A4
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #40
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 24    BIT $24
28       PLP
10 F9    BPL *-5
28       PLP
Clobbers A; and writes in stack
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
90 FA    BCC *-4
68       PLA
28       PLP
Writes in stack


82 cycles

5 bytes
A9       LDA #55
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 88    LDY #136 ;hides 'DEY'
48       PHA
30 FC    BMI *-2
Clobbers Y, S, and Z&N; and writes in stack
A2 09    LDX #9
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
7 bytes
A2 09    LDX #9
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N
A0 09    LDY #9
EA   ... NOP      × 2
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #48
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #48
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
98       TYA
48       PHA
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #41
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 2
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


83 cycles

5 bytes
A9       LDA #56
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
7 bytes
08       PHP
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #49
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #49
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
20 xx xx JSR @rts12
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires @zptemp
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
00 00    BRK 0
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
48       PHA
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #42
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
36 36    ROL $36,X
76 36    ROR $36,X
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
08       PHP
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; requires @zptemp; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A, and S; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
04 04    NOP $04
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
04 04    NOP $04
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


84 cycles

5 bytes
A9       LDA #57
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A4 A4    LDY $A4
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
68   ... PLA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
30 FC    BMI *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #50
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #50
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
E6 xx    INC @zptemp
28       PLP
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 4
10 F9    BPL *-5
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 24    BIT $24
28       PLP
18       CLC
10 F8    BPL *-6
Clobbers A, Z&N, and C; and writes in stack
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
68       PLA
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #43
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
48   ... PHA      × 2
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA   ... NOP      × 2
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
8C       TXA
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


85 cycles

5 bytes
A9       LDA #58
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP
28       PLP
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
90 FA    BCC *-4
Clobbers A, Z&N, and C; and writes in stack
9 bytes
08       PHP
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #44
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


86 cycles

5 bytes
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #59
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, S, Z&N, C, V, and D; and writes in stack
08       PHP
A9       LDA #52
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #52
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
C5 C5    CMP $C5
30 FB    BMI *-3
28       PLP
Clobbers Y; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
A5 A5    LDA $A5
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
48       PHA
08       PHP
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
00 00    BRK 0
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #45
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
00 00    BRK 0
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
10 FA    BPL *-4
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


87 cycles

5 bytes
A9       LDA #60
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
A0 F8    LDY #248 ;hides 'SED'
68       PLA
C8       INY
D0 FB    BNE *-3
Clobbers A, Y, S, Z&N, and D
A2 F8    LDX #248 ;hides 'SED'
68       PLA
E8       INX
D0 FB    BNE *-3
Clobbers A, X, S, Z&N, and D
7 bytes
EA       NOP
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
EA       NOP
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
08       PHP
A9       LDA #53
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #53
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 88    LDX #136 ;hides 'DEY'
EA       NOP
CA       DEX
30 FB    BMI *-3
28       PLP
Clobbers X, and Y; and writes in stack
9 bytes
8C       TXA
48       PHA
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #46
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 0B    LDA #11
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0B    LDA #11
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
90 FB    BCC *-3
68       PLA
28       PLP
Writes in stack


88 cycles

5 bytes
A9       LDA #61
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
7 bytes
08       PHP
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #54
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #54
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
9 bytes
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
E6 xx    INC @zptemp
90 FA    BCC *-4
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
E6 xx    INC @zptemp
90 FA    BCC *-4
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
30 FA    BMI *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
30 FA    BMI *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #47
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
00 00    BRK 0
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


89 cycles

5 bytes
A0 88    LDY #136 ;hides 'DEY'
68       PLA
30 FC    BMI *-2
Clobbers A, Y, S, and Z&N
A9       LDA #62
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 88    LDY #136 ;hides 'DEY'
EA   ... NOP      × 2
30 FB    BMI *-3
Clobbers Y, and Z&N
A2 0A    LDX #10 ;hides 'ASL A'
EA       NOP
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, Z&N, and C
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
A2 0B    LDX #11
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #55
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #55
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
9 bytes
08       PHP
A0 09    LDY #9
EA   ... NOP      × 2
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 09    LDX #9
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #48
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
8C       TXA
48       PHA
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


90 cycles

5 bytes
A9       LDA #63
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #56
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #56
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
9 bytes
48       PHA
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #49
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
20 xx xx JSR @rts12
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
48       PHA
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
00 00    BRK 0
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
12 bytes
36 36    ROL $36,X
76 36    ROR $36,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
04 04    NOP $04
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
EA       NOP
08       PHP
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


91 cycles

5 bytes
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #64
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA   ... NOP      × 2
30 FA    BMI *-4
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #57
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #57
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
28       PLP
Clobbers A; requires @rts12; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
26 26    ROL $26
66 26    ROR $26
90 F9    BCC *-5
Clobbers A, Z&N, and C
08       PHP
48       PHA
A9       LDA #50
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
E6 xx    INC @zptemp
28       PLP
10 F9    BPL *-5
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
E6 xx    INC @zptemp
28       PLP
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
00 00    BRK 0
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
8C       TXA
48       PHA
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
30 FA    BMI *-4
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
30 FA    BMI *-4
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 24    BIT $24
28       PLP
18       CLC
10 F8    BPL *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 24    BIT $24
28       PLP
18       CLC
10 F8    BPL *-6
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
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
68       PLA
28       PLP
Requires @rts14; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
8C       TXA
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
28       PLP
Writes in stack


92 cycles

5 bytes
A9       LDA #65
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 0D    LDY #13
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
7 bytes
68       PLA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, S, Z&N, C, V, and D
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #58
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #58
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
A9 2A    LDA #$2A ;hides 'ROL A'
00 00... BRK 0    × 2
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
EA       NOP
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP
28       PLP
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


93 cycles

5 bytes
A9       LDA #66
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #59
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #59
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
48       PHA
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers S, Z&N, C, V, and D; and writes in stack
08       PHP
48       PHA
A9       LDA #52
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A5 A5    LDA $A5
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
24 24    BIT $24
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
48   ... PHA      × 2
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
00 00    BRK 0
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


94 cycles

5 bytes
A9       LDA #67
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
08       PHP
A9       LDA #60
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #60
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
Clobbers A, Z&N, and C; and writes in stack
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #53
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


95 cycles

5 bytes
A9       LDA #68
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and writes in stack
68       PLA
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #61
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #61
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
9 bytes
48       PHA
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #54
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
E6 xx    INC @zptemp
90 FA    BCC *-4
68       PLA
28       PLP
Requires @zptemp; and writes in stack
48   ... PHA      × 2
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
90 FA    BCC *-4
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
30 FA    BMI *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


96 cycles

5 bytes
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #69
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #62
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #62
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
EA   ... NOP      × 2
30 FB    BMI *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0A    LDX #10 ;hides 'ASL A'
EA       NOP
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers A, and X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A2 0B    LDX #11
24 24    BIT $24
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
Clobbers A, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #55
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; and writes in stack
EA       NOP
08       PHP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


97 cycles

5 bytes
A9       LDA #70
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 0C    LDY #12
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 0C    LDX #12
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A0 08    LDY #8
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and writes in stack
A2 08    LDX #8
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and writes in stack
08       PHP
A9       LDA #63
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #63
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
EA       NOP
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
08       PHP
48       PHA
A9       LDA #56
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


98 cycles

5 bytes
A9       LDA #71
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
7 bytes
08       PHP
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #64
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #64
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and writes in stack
9 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA   ... NOP      × 2
30 FA    BMI *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA   ... NOP      × 2
30 FA    BMI *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9       LDA #57
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
68       PLA
28       PLP
Requires @rts12; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
26 26    ROL $26
66 26    ROR $26
90 F9    BCC *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
E6 xx    INC @zptemp
28       PLP
10 F9    BPL *-5
68       PLA
28       PLP
Requires @zptemp; and writes in stack
00 00    BRK 0
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
30 FA    BMI *-4
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 24    BIT $24
28       PLP
18       CLC
10 F8    BPL *-6
68       PLA
28       PLP
Writes in stack


99 cycles

5 bytes
A9       LDA #72
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 0E    LDX #14
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #65
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #65
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 0D    LDY #13
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and writes in stack
9 bytes
68       PLA
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A, S, and Z&N; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
28       PLP
Clobbers A, and S; requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9       LDA #58
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 2
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
00 00... BRK 0    × 2
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
11 bytes
EA       NOP
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


100 cycles

5 bytes
A9       LDA #73
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 0B    LDX #11
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
A0 0B    LDY #11
68       PLA
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #66
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #66
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #59
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
11 bytes
48       PHA
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
24 24    BIT $24
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


101 cycles

5 bytes
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #74
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
48       PHA
30 FA    BMI *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #67
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #67
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
38       SEC
A9 0E    LDA #14
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9       LDA #60
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


102 cycles

5 bytes
A9       LDA #75
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
08       PHP
A9       LDA #68
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #68
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
A6 A6    LDX $A6
A2 0E    LDX #14
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
9 bytes
EA   ... NOP      × 2
08       PHP
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #61
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


103 cycles

5 bytes
A9       LDA #76
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08       PHP ;first loop only
90 FA    BCC *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
08       PHP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #69
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #69
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
9 bytes
08       PHP
48       PHA
A9       LDA #62
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
98       TYA
48       PHA
A0 0D    LDY #13
EA       NOP
88       DEY
D0 FA    BNE *-4
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


104 cycles

5 bytes
A9       LDA #77
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
00 00    BRK 0
10 FA    BPL *-4
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #70
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #70
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
00 00    BRK 0
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
48       PHA
30 FA    BMI *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
00 00    BRK 0
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 08    LDX #8
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #63
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


105 cycles

5 bytes
A9       LDA #78
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 0D    LDX #13
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A0 0D    LDY #13
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
EA   ... NOP      × 2
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08       PHP ;first loop only
90 FA    BCC *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #71
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #71
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #64
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA   ... NOP      × 2
30 FA    BMI *-4
68       PLA
28       PLP
Writes in stack


106 cycles

5 bytes
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #79
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
EA       NOP
30 FB    BMI *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
08       PHP
A9       LDA #72
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #72
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 0E    LDX #14
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
28       PLP
Clobbers A; requires @rts15; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
A5 A5    LDA $A5
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
10 FA    BPL *-4
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
28       PLP
Clobbers A, S, and Z&N; and writes in stack
08       PHP
48       PHA
A9       LDA #65
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 2
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
28       PLP
Clobbers S; requires dummy interrupt handler; and writes in stack
12 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


107 cycles

5 bytes
A9       LDA #80
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 18    LDX #24 ;hides 'CLC'
CA   ... DEX      × 2
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 18    LDY #24 ;hides 'CLC'
88   ... DEY      × 2
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
68       PLA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08       PHP ;first loop only
90 FA    BCC *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #73
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #73
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
8C       TXA
48       PHA
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #66
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


108 cycles

5 bytes
A9       LDA #81
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #74
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #74
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
9 bytes
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #67
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 0E    LDA #14
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
48       PHA
38       SEC
A9 0E    LDA #14
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
EA   ... NOP      × 3
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68       PLA
28       PLP
Requires @rts14; and writes in stack
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
68       PLA
28       PLP
Writes in stack


109 cycles

5 bytes
A9       LDA #82
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 A4    LDY $A4
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
EA       NOP
30 FB    BMI *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #75
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #75
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts14
10 F9    BPL *-5
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
18       CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
EA       NOP
69 01    ADC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
20 xx xx JSR @rts14
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #68
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


110 cycles

5 bytes
A9       LDA #83
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
EA       NOP
30 FB    BMI *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #76
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #76
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #69
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
EA       NOP
88       DEY
D0 FA    BNE *-4
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68       PLA
28       PLP
Requires @rts14; and writes in stack
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
68       PLA
28       PLP
Writes in stack


111 cycles

5 bytes
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and writes in stack
08       PHP
A9       LDA #77
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #77
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #70
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
10 F9    BPL *-5
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
00 00    BRK 0
10 F9    BPL *-5
28       PLP
Clobbers A; requires @zptemp, and dummy interrupt handler; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
00 00    BRK 0
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
68       PLA
8C       TXA
48       PHA
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
00 00    BRK 0
10 F9    BPL *-5
28       PLP
Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
00 00    BRK 0
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
48       PHA
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


112 cycles

5 bytes
A9       LDA #85
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
08       PHP
A9       LDA #78
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #78
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
9 bytes
98       TYA
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 0D    LDY #13
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #71
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


113 cycles

5 bytes
A9       LDA #86
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 10    LDX #16
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 10    LDY #16
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A9       LDA #79
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #79
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #72
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
08       PHP
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
68       PLA
28       PLP
Requires @rts15; and writes in stack
08       PHP
A5 A5    LDA $A5
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
24 24    BIT $24
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
10 FA    BPL *-4
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


114 cycles

5 bytes
A9       LDA #87
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A5 A5    LDA $A5
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #80
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #80
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 18    LDY #24 ;hides 'CLC'
88   ... DEY      × 2
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 18    LDX #24 ;hides 'CLC'
CA   ... DEX      × 2
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #73
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


115 cycles

5 bytes
A9       LDA #88
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V
7 bytes
EA   ... NOP      × 2
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #81
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #81
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #74
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


116 cycles

5 bytes
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A9       LDA #82
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #82
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #75
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
28       PLP
Clobbers A; requires @rts15; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA       NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and writes in stack
68       PLA
98       TYA
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
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'
EA       NOP
69 01    ADC #1
D0 F9    BNE *-5
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'
EA       NOP
69 01    ADC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
98       TYA
48       PHA
A0 0D    LDY #13
A5 A5    LDA $A5
88       DEY
D0 F9    BNE *-5
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
20 xx xx JSR @rts14
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
28       PLP
Clobbers A; requires @rts14; and writes in stack
20 xx xx JSR @rts14
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
48   ... PHA      × 2
08       PHP
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 3
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
12 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


117 cycles

5 bytes
A9       LDA #90
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 0D    LDX #13 ;hides 'ORA abs'
A5 00    LDA $0
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, and Z&N
A0 0D    LDY #13 ;hides 'ORA abs'
A5 00    LDA $0
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, and Z&N
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #83
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #83
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #76
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


118 cycles

5 bytes
A9       LDA #91
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #77
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
10 F9    BPL *-5
68       PLA
28       PLP
Requires @rts14; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
00 00    BRK 0
10 F9    BPL *-5
68       PLA
28       PLP
Requires @zptemp, and dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
00 00    BRK 0
10 F9    BPL *-5
68       PLA
28       PLP
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
13 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


119 cycles

5 bytes
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 88    LDY #136 ;hides 'DEY'
08       PHP
28       PLP
30 FB    BMI *-3
Clobbers Y, and Z&N; and writes in stack
48       PHA
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A5 A5    LDA $A5
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
08       PHP
28       PLP
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #85
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #85
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 24    BIT $24
28       PLP
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
08       PHP
48       PHA
A9       LDA #78
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
28       PLP
Clobbers A, and S; requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
68       PLA
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


120 cycles

5 bytes
A9       LDA #93
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 11    LDY #17
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, S, Z&N, C, and V
7 bytes
EA   ... NOP      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #86
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #86
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 10    LDY #16
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 10    LDX #16
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #79
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
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
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
24 24    BIT $24
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


121 cycles

5 bytes
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #94
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
08       PHP
28       PLP
30 FA    BMI *-4
Clobbers A, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #87
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #87
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
00 00    BRK 0
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
08       PHP
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A5 A5    LDA $A5
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
24 24    BIT $24
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #80
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


122 cycles

5 bytes
A9       LDA #95
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
EA       NOP
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
A0 11    LDY #17
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
Clobbers A, Z&N, C, V, and D
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #88
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #88
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
38       SEC
A9 11    LDA #17
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
68       PLA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, S, and Z&N; and writes in stack
9 bytes
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #81
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


123 cycles

5 bytes
A9       LDA #96
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #82
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
68       PLA
28       PLP
Requires @rts15; and writes in stack
EA       NOP
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
18       CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
EA       NOP
69 01    ADC #1
D0 F9    BNE *-5
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
A5 A5    LDA $A5
88       DEY
D0 F9    BNE *-5
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
20 xx xx JSR @rts14
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
28       PLP
Requires @rts14; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


124 cycles

4 bytes
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers X, and Z&N
5 bytes
A9       LDA #97
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 A4    LDY $A4
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
00 00    BRK 0
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68   ... PLA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, S, Z&N, C, and V
08       PHP
A9       LDA #90
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #90
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
Clobbers A, Z&N, C, V, and D
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
00 00    BRK 0
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
9 bytes
08       PHP
A0 0D    LDY #13 ;hides 'ORA abs'
A5 00    LDA $0
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers A, and Y; and writes in stack
08       PHP
A2 0D    LDX #13 ;hides 'ORA abs'
A5 00    LDA $0
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers A, and X; and writes in stack
EA       NOP
38       SEC
A9 11    LDA #17
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
08       PHP
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 3
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #83
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


125 cycles

5 bytes
A9       LDA #98
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
A9       LDA #91
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #91
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FA    BCS *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


126 cycles

5 bytes
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #99
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
08       PHP
28       PLP
30 FB    BMI *-3
28       PLP
Clobbers Y; and writes in stack
20 xx xx JSR @rts15
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack
EA       NOP
00 00    BRK 0
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
08       PHP
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A5 A5    LDA $A5
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
24 24    BIT $24
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #85
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 24    BIT $24
28       PLP
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
68       PLA
28       PLP
Clobbers S; requires dummy interrupt handler; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


127 cycles

5 bytes
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
A9       LDA #100
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 12    LDX #18
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 12    LDY #18
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
00 00    BRK 0
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #93
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #93
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 11    LDY #17
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and writes in stack
68       PLA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A, S, and Z&N; and writes in stack
9 bytes
EA   ... NOP      × 2
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #86
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


128 cycles

5 bytes
68       PLA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
A9       LDA #101
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #94
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #94
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
08       PHP
28       PLP
30 FA    BMI *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
08       PHP
28       PLP
30 FA    BMI *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #87
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
00 00    BRK 0
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
08       PHP
24 24    BIT $24
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack
  • From 128 cycles onwards, these tables quit considering RTI options.


129 cycles

5 bytes
A9       LDA #102
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
E6 xx    INC @zptemp
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers X, and Z&N; and requires @zptemp
A2 10    LDX #16
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A0 10    LDY #16
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #95
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #95
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
38       SEC
A9 12    LDA #18
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 11    LDY #17
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
48   ... PHA      × 3
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #88
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
38       SEC
A9 11    LDA #17
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
68       PLA
28       PLP
Writes in stack


130 cycles

5 bytes
A9       LDA #103
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #96
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #96
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Writes in stack


131 cycles

5 bytes
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #104
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
08       PHP
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
7 bytes
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
48       PHA
10 F9    BPL *-5
Clobbers A, S, Z&N, C, V, and D; and writes in stack
08       PHP
A9       LDA #97
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #97
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
20 xx xx JSR @rts15
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
Clobbers A, Z&N, C, V, and D; and requires @zptemp
48       PHA
08       PHP
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
38       SEC
A9 10    LDA #16
48       PHA
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, S, Z&N, C, and V; and writes in stack
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
9 bytes
08       PHP
A4 A4    LDY $A4
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 10    LDA #16
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
68   ... PLA      × 2
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A, S, and Z&N; and writes in stack
08       PHP
48       PHA
A9       LDA #90
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
EA       NOP
48   ... PHA      × 3
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
EA       NOP
48       PHA
38       SEC
A9 11    LDA #17
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
68       PLA
28       PLP
Writes in stack


132 cycles

5 bytes
A9       LDA #105
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68   ... PLA      × 2
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
7 bytes
BA       TSX
68       PLA
9A       TXS
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers A, X, and Z&N
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
08       PHP
A9       LDA #98
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #98
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #91
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FA    BCS *-4
68       PLA
28       PLP
Writes in stack


133 cycles

5 bytes
A9       LDA #106
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #99
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #99
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts15
90 F9    BCC *-5
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts14
90 F9    BCC *-5
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
20 xx xx JSR @rts15
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; requires @rts15; and writes in stack
20 xx xx JSR @rts15
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; requires @rts15; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
20 xx xx JSR @rts12
90 F8    BCC *-6
Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts14
90 F8    BCC *-6
Clobbers A, Z&N, and C; requires @zptemp, and @rts14; and writes in stack
48       PHA
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts14
90 F8    BCC *-6
Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
24 24    BIT $24
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Writes in stack


134 cycles

5 bytes
A9       LDA #107
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 13    LDX #19
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 13    LDY #19
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
48       PHA
08       PHP
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
08       PHP
A9       LDA #100
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #100
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 12    LDX #18
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 12    LDY #18
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
20 xx xx JSR @rts14
B0 F9    BCS *-5
Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
48       PHA
10 F9    BPL *-5
Clobbers A, S, Z&N, C, V, and D; and writes in stack
9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts15
10 F8    BPL *-6
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP       \ × 2
28       PLP       /
B0 F8    BCS *-6
Clobbers A, Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #93
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Writes in stack


135 cycles

5 bytes
A9       LDA #108
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
08       PHP
A9       LDA #101
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #101
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
9 bytes
08       PHP
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #94
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
08       PHP
28       PLP
30 FA    BMI *-4
68       PLA
28       PLP
Writes in stack


136 cycles

5 bytes
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #109
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
EA   ... NOP      × 2
30 FA    BMI *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #102
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #102
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
38       SEC
A9 13    LDA #19
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
08       PHP
E6 xx    INC @zptemp
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48       PHA
08       PHP
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A2 10    LDX #16
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #95
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 12    LDA #18
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
68       PLA
28       PLP
Writes in stack


137 cycles

5 bytes
A9       LDA #110
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 11    LDY #17
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 11    LDX #17
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A2 11    LDX #17
A5 A5    LDA $A5
CA       DEX
D0 F9    BNE *-5
Clobbers A, X, and Z&N
A0 11    LDY #17
A5 A5    LDA $A5
88       DEY
D0 F9    BNE *-5
Clobbers A, Y, and Z&N
A2 11    LDX #17
A4 A4    LDY $A4
CA       DEX
D0 F9    BNE *-5
Clobbers X, Y, and Z&N
A0 11    LDY #17
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
Clobbers Y, Z&N, and C
A2 11    LDX #17
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
Clobbers X, Z&N, and C
A2 11    LDX #17
24 24    BIT $24
CA       DEX
D0 F9    BNE *-5
Clobbers X, Z&N, and V
A0 11    LDY #17
24 24    BIT $24
88       DEY
D0 F9    BNE *-5
Clobbers Y, Z&N, and V
A2 11    LDX #17
85 xx    STA @zptemp
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and requires @zptemp
A0 11    LDY #17
85 xx    STA @zptemp
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and requires @zptemp
A0 11    LDY #17
04 04    NOP $04
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 11    LDX #17
04 04    NOP $04
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and requires support for unofficial opcodes
08       PHP
A9       LDA #103
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #103
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A4 A4    LDY $A4
A0 13    LDY #19
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 13    LDX #19
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
08       PHP
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
68       PLA
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #96
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Writes in stack


138 cycles

5 bytes
A9       LDA #111
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
08       PHP
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #104
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #104
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
9 bytes
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
08       PHP
48       PHA
A9       LDA #97
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
20 xx xx JSR @rts15
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A; requires @rts15; and writes in stack
8C       TXA
48       PHA
A2 12    LDX #18
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
20 xx xx JSR @rts15
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers Z&N, C, and V; requires @rts15; and writes in stack
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
68       PLA
Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
48       PHA
08       PHP
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
68       PLA
Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
38       SEC
A9 10    LDA #16
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 10    LDA #16
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
10 F9    BPL *-5
68       PLA
28       PLP
Writes in stack


139 cycles

5 bytes
A9       LDA #112
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
48       PHA
10 F9    BPL *-5
Clobbers A, S, Z&N, C, V, and D; and writes in stack
08       PHP
A9       LDA #105
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #105
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
Clobbers A, Z&N, C, V, and D; and requires @zptemp
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
38       SEC
A9 11    LDA #17
48       PHA
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, S, Z&N, C, and V; and writes in stack
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
9 bytes
08       PHP
BA       TSX
68       PLA
9A       TXS
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28       PLP
Clobbers A, and X; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
38       SEC
A9 11    LDA #17
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
08       PHP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
68       PLA
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
08       PHP
48       PHA
A9       LDA #98
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Writes in stack


140 cycles

5 bytes
A9       LDA #113
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #106
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #106
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #99
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts15
90 F9    BCC *-5
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
12 bytes
20 xx xx JSR @rts15
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Requires @rts15; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
20 xx xx JSR @rts12
90 F8    BCC *-6
68       PLA
Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts14
90 F8    BCC *-6
68       PLA
Clobbers Z&N, and C; requires @zptemp, and @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts14
90 F8    BCC *-6
68       PLA
Clobbers Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
24 24    BIT $24
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Writes in stack


141 cycles

5 bytes
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #114
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
A9       LDA #107
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #107
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 13    LDY #19
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 13    LDX #19
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
08       PHP
28       PLP
30 F9    BMI *-5
Clobbers A, Z&N, C, and V; and writes in stack
9 bytes
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
08       PHP
48       PHA
A9       LDA #100
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
20 xx xx JSR @rts14
B0 F9    BCS *-5
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
20 xx xx JSR @rts14
B0 F9    BCS *-5
68       PLA
Clobbers Z&N, C, and V; requires @rts14; and writes in stack
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
68       PLA
AA       TAX
Clobbers A, and Z&N; requires @zptemp; and writes in stack
68       PLA
8C       TXA
48       PHA
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP       \ × 2
28       PLP       /
B0 F8    BCS *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts15
10 F8    BPL *-6
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP       \ × 2
28       PLP       /
B0 F8    BCS *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


142 cycles

5 bytes
A9       LDA #115
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 98    LDX #152 ;hides 'TYA'
EA       NOP
CA   ... DEX      × 2
30 FA    BMI *-4
Clobbers A, X, and Z&N
A0 98    LDY #152 ;hides 'TYA'
EA       NOP
88   ... DEY      × 2
30 FA    BMI *-4
Clobbers A, Y, and Z&N
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
A0 1A    LDY #26 ;hides 'NOP'
EA       NOP
88   ... DEY      × 2
D0 FA    BNE *-4
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 1A    LDX #26 ;hides 'NOP'
EA       NOP
CA   ... DEX      × 2
D0 FA    BNE *-4
Clobbers X, and Z&N; and requires support for unofficial opcodes
68       PLA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #108
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #108
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
EA   ... NOP      × 2
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
28       PLP
Clobbers A; requires @rts12; and writes in stack
98       TYA
48       PHA
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
08       PHP
48       PHA
A9       LDA #101
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


143 cycles

5 bytes
A9       LDA #116
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
08       PHP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #109
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #109
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
08       PHP
28       PLP
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
08       PHP
28       PLP
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #102
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 13    LDA #19
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


144 cycles

5 bytes
A9       LDA #117
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #110
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #110
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48   ... PHA      × 2
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
A0 11    LDY #17
24 24    BIT $24
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
48   ... PHA      × 2
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
EA   ... NOP      × 3
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
48       PHA
A9       LDA #103
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
28       PLP
Clobbers A; requires @rts12; and writes in stack
EA       NOP
98       TYA
48       PHA
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


145 cycles

5 bytes
A9       LDA #118
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 12    LDY #18
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 12    LDX #18
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
7 bytes
EA   ... NOP      × 2
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #111
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #111
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #104
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; requires @rts12; and writes in stack
11 bytes
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
48   ... PHA      × 2
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68       PLA
AA       TAX
68       PLA
Clobbers S, and Z&N; and writes in stack
12 bytes
20 xx xx JSR @rts15
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Requires @rts15; and writes in stack
48       PHA
8C       TXA
48       PHA
A2 12    LDX #18
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
68       PLA
28       PLP
Requires @zptemp; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
28       PLP
Writes in stack


146 cycles

5 bytes
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #119
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
A9       LDA #112
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #112
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
04 04    NOP $04
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
08       PHP
A4 A4    LDY $A4
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
A5 A5    LDA $A5
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
08       PHP
28       PLP
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #105
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
68       PLA
Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
68       PLA
98       TYA
48       PHA
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
68       PLA
Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
38       SEC
A9 11    LDA #17
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


147 cycles

5 bytes
A9       LDA #120
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #113
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #113
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA   ... NOP      × 2
10 F8    BPL *-6
Clobbers A, Z&N, C, V, and D
68       PLA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
38       SEC
A9 12    LDA #18
48       PHA
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, S, Z&N, C, and V; and writes in stack
EA   ... NOP      × 2
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #106
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


148 cycles

5 bytes
A9       LDA #121
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 15    LDY #21
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 15    LDX #21
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A       TXS ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V
7 bytes
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #114
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #114
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
48       PHA
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #107
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
08       PHP
28       PLP
30 F9    BMI *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
08       PHP
28       PLP
30 F9    BMI *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; requires @rts12; and writes in stack
12 bytes
EA   ... NOP      × 3
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
20 xx xx JSR @rts14
B0 F9    BCS *-5
68       PLA
28       PLP
Requires @rts14; and writes in stack
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; requires @zptemp; and writes in stack
48   ... PHA      × 3
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68       PLA
AA       TAX
68       PLA
Clobbers S, and Z&N; and writes in stack
13 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP       \ × 2
28       PLP       /
B0 F8    BCS *-6
68       PLA
28       PLP
Writes in stack


149 cycles

5 bytes
A9       LDA #122
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A4 A4    LDY $A4
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
A9       LDA #115
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #115
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48   ... PHA      × 2
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
A2 98    LDX #152 ;hides 'TYA'
EA       NOP
CA   ... DEX      × 2
30 FA    BMI *-4
28       PLP
Clobbers A, and X; and writes in stack
08       PHP
A0 98    LDY #152 ;hides 'TYA'
EA       NOP
88   ... DEY      × 2
30 FA    BMI *-4
28       PLP
Clobbers A, and Y; and writes in stack
EA       NOP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA   ... NOP      × 2
10 F8    BPL *-6
Clobbers A, Z&N, C, V, and D
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A0 1A    LDY #26 ;hides 'NOP'
EA       NOP
88   ... DEY      × 2
D0 FA    BNE *-4
28       PLP
Clobbers Y; requires support for unofficial opcodes; and writes in stack
08       PHP
A2 1A    LDX #26 ;hides 'NOP'
EA       NOP
CA   ... DEX      × 2
D0 FA    BNE *-4
28       PLP
Clobbers X; requires support for unofficial opcodes; and writes in stack
EA   ... NOP      × 3
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
68       PLA
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #108
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA   ... NOP      × 2
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68       PLA
28       PLP
Requires @rts12; and writes in stack
48       PHA
98       TYA
48       PHA
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


150 cycles

5 bytes
A9       LDA #123
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A       TXS ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V
08       PHP
A9       LDA #116
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #116
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 15    LDA #21
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #109
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
08       PHP
28       PLP
18       CLC
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


151 cycles

5 bytes
A2 1E    LDX #30
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 1E    LDY #30
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #124
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A       TXS ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #117
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #117
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and writes in stack
48       PHA
08       PHP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A4 A4    LDY $A4
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #110
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
68       PLA
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 3
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
EA   ... NOP      × 2
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 3
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
EA   ... NOP      × 3
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA   ... NOP      × 3
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68       PLA
28       PLP
Requires @rts12; and writes in stack
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


152 cycles

5 bytes
A9       LDA #125
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
68       PLA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A       TXS ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V
08       PHP
A9       LDA #118
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #118
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
9 bytes
98       TYA
48       PHA
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #111
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


153 cycles

5 bytes
A2 EA    LDX #234 ;hides 'NOP'
E8       INX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 EA    LDY #234 ;hides 'NOP'
C8       INY
D0 FC    BNE *-2
Clobbers Y, and Z&N
A9       LDA #126
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
08       PHP
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #119
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #119
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
9 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and writes in stack
48       PHA
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #112
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
08       PHP
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
04 04    NOP $04
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
04 04    NOP $04
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A5 A5    LDA $A5
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
24 24    BIT $24
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
68       PLA
28       PLP
Requires @zptemp; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
08       PHP
28       PLP
18       CLC
D0 F8    BNE *-6
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
28       PLP
Writes in stack


154 cycles

5 bytes
A9       LDA #127
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 1E    LDX #30
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1E    LDY #30
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 1E    LDX #30
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 1E    LDY #30
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #120
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #120
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48   ... PHA      × 2
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A       TXS ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
9 bytes
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; and writes in stack
68       PLA
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #113
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA   ... NOP      × 2
10 F8    BPL *-6
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA   ... NOP      × 2
10 F8    BPL *-6
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
EA   ... NOP      × 2
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


155 cycles

5 bytes
A9       LDA #128
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 16    LDX #22
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 16    LDY #22
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A9       LDA #121
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #121
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 15    LDY #21
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 15    LDX #21
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
9 bytes
08       PHP
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #114
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
08       PHP
28       PLP
30 F9    BMI *-5
68       PLA
28       PLP
Writes in stack


156 cycles

5 bytes
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A9       LDA #122
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #122
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @zptemp, and @rts14; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9       LDA #115
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
68       PLA
98       TYA
48       PHA
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 3
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
EA       NOP
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA   ... NOP      × 2
10 F8    BPL *-6
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA   ... NOP      × 2
10 F8    BPL *-6
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
48   ... PHA      × 3
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
EA   ... NOP      × 3
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


157 cycles

5 bytes
A9       LDA #130
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 EA    LDY #234 ;hides 'NOP'
C8       INY
D0 FC    BNE *-2
Clobbers A, Y, S, and Z&N
68       PLA
A2 EA    LDX #234 ;hides 'NOP'
E8       INX
D0 FC    BNE *-2
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
A2 16    LDX #22
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
A0 16    LDY #22
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A0 0D    LDY #13
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and writes in stack
A2 0D    LDX #13
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and writes in stack
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #123
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #123
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
8C       TXA
48       PHA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #116
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 15    LDA #21
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


158 cycles

5 bytes
A9       LDA #131
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A2 1E    LDX #30
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1E    LDY #30
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A9       LDA #124
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #124
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9       LDA #117
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48   ... PHA      × 2
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
13 bytes
EA   ... NOP      × 2
48       PHA
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
EA   ... NOP      × 3
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
14 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


159 cycles

5 bytes
A9       LDA #132
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
A5 A5    LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #125
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #125
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts12
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
9 bytes
08       PHP
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts12
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
48   ... PHA      × 2
08       PHP
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 5
D0 F8    BNE *-6
Clobbers A, S, Z&N, and C; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts12
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #118
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
8C       TXA
48       PHA
A2 15    LDX #21
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


160 cycles

5 bytes
A9       LDA #133
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V
7 bytes
08       PHP
A0 EA    LDY #234 ;hides 'NOP'
C8       INY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 EA    LDX #234 ;hides 'NOP'
E8       INX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #126
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #126
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
38       SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #119
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
11 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
48       PHA
08       PHP
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
04 04    NOP $04
08       PHP
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
24 24    BIT $24
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


161 cycles

5 bytes
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
A9       LDA #134
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
E6 xx    INC @zptemp
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; and requires @zptemp
EA       NOP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #127
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #127
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
EA       NOP
A5 A5    LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
48       PHA
08       PHP
A2 1E    LDX #30
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 1E    LDY #30
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
A4 A4    LDY $A4
A0 1E    LDY #30
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 1E    LDX #30
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts12
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
08       PHP
48       PHA
A9       LDA #120
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts12
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
68       PLA
8C       TXA
48       PHA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; requires @rts14; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; requires @rts14; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts12
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
11 bytes
EA   ... NOP      × 2
8C       TXA
48       PHA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
28       PLP
Clobbers A; requires @rts14; and writes in stack
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
48   ... PHA      × 2
08       PHP
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA   ... NOP      × 2
10 F8    BPL *-6
68       PLA
28       PLP
Writes in stack


162 cycles

5 bytes
A9       LDA #135
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 17    LDX #23
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 17    LDY #23
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A9       LDA #128
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #128
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 16    LDY #22
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 16    LDX #22
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #121
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


163 cycles

5 bytes
A9       LDA #136
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #122
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp, and @rts14; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; requires @rts14; and writes in stack
12 bytes
EA       NOP
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA   ... NOP      × 2
10 F8    BPL *-6
68       PLA
28       PLP
Writes in stack


164 cycles

5 bytes
A9       LDA #137
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 F9    BCS *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #130
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #130
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 0D    LDX #13
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0D    LDY #13
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #123
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
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
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


165 cycles

5 bytes
A9       LDA #138
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
EA   ... NOP      × 2
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
EA   ... NOP      × 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #131
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #131
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #124
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
28       PLP
Requires @rts14; and writes in stack
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


166 cycles

5 bytes
A0 21    LDY #33
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #139
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
Clobbers A, S, Z&N, C, and V
E6 xx    INC @zptemp
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes
08       PHP
A9       LDA #132
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #132
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
Clobbers A, Z&N, C, and V
48       PHA
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
08       PHP
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A5 A5    LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
24 24    BIT $24
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #125
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts12
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts12
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


167 cycles

5 bytes
A2 18    LDX #24 ;hides 'CLC'
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 18    LDY #24 ;hides 'CLC'
88       DEY
D0 FC    BNE *-2
Clobbers Y, and Z&N
A9       LDA #140
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48   ... PHA      × 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
A9       LDA #133
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #133
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
Clobbers A, Z&N, C, and V; and requires @zptemp
68       PLA
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, S, and Z&N; and writes in stack
EA   ... NOP      × 3
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
EA   ... NOP      × 2
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #126
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


168 cycles

5 bytes
A9       LDA #141
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 21    LDY #33
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
A9       LDA #134
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #134
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
E6 xx    INC @zptemp
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; requires @zptemp; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #127
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
EA       NOP
A5 A5    LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA       NOP
24 24    BIT $24
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts12
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; requires @rts14; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts12
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
13 bytes
EA   ... NOP      × 2
48       PHA
8C       TXA
48       PHA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68       PLA
28       PLP
Requires @rts14; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


169 cycles

5 bytes
A9       LDA #142
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 18    LDX #24
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 18    LDY #24
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
68   ... PLA      × 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #135
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #135
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 17    LDY #23
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 17    LDX #23
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #128
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


170 cycles

5 bytes
A9       LDA #143
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 C8    LDY #200 ;hides 'INY'
C8   ... INY      × 2
D0 FB    BNE *-3
Clobbers Y, and Z&N
48       PHA
A2 18    LDX #24 ;hides 'CLC'
CA       DEX
D0 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
A2 5A    LDX #90 ;hides 'NOP'
E8   ... INX      × 2
10 FB    BPL *-3
Clobbers X, and Z&N; and requires support for unofficial opcodes
7 bytes
EA   ... NOP      × 2
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
A9       LDA #136
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #136
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


171 cycles

5 bytes
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #144
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #137
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #137
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
38       SEC
A9 18    LDA #24
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
48       PHA
08       PHP
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 F9    BCS *-5
28       PLP
Clobbers A; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 F9    BCS *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #130
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


172 cycles

5 bytes
A9       LDA #145
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 13    LDY #19
68       PLA
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, S, and Z&N
A2 13    LDX #19
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
7 bytes
A2 13    LDX #19
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N
A0 13    LDY #19
EA   ... NOP      × 2
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N
08       PHP
A9       LDA #138
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #138
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
68       PLA
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
68       PLA
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
9 bytes
8C       TXA
48       PHA
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
EA   ... NOP      × 2
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #131
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


173 cycles

5 bytes
A9       LDA #146
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
7 bytes
08       PHP
A0 21    LDY #33
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #139
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #139
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
68       PLA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
28       PLP
Clobbers A, S, and Z&N; and writes in stack
08       PHP
E6 xx    INC @zptemp
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; requires @zptemp, and support for unofficial opcodes; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; requires @zptemp, and support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #132
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 2
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
08       PHP
24 24    BIT $24
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


174 cycles

5 bytes
A2 E8    LDX #232 ;hides 'INX'
EA       NOP
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 98    LDY #152 ;hides 'TYA'
88       DEY
30 FC    BMI *-2
Clobbers A, Y, and Z&N
A9       LDA #147
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
08       PHP
A0 18    LDY #24 ;hides 'CLC'
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 18    LDX #24 ;hides 'CLC'
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A9       LDA #140
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #140
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
38       SEC
A9 13    LDA #19
EA   ... NOP      × 2
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
48   ... PHA      × 2
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 3
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #133
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
D0 F9    BNE *-5
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
08       PHP
E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
28       PLP
Clobbers A; requires @zptemp; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
28       PLP
Clobbers A, and S; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
EA   ... NOP      × 3
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA   ... NOP      × 3
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


175 cycles

5 bytes
A9       LDA #148
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
A9       LDA #141
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #141
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 21    LDY #33
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
EA       NOP
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts14
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
9 bytes
08       PHP
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #134
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
E6 xx    INC @zptemp
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
EA       NOP
24 24    BIT $24
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


176 cycles

5 bytes
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #149
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #142
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #142
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 18    LDY #24
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 18    LDX #24
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
20 xx xx JSR @rts15
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; requires @rts15, and support for unofficial opcodes; and writes in stack
9 bytes
A5 A5    LDA $A5
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
68   ... PLA      × 2
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #135
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
28       PLP
Writes in stack


177 cycles

5 bytes
A9       LDA #150
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 16    LDY #22
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 16    LDX #22
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 E8    LDX #232 ;hides 'INX'
EA       NOP
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 16    LDY #22
A5 A5    LDA $A5
88       DEY
D0 F9    BNE *-5
Clobbers A, Y, and Z&N
A0 16    LDY #22
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
Clobbers Y, Z&N, and C
A0 16    LDY #22
24 24    BIT $24
88       DEY
D0 F9    BNE *-5
Clobbers Y, Z&N, and V
A0 16    LDY #22
85 xx    STA @zptemp
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and requires @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires @zptemp
A0 16    LDY #22
04 04    NOP $04
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #143
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #143
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 C8    LDY #200 ;hides 'INY'
C8   ... INY      × 2
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
4C xx xx JMP *+3
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and not relocatable code
48       PHA
08       PHP
A2 18    LDX #24 ;hides 'CLC'
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X, and S; and writes in stack
08       PHP
A2 5A    LDX #90 ;hides 'NOP'
E8   ... INX      × 2
10 FB    BPL *-3
28       PLP
Clobbers X; requires support for unofficial opcodes; and writes in stack
9 bytes
8C       TXA
48       PHA
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #136
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


178 cycles

5 bytes
A9       LDA #151
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #144
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #144
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
8C       TXA
48       PHA
A2 18    LDX #24 ;hides 'CLC'
CA       DEX
D0 FC    BNE *-2
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
48       PHA
A9       LDA #137
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 18    LDA #24
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 F9    BCS *-5
68       PLA
28       PLP
Writes in stack


179 cycles

5 bytes
A9       LDA #152
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 15    LDY #21 ;hides 'ORA zp,X'
88       DEY ;first loop only
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, and Z&N
A2 15    LDX #21 ;hides 'ORA zp,X'
CA       DEX ;first loop only
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, and Z&N
A2 D8    LDX #216 ;hides 'CLD'
E8   ... INX      × 2
D0 FB    BNE *-3
Clobbers X, Z&N, and D
A0 D8    LDY #216 ;hides 'CLD'
C8   ... INY      × 2
D0 FB    BNE *-3
Clobbers Y, Z&N, and D
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
A0 14    LDY #20 ;hides 'NOP zp,X'
EA       NOP
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 14    LDX #20 ;hides 'NOP zp,X'
EA       NOP
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N; and requires support for unofficial opcodes
7 bytes
A6 A6    LDX $A6
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #145
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #145
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V; and requires @zptemp
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
08       PHP
A2 13    LDX #19
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
EA   ... NOP      × 2
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 16    LDA #22
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts14
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9       LDA #138
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
EA   ... NOP      × 2
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack


180 cycles

5 bytes
A9       LDA #153
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #146
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #146
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #139
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
E6 xx    INC @zptemp
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Requires @zptemp, and support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
12 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
28       PLP
Writes in stack


181 cycles

5 bytes
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #154
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A2 E8    LDX #232 ;hides 'INX'
EA       NOP
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 98    LDY #152 ;hides 'TYA'
88       DEY
30 FC    BMI *-2
28       PLP
Clobbers A, and Y; and writes in stack
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #147
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #147
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
38       SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
EA       NOP
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
08       PHP
28       PLP
08       PHP
A0 18    LDY #24 ;hides 'CLC'
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
A5 A5    LDA $A5
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #140
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
98       TYA
48       PHA
A0 C8    LDY #200 ;hides 'INY'
C8   ... INY      × 2
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 13    LDA #19
EA   ... NOP      × 2
E9 01    SBC #1
D0 F7    BNE *-7
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
EA   ... NOP      × 2
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
D0 F9    BNE *-5
68       PLA
28       PLP
Requires @rts14; and writes in stack
08       PHP
E6 xx    INC @zptemp
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
28       PLP
Requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
EA   ... NOP      × 3
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
18       CLC
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


182 cycles

5 bytes
A9       LDA #155
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
A0 EC    LDY #236 ;hides 'CPX abs'
E6 xx    INC @zptemp
C8       INY
D0 FA    BNE *-4
Clobbers Y, Z&N, and C; and requires @zptemp
48   ... PHA      × 2
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
08       PHP
A9       LDA #148
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #148
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #141
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


183 cycles

5 bytes
A9       LDA #156
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 1A    LDX #26
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 1A    LDY #26
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
08       PHP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #149
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #149
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts15
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts14
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts15
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @zptemp, and @rts15; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
20 xx xx JSR @rts12
D0 F8    BNE *-6
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts15
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #142
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP       \ × 2
28       PLP       /
18       CLC
D0 F7    BNE *-7
Clobbers A, Z&N, and C; and writes in stack
48       PHA
08       PHP
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
20 xx xx JSR @rts15
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; requires @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts15
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; requires @rts15, and support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A5 A5    LDA $A5
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
24 24    BIT $24
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
28       PLP
Writes in stack


184 cycles

5 bytes
A9       LDA #157
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #150
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #150
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A2 E8    LDX #232 ;hides 'INX'
EA       NOP
D0 FC    BNE *-2
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 98    LDY #152 ;hides 'TYA'
88       DEY
30 FC    BMI *-2
28       PLP
Clobbers A, Y, and S; and writes in stack
48       PHA
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A0 16    LDY #22
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 16    LDX #22
24 24    BIT $24
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #143
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
4C xx xx JMP *+3
D0 F9    BNE *-5
28       PLP
Clobbers A; writes in stack; and not relocatable code
EA       NOP
8C       TXA
48       PHA
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
4C xx xx JMP *+3
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; writes in stack; and not relocatable code
11 bytes
48       PHA
8C       TXA
48       PHA
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


185 cycles

5 bytes
A9       LDA #158
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 17    LDX #23
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A0 17    LDY #23
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
B0 FB    BCS *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
EA   ... NOP      × 2
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and requires @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #151
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #151
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #144
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 18    LDX #24 ;hides 'CLC'
CA       DEX
D0 FC    BNE *-2
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


186 cycles

5 bytes
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #159
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
A9       LDA #152
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #152
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 D8    LDY #216 ;hides 'CLD'
C8   ... INY      × 2
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 D8    LDX #216 ;hides 'CLD'
E8   ... INX      × 2
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
04 04    NOP $04
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
A5 A5    LDA $A5
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts15
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
08       PHP
48       PHA
A9       LDA #145
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68       PLA
8C       TXA
48       PHA
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
D0 F8    BNE *-6
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
38       SEC
A9 16    LDA #22
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


187 cycles

5 bytes
A9       LDA #160
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
B0 F9    BCS *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #153
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #153
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 F8    BCS *-6
Clobbers A, Z&N, C, and V; and requires @zptemp
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 F8    BCS *-6
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
8C       TXA
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #146
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


188 cycles

5 bytes
A9       LDA #161
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #154
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #154
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #147
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
08       PHP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
08       PHP
38       SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
EA       NOP
E9 01    SBC #1
D0 F9    BNE *-5
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'
EA       NOP
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A5 A5    LDA $A5
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
24 24    BIT $24
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 C8    LDY #200 ;hides 'INY'
C8   ... INY      × 2
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
EA   ... NOP      × 2
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
28       PLP
Writes in stack


189 cycles

5 bytes
A9       LDA #162
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
B0 FB    BCS *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #155
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #155
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
08       PHP
A0 EC    LDY #236 ;hides 'CPX abs'
E6 xx    INC @zptemp
C8       INY
D0 FA    BNE *-4
28       PLP
Clobbers Y; requires @zptemp; and writes in stack
EA   ... NOP      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and requires @zptemp
48   ... PHA      × 2
08       PHP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
EA   ... NOP      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
48       PHA
A9       LDA #148
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


190 cycles

5 bytes
A9       LDA #163
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 1B    LDY #27
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 1B    LDX #27
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
7 bytes
08       PHP
A9       LDA #156
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #156
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 1A    LDY #26
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1A    LDX #26
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #149
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts14
18       CLC
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts15
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @zptemp, and @rts15; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts15
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
12 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP       \ × 2
28       PLP       /
18       CLC
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, and C; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
20 xx xx JSR @rts15
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Requires @rts15, and support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
24 24    BIT $24
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


191 cycles

5 bytes
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #164
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #157
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #157
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack
48       PHA
08       PHP
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts12
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts15
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
A5 A5    LDA $A5
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts14
18       CLC
D0 F8    BNE *-6
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9       LDA #150
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
36 36    ROL $36,X
76 36    ROR $36,X
28       PLP
D0 F7    BNE *-7
Clobbers A, Z&N, and C; and writes in stack
68       PLA
8C       TXA
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA   ... NOP      × 2
8C       TXA
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4
68       PLA
28       PLP
Requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 3
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
4C xx xx JMP *+3
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack; and not relocatable code
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


192 cycles

5 bytes
A9       LDA #165
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
EA       NOP
A2 1B    LDX #27
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
A0 1B    LDY #27
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #158
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #158
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
38       SEC
A9 1B    LDA #27
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 17    LDX #23
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 FA    BCS *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #151
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1A    LDA #26
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1A    LDA #26
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


193 cycles

5 bytes
A9       LDA #166
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #159
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #159
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
48       PHA
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #152
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts12
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts15
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
48       PHA
08       PHP
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
04 04    NOP $04
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
04 04    NOP $04
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A5 A5    LDA $A5
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
24 24    BIT $24
48       PHA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
68       PLA
28       PLP
Requires @zptemp; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts14
18       CLC
D0 F8    BNE *-6
68       PLA
Clobbers S, Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
D0 F8    BNE *-6
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
28       PLP
Writes in stack


194 cycles

5 bytes
A9       LDA #167
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #160
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #160
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
EA       NOP
38       SEC
A9 1B    LDA #27
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
08       PHP
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
68       PLA
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #153
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
8C       TXA
48       PHA
A2 1A    LDX #26
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 17    LDY #23
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 F8    BCS *-6
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 F8    BCS *-6
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 F8    BCS *-6
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 F8    BCS *-6
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


195 cycles

5 bytes
A9       LDA #168
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #161
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #161
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #154
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
48       PHA
38       SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
EA       NOP
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
24 24    BIT $24
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


196 cycles

5 bytes
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #169
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #162
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #162
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
A5 A5    LDA $A5
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #155
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
68       PLA
8C       TXA
48       PHA
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 3
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
98       TYA
48       PHA
A0 17    LDY #23
A5 A5    LDA $A5
88       DEY
D0 F9    BNE *-5
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
28       PLP
Clobbers A; requires @zptemp; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 3
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
EA   ... NOP      × 2
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 FA    BCS *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


197 cycles

5 bytes
A9       LDA #170
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 1C    LDX #28
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 1C    LDY #28
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
08       PHP
A9       LDA #163
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #163
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 1B    LDY #27
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1B    LDX #27
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
68       PLA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
48       PHA
A9       LDA #156
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


198 cycles

5 bytes
A9       LDA #171
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A9       LDA #164
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #164
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #157
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
68       PLA
Clobbers Z&N, C, and V; requires @rts14; and writes in stack
48       PHA
08       PHP
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
08       PHP
A5 A5    LDA $A5
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts12
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts15
18       CLC
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
24 24    BIT $24
48       PHA
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
36 36    ROL $36,X
76 36    ROR $36,X
28       PLP
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA   ... NOP      × 2
48       PHA
8C       TXA
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4
68       PLA
28       PLP
Requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
14 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


199 cycles

5 bytes
A2 E8    LDX #232 ;hides 'INX'
48       PHA
D0 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
A9       LDA #172
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 E8    LDX #232 ;hides 'INX'
A5 A5    LDA $A5
D0 FB    BNE *-3
Clobbers A, X, and Z&N
A2 E8    LDX #232 ;hides 'INX'
A4 A4    LDY $A4
D0 FB    BNE *-3
Clobbers X, Y, and Z&N
A2 E8    LDX #232 ;hides 'INX'
C5 C5    CMP $C5
D0 FB    BNE *-3
Clobbers X, Z&N, and C
A2 E8    LDX #232 ;hides 'INX'
24 24    BIT $24
D0 FB    BNE *-3
Clobbers X, Z&N, and V
A2 E8    LDX #232 ;hides 'INX'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers X, and Z&N; and requires @zptemp
48       PHA
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
A2 E8    LDX #232 ;hides 'INX'
04 04    NOP $04
D0 FB    BNE *-3
Clobbers X, and Z&N; and requires support for unofficial opcodes
7 bytes
A6 A6    LDX $A6
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA   ... NOP      × 2
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #165
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #165
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
EA       NOP
08       PHP
A0 1B    LDY #27
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1B    LDX #27
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts15
18       CLC
D0 F8    BNE *-6
Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
20 xx xx JSR @rts14
D0 F8    BNE *-6
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #158
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1B    LDA #27
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1B    LDA #27
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
68       PLA
28       PLP
Requires @zptemp; and writes in stack
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 FA    BCS *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


200 cycles

5 bytes
A9       LDA #173
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #166
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #166
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
9 bytes
08       PHP
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #159
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
12 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts12
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts15
18       CLC
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
04 04    NOP $04
08       PHP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
24 24    BIT $24
48       PHA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


201 cycles

5 bytes
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #174
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #167
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #167
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A5 A5    LDA $A5
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
48       PHA
08       PHP
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #160
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
8C       TXA
48       PHA
A2 1B    LDX #27
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1B    LDA #27
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 1A    LDX #26
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 F8    BCS *-6
68       PLA
28       PLP
Requires @zptemp; and writes in stack
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 F8    BCS *-6
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


202 cycles

5 bytes
A9       LDA #175
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 E8    LDX #232 ;hides 'INX'
48       PHA
D0 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V
08       PHP
A9       LDA #168
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #168
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
9 bytes
98       TYA
48       PHA
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #161
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


203 cycles

5 bytes
A9       LDA #176
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #169
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #169
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #162
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
08       PHP
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
08       PHP
A5 A5    LDA $A5
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
24 24    BIT $24
48       PHA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
48   ... PHA      × 2
08       PHP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 17    LDY #23
A5 A5    LDA $A5
88       DEY
D0 F9    BNE *-5
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
68       PLA
28       PLP
Requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
EA   ... NOP      × 2
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 04    NOP $04
B0 FA    BCS *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
14 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


204 cycles

5 bytes
A9       LDA #177
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 1D    LDX #29
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 1D    LDY #29
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
08       PHP
A9       LDA #170
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #170
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 1C    LDY #28
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1C    LDX #28
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48   ... PHA      × 2
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
9 bytes
EA   ... NOP      × 3
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #163
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


205 cycles

5 bytes
A9       LDA #178
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #171
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #171
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #164
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
12 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
68       PLA
28       PLP
Requires @rts14; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
24 24    BIT $24
48       PHA
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


206 cycles

5 bytes
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #179
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A       TXS ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
08       PHP
A9       LDA #172
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #172
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 E8    LDX #232 ;hides 'INX'
24 24    BIT $24
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1D    LDA #29
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
48       PHA
08       PHP
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA   ... NOP      × 2
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA   ... NOP      × 2
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #165
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


207 cycles

5 bytes
A9       LDA #180
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 E9    LDX #233 ;hides 'SBC #imm'
24 EA    BIT $EA ;hides 'NOP'
E8       INX
D0 FA    BNE *-4
Clobbers A, X, Z&N, C, and V
A0 E9    LDY #233 ;hides 'SBC #imm'
24 EA    BIT $EA ;hides 'NOP'
C8       INY
D0 FA    BNE *-4
Clobbers A, Y, Z&N, C, and V
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
08       PHP
A9       LDA #173
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #173
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A6 A6    LDX $A6
A2 1D    LDX #29
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 1D    LDY #29
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
08       PHP
28       PLP
10 F8    BPL *-6
Clobbers A, Z&N, C, V, and D; and writes in stack
68       PLA
38       SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
EA       NOP
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #166
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


208 cycles

5 bytes
A9       LDA #181
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #174
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #174
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
48       PHA
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #167
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A5 A5    LDA $A5
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
24 24    BIT $24
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 1B    LDX #27
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


209 cycles

5 bytes
A9       LDA #182
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 1A    LDX #26
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A0 1A    LDY #26
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #175
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #175
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A       TXS ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
9 bytes
EA       NOP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
08       PHP
28       PLP
10 F8    BPL *-6
Clobbers A, Z&N, C, V, and D; and writes in stack
08       PHP
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
68       PLA
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, S, and Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
08       PHP
48       PHA
A9       LDA #168
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 2
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


210 cycles

5 bytes
A9       LDA #183
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #176
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #176
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #169
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
24 24    BIT $24
48       PHA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


211 cycles

5 bytes
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 2A    LDY #42
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #184
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #177
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #177
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 1D    LDY #29
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1D    LDX #29
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
48       PHA
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, S, Z&N, C, and V; and writes in stack
9 bytes
38       SEC
A9 1A    LDA #26
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #170
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48   ... PHA      × 2
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 3
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
EA   ... NOP      × 3
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 3
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


212 cycles

5 bytes
A9       LDA #185
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
08       PHP
A9       LDA #178
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #178
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #171
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


213 cycles

5 bytes
A9       LDA #186
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 2A    LDY #42
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #179
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #179
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #172
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1D    LDA #29
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1D    LDA #29
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA   ... NOP      × 2
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


214 cycles

5 bytes
A9       LDA #187
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 2A    LDY #42
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 2A    LDY #42
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
08       PHP
A9       LDA #180
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #180
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
A2 E9    LDX #233 ;hides 'SBC #imm'
24 EA    BIT $EA ;hides 'NOP'
E8       INX
D0 FA    BNE *-4
28       PLP
Clobbers A, and X; and writes in stack
08       PHP
A0 E9    LDY #233 ;hides 'SBC #imm'
24 EA    BIT $EA ;hides 'NOP'
C8       INY
D0 FA    BNE *-4
28       PLP
Clobbers A, and Y; and writes in stack
08       PHP
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #173
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
08       PHP
28       PLP
10 F8    BPL *-6
28       PLP
Clobbers A; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 1D    LDY #29
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 1D    LDX #29
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
08       PHP
28       PLP
10 F8    BPL *-6
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
11 bytes
EA       NOP
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


215 cycles

5 bytes
A9       LDA #188
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 18    LDX #24 ;hides 'CLC'
EA       NOP
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 18    LDY #24 ;hides 'CLC'
EA       NOP
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A9       LDA #181
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #181
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #174
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
24 24    BIT $24
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


216 cycles

5 bytes
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #189
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #182
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #182
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A0 1A    LDY #26
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1A    LDX #26
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
A5 A5    LDA $A5
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #175
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
68       PLA
8C       TXA
48       PHA
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
08       PHP
28       PLP
10 F8    BPL *-6
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
08       PHP
28       PLP
10 F8    BPL *-6
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
48   ... PHA      × 3
38       SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
12 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


217 cycles

5 bytes
A9       LDA #190
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 1B    LDY #27
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 1B    LDX #27
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A2 18    LDX #24
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N
A0 18    LDY #24
EA   ... NOP      × 2
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N
A0 12    LDY #18
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and writes in stack
A2 12    LDX #18
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and writes in stack
08       PHP
A9       LDA #183
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #183
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
68       PLA
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #176
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


218 cycles

6 bytes
A2 1F    LDX #31
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 1F    LDY #31
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A0 2A    LDY #42
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A9       LDA #184
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #184
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #177
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
08       PHP
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
08       PHP
38       SEC
A9 1A    LDA #26
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1A    LDA #26
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, C, and V; and writes in stack
12 bytes
48   ... PHA      × 2
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A       ROR A ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack


219 cycles

6 bytes
48       PHA
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A9       LDA #190
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A6 A6    LDX $A6
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
48       PHA
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
A9       LDA #185
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #185
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
38       SEC
A9 1B    LDA #27
48       PHA
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, S, Z&N, C, and V; and writes in stack
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes
9 bytes
38       SEC
A9 1B    LDA #27
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
08       PHP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48   ... PHA      × 2
08       PHP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
08       PHP
48       PHA
A9       LDA #178
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


220 cycles

6 bytes
68       PLA
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A9       LDA #189
20 xx xx JSR delay_a_25_clocks
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
48       PHA
A9       LDA #190
20 xx xx JSR delay_a_25_clocks
Clobbers A, S, Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
7 bytes
EA   ... NOP      × 2
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #186
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #186
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 2A    LDY #42
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
9 bytes
08       PHP
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #179
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


221 cycles

5 bytes
A0 2C    LDY #44
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 2C    LDX #44
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
6 bytes
68       PLA
A9       LDA #190
20 xx xx JSR delay_a_25_clocks
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #187
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #187
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A5 A5    LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
48       PHA
08       PHP
A0 2A    LDY #42
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A4 A4    LDY $A4
A0 2A    LDY #42
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #180
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
68       PLA
8C       TXA
48       PHA
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA   ... NOP      × 2
8C       TXA
48       PHA
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 3
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
08       PHP
28       PLP
10 F8    BPL *-6
68       PLA
28       PLP
Writes in stack


222 cycles

7 bytes
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48   ... PHA      × 2
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
08       PHP
A9       LDA #188
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #188
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 18    LDY #24 ;hides 'CLC'
EA       NOP
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 18    LDX #24 ;hides 'CLC'
EA       NOP
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
48       PHA
A9       LDA #181
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


223 cycles

6 bytes
EA       NOP
A2 2C    LDX #44
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 2C    LDY #44
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #189
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #189
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #182
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts14
18       CLC
D0 F7    BNE *-7
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
48       PHA
08       PHP
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
08       PHP
A5 A5    LDA $A5
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
24 24    BIT $24
48       PHA
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
08       PHP
28       PLP
10 F8    BPL *-6
68       PLA
28       PLP
Writes in stack


224 cycles

5 bytes
A2 E8    LDX #232 ;hides 'INX'
68       PLA
D0 FC    BNE *-2
Clobbers A, X, S, and Z&N
6 bytes
A2 E8    LDX #232 ;hides 'INX'
EA   ... NOP      × 2
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 98    LDY #152 ;hides 'TYA'
EA       NOP
88       DEY
30 FB    BMI *-3
Clobbers A, Y, and Z&N
A0 E4    LDY #228 ;hides 'CPX zp'
EA       NOP
C8       INY
D0 FB    BNE *-3
Clobbers Y, Z&N, C, and V
A0 64    LDY #100 ;hides 'NOP zp'
EA       NOP
C8       INY
10 FB    BPL *-3
Clobbers Y, and Z&N; and requires support for unofficial opcodes
7 bytes
08       PHP
A9       LDA #190
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #190
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
A0 12    LDY #18
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 12    LDX #18
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
48   ... PHA      × 2
10 F7    BPL *-7
Clobbers A, S, Z&N, C, V, and D; and writes in stack
08       PHP
48       PHA
A9       LDA #183
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
8C       TXA
48       PHA
EA       NOP
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
8C       TXA
48       PHA
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
28       PLP
Clobbers A; and writes in stack
12 bytes
08       PHP
EA       NOP
48       PHA
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


See also