Fixed cycle delay: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(Bugfix in macro branch_check (it is easy to mess up operator priority in macros))
(Separately marking those code samples that are unsafe for interrupts)
Line 8: Line 8:
Assumptions:
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 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.
* No interrupt / NMI occurs during the delay code. Code samples where an interrupt could cause a malfunction are separately indicated.


It is possible to verify on compile time that no page wrap occurs,
It is possible to verify on compile time that no page wrap occurs,
Line 53: Line 53:
* @rts15 means you know a memory address that contains a <code>JMP</code> that jumps to another location that contains <code>RTS</code>. Alternatively, it means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as <code>LDA $00</code>), followed by <code>RTS</code>.
* @rts15 means you know a memory address that contains a <code>JMP</code> that jumps to another location that contains <code>RTS</code>. Alternatively, it means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as <code>LDA $00</code>), followed by <code>RTS</code>.
* 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]].
* 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]].
* \"unsafe for interrupts\" means that even though the S register is not clobbered, the code will malfunction if an interrupt/NMI happens in the middle of the delay code.


{{#css:
{{#css:
Line 76: Line 77:
|-
|-
!colspan="2"|2 bytes
!colspan="2"|2 bytes
|-
|<pre>C5 C5    CMP $C5</pre>||Clobbers Z&N, and C
|-
|<pre>24 24    BIT $24</pre>||Clobbers Z&N, and V
|-
|-
|<pre>A5 A5    LDA $A5</pre>||Clobbers A, and Z&N
|<pre>A5 A5    LDA $A5</pre>||Clobbers A, and Z&N
Line 82: Line 87:
|-
|-
|<pre>A6 A6    LDX $A6</pre>||Clobbers X, and Z&N
|<pre>A6 A6    LDX $A6</pre>||Clobbers X, and Z&N
|-
|<pre>C5 C5    CMP $C5</pre>||Clobbers Z&N, and C
|-
|<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
Line 124: Line 125:
|-
|-
!colspan="2"|3 bytes
!colspan="2"|3 bytes
|-
|<pre>18      CLC
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8      CLV
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 133: Line 140:
|<pre>EA      NOP
|<pre>EA      NOP
A4 A4    LDY $A4</pre>||Clobbers Y, and Z&N
A4 A4    LDY $A4</pre>||Clobbers Y, and Z&N
|-
|<pre>18      CLC
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8      CLV
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 190: Line 191:
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|<pre>18  ... CLC      &times; 2
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 2
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 196: Line 203:
|<pre>A4 A4    LDY $A4
|<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
|-
|<pre>18  ... CLC      &times; 2
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 2
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 230: Line 231:
|<pre>BA      TSX
|<pre>BA      TSX
68      PLA
68      PLA
9A      TXS</pre>||Clobbers A, X, and Z&N
9A      TXS</pre>||Clobbers A, X, and Z&N; and unsafe for interrupts
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 301: Line 302:
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 24    BIT $24
24 24    BIT $24
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 431: Line 432:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N, and C
|-
|<pre>24 24    BIT $24
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N, and V
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 439: Line 448:
26 26    ROL $26
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Y, and Z&N
66 26    ROR $26</pre>||Clobbers Y, and Z&N
|-
|<pre>C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N, and C
|-
|<pre>24 24    BIT $24
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N, and V
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 457: Line 458:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18  ... CLC      &times; 5
|<pre>18  ... CLC      &times; 5
Line 467: Line 464:
|<pre>B8  ... CLV      &times; 5
|<pre>B8  ... CLV      &times; 5
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|<pre>4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 519: Line 520:
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|<pre>48      PHA
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
48      PHA
48      PHA
68  ... PLA      &times; 2</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 2</pre>||Clobbers A, S, and Z&N
|-
|<pre>48      PHA
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A5 A5    LDA $A5
20 xx xx JSR @rts12</pre>||Clobbers A, and Z&N; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 537: Line 535:
9A      TXS
9A      TXS
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>A4 A4    LDY $A4
20 xx xx JSR @rts12</pre>||Clobbers Y, and Z&N; requires @rts12; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 545: Line 540:
BA      TSX
BA      TSX
68      PLA
68      PLA
9A      TXS</pre>||Clobbers A, X, and Z&N
9A      TXS</pre>||Clobbers A, X, and Z&N; and unsafe for interrupts
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>C5 C5    CMP $C5
Line 552: Line 547:
|<pre>24 24    BIT $24
|<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
|-
|<pre>A5 A5    LDA $A5
20 xx xx JSR @rts12</pre>||Clobbers A, and Z&N; requires @rts12; and writes in stack
|-
|<pre>A4 A4    LDY $A4
20 xx xx JSR @rts12</pre>||Clobbers Y, and Z&N; requires @rts12; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts12</pre>||Requires @zptemp, and @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @zptemp, and @rts12; and writes in stack
|-
|<pre>48  ... PHA      &times; 5</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 04    NOP $04
|<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
|-
|<pre>48  ... PHA      &times; 5</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>C5 C5    CMP $C5
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N, and C
|-
|<pre>24 24    BIT $24
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 578: Line 587:
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Y, and Z&N
76 36    ROR $36,X</pre>||Clobbers Y, and Z&N
|-
|<pre>C5 C5    CMP $C5
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N, and C
|-
|<pre>24 24    BIT $24
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 634: Line 635:
|<pre>EA      NOP
|<pre>EA      NOP
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>C5 C5    CMP $C5
00 00    BRK 0</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>24 24    BIT $24
00 00    BRK 0</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>A5 A5    LDA $A5
Line 643: Line 650:
|<pre>A4 A4    LDY $A4
|<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 C5    CMP $C5
00 00    BRK 0</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>24 24    BIT $24
00 00    BRK 0</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
00 00    BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|<pre>68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 04    NOP $04
|<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
|-
|<pre>68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 708: Line 709:
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>E6 xx    INC @zptemp
20 xx xx JSR @rts12</pre>||Clobbers Z&N; requires @zptemp, and @rts12; and writes in stack
|-
|<pre>C5 C5    CMP $C5
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>24 24    BIT $24
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>A5 A5    LDA $A5
Line 717: Line 727:
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
20 xx xx JSR @rts14</pre>||Clobbers Y, and Z&N; requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Y, and Z&N; requires @rts12, and @rts14; and writes in stack
|-
|<pre>C5 C5    CMP $C5
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>24 24    BIT $24
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
20 xx xx JSR @rts12</pre>||Clobbers Z&N; requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts14</pre>||Requires @zptemp, @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @zptemp, @rts12, and @rts14; and writes in stack
|-
|<pre>04 04    NOP $04
20 xx xx JSR @rts14</pre>||Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 738: Line 742:
48      PHA
48      PHA
68  ... PLA      &times; 2</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 2</pre>||Clobbers A, S, and Z&N
|-
|<pre>04 04    NOP $04
20 xx xx JSR @rts14</pre>||Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 761: Line 762:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A4 A4   LDY $A4
C5 C5   CMP $C5
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Y, and Z&N
76 36    ROR $36,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A6 A6   LDX $A6
24 24   BIT $24
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers X, and Z&N
76 36    ROR $36,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
C5 C5   CMP $C5
A4 A4   LDY $A4
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N, and C
76 36    ROR $36,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
24 24   BIT $24
A6 A6   LDX $A6
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N, and V
76 36    ROR $36,X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 832: Line 833:
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>EA  ... NOP      &times; 2
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>C5 C5    CMP $C5
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>24 24    BIT $24
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and V; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>A5 A5    LDA $A5
Line 842: Line 852:
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>C5 C5   CMP $C5
|<pre>85 xx   STA @zptemp
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @zptemp, @rts12, and @rts15; and writes in stack
|-
|<pre>A9      LDA #0
20 xx xx JSR delay_256a_16_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks, and delay_256a_16_clocks
|-
|-
|<pre>24 24   BIT $24
|<pre>04 04   NOP $04
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and V; requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>18      CLC
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
90 00    BCC *+2
00 00    BRK 0</pre>||Clobbers C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>B8      CLV
20 xx xx JSR @rts15</pre>||Requires @zptemp, @rts12, and @rts15; and writes in stack
50 00   BVC *+2
00 00    BRK 0</pre>||Clobbers V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 865: Line 880:
A4 A4    LDY $A4
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>18      CLC
90 00    BCC *+2
00 00    BRK 0</pre>||Clobbers C; requires dummy interrupt handler; and writes in stack
|-
|<pre>B8      CLV
50 00    BVC *+2
00 00    BRK 0</pre>||Clobbers V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 878: Line 885:
00 00    BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
04 04    NOP $04
00 00    BRK 0</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 04    NOP $04
|<pre>48  ... PHA      &times; 2
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|<pre>EA      NOP
04 04    NOP $04
00 00    BRK 0</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|<pre>A9      LDA #0
20 xx xx JSR delay_256a_16_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks, and delay_256a_16_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 1,042: Line 1,043:
20 xx xx JSR @rts15</pre>||Clobbers Z&N; requires @zptemp, @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Z&N; requires @zptemp, @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
48      PHA
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts12, and @rts15; and writes in stack
|-
|<pre>68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
|-
!colspan="2"|6 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 A5    LDA $A5
48      PHA
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
!colspan="2"|6 bytes
A6 A6    LDX $A6
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts12, and @rts15; and writes in stack
|-
|<pre>EA      NOP
A4 A4    LDY $A4
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>BA      TSX
|<pre>BA      TSX
68  ... PLA      &times; 4
68  ... PLA      &times; 4
9A      TXS</pre>||Clobbers A, X, and Z&N
9A      TXS</pre>||Clobbers A, X, and Z&N; and unsafe for interrupts
|-
|<pre>EA  ... NOP      &times; 3
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 1,077: Line 1,069:
20 xx xx JSR @rts15</pre>||Clobbers V; requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers V; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 3
|<pre>EA       NOP
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
A5 A5    LDA $A5
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts12, and @rts15; and writes in stack
|-
|<pre>EA      NOP
A6 A6    LDX $A6
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts12, and @rts15; and writes in stack
|-
|<pre>EA      NOP
A4 A4    LDY $A4
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts15</pre>||Requires @zptemp, @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @zptemp, @rts12, and @rts15; and writes in stack
|-
|<pre>EA      NOP
04 04    NOP $04
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP      \ &times; 2
08      PHP      \ &times; 2
28      PLP      /</pre>||Clobbers S; and writes in stack
28      PLP      /</pre>||Clobbers S; and writes in stack
|-
|<pre>EA      NOP
04 04    NOP $04
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,132: Line 1,133:
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
Line 1,140: Line 1,145:
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>18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,234: Line 1,235:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
Line 1,245: Line 1,251:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
A9 2A    LDA #$2A ;hides 'ROL A'
68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,254: Line 1,258:
28      PLP
28      PLP
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|<pre>EA      NOP
68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
24 24    BIT $24
28      PLP
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,271: Line 1,267:
9A      TXS
9A      TXS
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
24 24    BIT $24
28      PLP
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,279: Line 1,280:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,285: Line 1,291:
76 36    ROR $36,X
76 36    ROR $36,X
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 1,301: Line 1,302:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>68  ... PLA      &times; 2
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
48      PHA
48      PHA
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>68  ... PLA      &times; 2
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,315: Line 1,316:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18  ... CLC      &times; 2
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,325: Line 1,330:
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>18  ... CLC      &times; 2
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,339: Line 1,340:
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
|-
|<pre>68      PLA
48      PHA
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48  ... PHA      &times; 2
48  ... PHA      &times; 2
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts12, and @rts15; and writes in stack
|-
|<pre>68      PLA
48      PHA
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,458: Line 1,459:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,465: Line 1,469:
66 26    ROR $26
66 26    ROR $26
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 1,497: Line 1,498:
00 00    BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>68       PLA
08       PHP
18       CLC
28      PLP
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts12, and @rts15; and writes in stack
90 FD    BCC *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
Line 1,511: Line 1,512:
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>68      PLA
A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 1,523: Line 1,519:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
18      CLC
A2 04   LDX #4
A9 2A   LDA #$2A ;hides 'ROL A'
CA      DEX
90 FD   BCC *-1</pre>||Clobbers A, S, Z&N, and C
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>48      PHA
08      PHP
28      PLP
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,536: Line 1,537:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>EA  ... NOP      &times; 2
24 24   BIT $24
18       CLC
28      PLP
A9 2A   LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
Line 1,557: Line 1,558:
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
|<pre>08       PHP
18       CLC
24 24   BIT $24
A9 2A   LDA #$2A ;hides 'ROL A'
28      PLP
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 1,566: Line 1,567:
28      PLP
28      PLP
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
A9      LDA #0
20 xx xx JSR delay_256a_16_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #0
20 xx xx JSR delay_256a_16_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,572: Line 1,583:
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
|-
|<pre>48  ... PHA      &times; 2
08      PHP
28      PLP
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,583: Line 1,589:
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 2
A9      LDA #0
08      PHP
20 xx xx JSR delay_256a_16_clocks
28      PLP
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|<pre>48      PHA
A9      LDA #0
20 xx xx JSR delay_256a_16_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,664: Line 1,665:
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A0 05    LDY #5
|<pre>A0 05    LDY #5
Line 1,672: Line 1,677:
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 1,724: Line 1,725:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #0
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 1,731: Line 1,735:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>A9      LDA #0
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>A5 A5    LDA $A5
|<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
|-
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 1,750: Line 1,751:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
18      CLC
10 FC    BPL *-2
10 FC    BPL *-2
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
18      CLC
10 FC    BPL *-2
10 FC    BPL *-2
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
Line 1,767: Line 1,768:
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48       PHA
|<pre>A0 82    LDY #130 ;hides 'NOP #imm'
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
04 EA    NOP $EA ;hides 'NOP'
88       DEY
30 FA    BMI *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|<pre>A2 82    LDX #130 ;hides 'NOP #imm'
04 EA    NOP $EA ;hides 'NOP'
CA      DEX
30 FA    BMI *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>68      PLA
|<pre>68      PLA
48      PHA
48      PHA
68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
|-
|<pre>48  ... PHA      &times; 2
A2 04    LDX #4
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 1,779: Line 1,792:
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
|<pre>48       PHA
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>EA   ... NOP     &times; 3
A2 04    LDX #4
A2 04    LDX #4
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, and Z&N
|-
|-
|<pre>A0 82   LDY #130 ;hides 'NOP #imm'
|<pre>EA  ... NOP      &times; 3
04 EA    NOP $EA ;hides 'NOP'
A0 04   LDY #4
88      DEY
88      DEY
30 FA   BMI *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 82   LDX #130 ;hides 'NOP #imm'
|<pre>24 24   BIT $24
04 EA    NOP $EA ;hides 'NOP'
20 xx xx JSR @rts12&times; 2</pre>||Clobbers Z&N, and V; requires @rts12; and writes in stack
CA      DEX
30 FA    BMI *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
Line 1,803: Line 1,817:
28      PLP</pre>||Clobbers X; requires @rts12; and writes in stack
28      PLP</pre>||Clobbers X; requires @rts12; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>85 xx   STA @zptemp
A0 04   LDY #4
20 xx xx JSR @rts12&times; 2</pre>||Requires @zptemp, and @rts12; and writes in stack
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>24 24    BIT $24
20 xx xx JSR @rts12&times; 2</pre>||Clobbers Z&N, and V; requires @rts12; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 1,821: Line 1,825:
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>85 xx   STA @zptemp
|<pre>04 04   NOP $04
20 xx xx JSR @rts12&times; 2</pre>||Requires @zptemp, and @rts12; and writes in stack
20 xx xx JSR @rts12&times; 2</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP      \ &times; 3
08      PHP      \ &times; 3
28      PLP      /</pre>||Clobbers S; and writes in stack
28      PLP      /</pre>||Clobbers S; and writes in stack
|-
|<pre>04 04    NOP $04
20 xx xx JSR @rts12&times; 2</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 1,896: Line 1,897:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #1
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,904: Line 1,908:
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>A9      LDA #1
!colspan="2"|6 bytes
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,918: Line 1,923:
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
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts14&times; 2</pre>||Requires @rts12, and @rts14; and writes in stack
|<pre>20 xx xx JSR @rts14&times; 2</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,945: Line 1,952:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>68   ... PLA     &times; 7</pre>||Clobbers A, S, and Z&N
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 1,955: Line 1,958:
28      PLP
28      PLP
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts12, and @rts15; and writes in stack
|-
|<pre>68  ... PLA      &times; 7</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,982: Line 1,983:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #2
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>48      PHA
|<pre>48      PHA
00 00... BRK 0    &times; 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A9      LDA #2
!colspan="2"|6 bytes
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
|<pre>18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
90 FC    BCC *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
Line 2,000: Line 2,006:
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>18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
90 FC    BCC *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|<pre>A5 A5    LDA $A5
00 00... BRK 0    &times; 2</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>C5 C5    CMP $C5
Line 2,018: Line 2,016:
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
|-
|-
|<pre>EA      NOP
|<pre>A5 A5    LDA $A5
00 00   BRK 0
00 00... BRK 0   &times; 2</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
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>EA      NOP
00 00    BRK 0
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
Line 2,044: Line 2,045:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,053: Line 2,061:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 03    LDX #3
A0 03    LDY #3
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
A0 03    LDY #3
A2 03    LDX #3
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>E6 xx    INC @zptemp
18      CLC
20 xx xx JSR @rts12&times; 2</pre>||Clobbers Z&N; requires @zptemp, and @rts12; and writes in stack
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>24 24    BIT $24
|<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
|-
|<pre>E6 xx    INC @zptemp
20 xx xx JSR @rts12&times; 2</pre>||Clobbers Z&N; requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 2,084: Line 2,085:
20 xx xx JSR @rts14</pre>||Requires @zptemp, @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @zptemp, @rts12, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>04 04    NOP $04
48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,093: Line 2,094:
68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 04    NOP $04
|<pre>EA      NOP
20 xx xx JSR @rts12
48      PHA
20 xx xx JSR @rts14</pre>||Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 2,182: Line 2,183:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #3
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>68      PLA
|<pre>68      PLA
00 00... BRK 0    &times; 2</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>A9      LDA #3
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 2,195: Line 2,196:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
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>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,206: Line 2,212:
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>EA       NOP
!colspan="2"|7 bytes
68      PLA
|-
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 2,222: Line 2,227:
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
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,231: Line 2,232:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
18  ... CLC      &times; 2
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,252: Line 2,259:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
18   ... CLC     &times; 2
68   ... PLA     &times; 7</pre>||Clobbers A, S, and Z&N
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|<pre>EA      NOP
68  ... PLA      &times; 7</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 2,294: Line 2,295:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
Line 2,302: Line 2,307:
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
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
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 2,340: Line 2,341:
00 00... BRK 0    &times; 2</pre>||Clobbers V; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Clobbers V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA      NOP
85 xx    STA @zptemp
00 00... BRK 0    &times; 2</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
00 00    BRK 0
00 00    BRK 0
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
85 xx   STA @zptemp
04 04   NOP $04
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 dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
20 xx xx JSR @rts14&times; 2</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14&times; 2</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
|-
|<pre>EA      NOP
04 04    NOP $04
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,496: Line 2,497:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
Line 2,509: Line 2,507:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>EA      NOP
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, and @rts15; 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'
EA      NOP
C8  ... INY      &times; 2
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 2,526: Line 2,537:
20 xx xx JSR @rts14&times; 2</pre>||Clobbers A, S, and Z&N; requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14&times; 2</pre>||Clobbers A, S, and Z&N; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>A2 FA    LDX #250 ;hides 'NOP'
!colspan="2"|8 bytes
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>A4 A4    LDY $A4
A0 04   LDY #4
EA      NOP
EA      NOP
C8  ... INY      &times; 2
88      DEY
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
|-
!colspan="2"|8 bytes
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 2,543: Line 2,550:
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>A4 A4    LDY $A4
A0 04    LDY #4
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 2,585: Line 2,586:
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>EA      NOP
48  ... PHA      &times; 2
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,596: Line 2,593:
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 2,633: Line 2,634:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18  ... CLC      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,643: Line 2,648:
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>18  ... CLC      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,653: Line 2,654:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,671: Line 2,678:
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>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,682: Line 2,683:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>24 24    BIT $24
20 xx xx JSR @rts15&times; 2</pre>||Clobbers Z&N, and V; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,690: Line 2,688:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>24 24    BIT $24
20 xx xx JSR @rts15&times; 2</pre>||Clobbers Z&N, and V; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
Line 2,779: Line 2,780:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
88      DEY
88      DEY
30 FC    BMI *-2</pre>||Clobbers Y, and Z&N
30 FC    BMI *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 2,804: Line 2,805:
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>48      PHA
A9      LDA #0
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #0
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,809: Line 2,820:
00 00    BRK 0
00 00    BRK 0
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,816: Line 2,832:
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
48  ... PHA      &times; 2
00 00... BRK 0    &times; 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
A9      LDA #0
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #0
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>C5 C5    CMP $C5
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, and @rts15; and writes in stack
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,846: Line 2,850:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>EA  ... NOP      &times; 2
48      PHA
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, and @rts15; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 4
|<pre>EA  ... NOP      &times; 4
Line 2,899: Line 2,900:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
88  ... DEY      &times; 2
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
Line 2,908: Line 2,905:
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>A0 88    LDY #136 ;hides 'DEY'
88  ... DEY      &times; 2
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 F8    LDX #248 ;hides 'SED'
|<pre>A2 F8    LDX #248 ;hides 'SED'
E8  ... INX      &times; 2
E8  ... INX      &times; 2
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and D
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and D
|-
|<pre>68      PLA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,918: Line 2,924:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1</pre>||Clobbers A, S, Z&N, and C
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 2,930: Line 2,936:
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
|<pre>48      PHA
18       CLC
A9      LDA #1
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08       PHP
A9       LDA #1
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,946: Line 2,957:
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #1
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
A9       LDA #1
48      PHA
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 FD    BPL *-1
|-
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 2,977: Line 2,984:
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>EA  ... NOP      &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,074: Line 3,075:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A2 07    LDX #7
|<pre>A2 07    LDX #7
Line 3,082: Line 3,087:
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>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 3,097: Line 3,098:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
A9       LDA #2
28       PLP
20 xx xx JSR delay_a_25_clocks
00 00... BRK 0    &times; 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,107: Line 3,108:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #2
08       PHP
20 xx xx JSR delay_a_25_clocks
28      PLP
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
00 00... BRK 0    &times; 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
90 FC    BCC *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,133: Line 3,141:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
90 FC    BCC *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,195: Line 3,196:
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; requires dummy interrupt handler; and writes in stack
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,211: Line 3,217:
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|7 bytes
|-
|<pre>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
Line 3,228: Line 3,234:
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #3
18       CLC
20 xx xx JSR delay_a_25_clocks
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
00 00    BRK 0
10 FA    BPL *-4</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,243: Line 3,244:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
A9       LDA #3
EA      NOP ;first loop only
20 xx xx JSR delay_a_25_clocks
00 00    BRK 0
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 3,258: Line 3,259:
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
|-
|<pre>48  ... PHA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 3,265: Line 3,271:
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 3
!colspan="2"|9 bytes
|-
|<pre>EA   ... NOP     &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 3,291: Line 3,298:
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>EA  ... NOP      &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,388: Line 3,389:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA      NOP ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,398: Line 3,404:
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>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA      NOP ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 3,410: Line 3,411:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,428: Line 3,440:
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>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
Line 3,487: Line 3,488:
|-
|-
|<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,493: Line 3,499:
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 A4    LDY $A4
|<pre>A4 A4    LDY $A4
Line 3,505: Line 3,511:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>48      PHA
A2 07    LDX #7
A9      LDA #5
CA       DEX
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,514: Line 3,520:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #5
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 3,549: Line 3,550:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>48       PHA
20 xx xx JSR @rts12&times; 2</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|<pre>08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
18      CLC
18      CLC
10 FA    BPL *-4
10 FA    BPL *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
18      CLC
18      CLC
10 FA    BPL *-4
10 FA    BPL *-4
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,573: Line 3,571:
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>20 xx xx JSR @rts15
08      PHP
20 xx xx JSR @rts12&times; 2</pre>||Requires @rts12, and @rts15; and writes in stack
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 05    LDY #5
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,600: Line 3,587:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 05    LDY #5
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 3,623: Line 3,624:
28      PLP
28      PLP
20 xx xx JSR @rts14&times; 2</pre>||Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14&times; 2</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
20 xx xx JSR @rts12&times; 3</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
48      PHA
48      PHA
68  ... PLA      &times; 8</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 8</pre>||Clobbers A, S, and Z&N
|-
|<pre>48      PHA
20 xx xx JSR @rts12&times; 3</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 3,721: Line 3,722:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA      NOP ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 3,732: Line 3,739:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
38       SEC
A9       LDA #6
A9 69    LDA #$69 ;hides 'ADC #$EA'
20 xx xx JSR delay_a_25_clocks
EA       NOP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A9      LDA #6
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>00 00... BRK 0    &times; 2
|<pre>00 00... BRK 0    &times; 2
Line 3,747: Line 3,758:
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, and C
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #6
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #6
18  ... CLC      &times; 2
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
90 FD    BCC *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>EA  ... NOP      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,767: Line 3,779:
|<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
18  ... CLC      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>00 00... BRK 0    &times; 2
|<pre>00 00... BRK 0    &times; 2
Line 3,831: Line 3,832:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
Line 3,840: Line 3,845:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18       CLC
!colspan="2"|7 bytes
|-
|<pre>48       PHA
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
18      CLC
|-
10 FC   BPL *-2
!colspan="2"|7 bytes
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,857: Line 3,864:
30 FC    BMI *-2
30 FC    BMI *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,888: Line 3,889:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #0
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,896: Line 3,904:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #0
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 3,982: Line 3,983:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #15
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>A9      LDA #15
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 4,014: Line 4,015:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #8
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #8
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 4,028: Line 4,039:
00 00... BRK 0    &times; 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #8
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #8
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR delay_a_25_clocks
08      PHP
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28      PLP
|-
10 FB    BPL *-3
!colspan="2"|8 bytes
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,046: Line 4,054:
10 FB    BPL *-3
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A2 F8    LDX #248 ;hides 'SED'
E8  ... INX      &times; 2
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
88  ... DEY      &times; 2
30 FB    BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 4,069: Line 4,065:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 2A   LDA #$2A ;hides 'ROL A'
A0 88   LDY #136 ;hides 'DEY'
08      PHP
88  ... DEY      &times; 2
28      PLP
30 FB    BMI *-3
10 FB    BPL *-3
28      PLP</pre>||Clobbers Y; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A2 F8    LDX #248 ;hides 'SED'
E8  ... INX      &times; 2
D0 FB    BNE *-3
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>24 24    BIT $24
|<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
|-
|<pre>85 xx    STA @zptemp
00 00... BRK 0    &times; 3</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
00 00... BRK 0    &times; 2
00 00... BRK 0    &times; 2
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
|-
|<pre>85 xx    STA @zptemp
00 00... BRK 0    &times; 3</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
Line 4,095: Line 4,096:
|-
|-
|<pre>20 xx xx JSR @rts14&times; 3</pre>||Requires @rts12, and @rts14; and writes in stack
|<pre>20 xx xx JSR @rts14&times; 3</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>EA      NOP
00 00... BRK 0    &times; 2
08      PHP      \ &times; 2
28      PLP      /</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,107: Line 4,103:
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>EA      NOP
00 00... BRK 0    &times; 2
08      PHP      \ &times; 2
28      PLP      /</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 4,144: Line 4,145:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #16
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>A9      LDA #16
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 06    LDY #6
|<pre>EA   ... NOP     &times; 2
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
88      DEY
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
Line 4,164: Line 4,164:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>A0 06    LDY #6
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
B0 FC    BCS *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,187: Line 4,194:
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>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
B0 FC    BCS *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 4,303: Line 4,304:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
Line 4,308: Line 4,314:
88      DEY
88      DEY
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,326: Line 4,327:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #10
A9      LDA #10
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #10
A9      LDA #10
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
08       PHP
48       PHA
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; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
00 00... BRK 0    &times; 3</pre>||Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 3</pre>||Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,366: Line 4,373:
30 FC    BMI *-2
30 FC    BMI *-2
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,378: Line 4,379:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>C5 C5    CMP $C5
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,400: Line 4,408:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #3
18      CLC
20 xx xx JSR delay_a_25_clocks
10 FC    BPL *-2
68      PLA
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,424: Line 4,432:
50 00    BVC *+2
50 00    BVC *+2
00 00... BRK 0    &times; 3</pre>||Clobbers V; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 3</pre>||Clobbers V; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
85 xx    STA @zptemp
00 00... BRK 0    &times; 3</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
00 00... BRK 0    &times; 2
00 00... BRK 0    &times; 2
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack
|-
|<pre>EA      NOP
85 xx    STA @zptemp
00 00... BRK 0    &times; 3</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,437: Line 4,445:
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
|-
|-
|<pre>08      PHP
!colspan="2"|10 bytes
48      PHA
A9      LDA #3
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>EA      NOP
20 xx xx JSR @rts14&times; 3</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|<pre>EA      NOP
20 xx xx JSR @rts14&times; 3</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 4,506: Line 4,507:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 4,517: Line 4,523:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA       NOP
!colspan="2"|7 bytes
68      PLA
|-
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 4,534: Line 4,539:
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
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #11
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,542: Line 4,548:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #11
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$EA'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
EA      NOP ;first loop only
|-
10 FA    BPL *-4
!colspan="2"|8 bytes
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,570: Line 4,578:
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>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA      NOP ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 4,671: Line 4,672:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,686: Line 4,682:
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
|-
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 4,731: Line 4,732:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,742: Line 4,739:
10 F9    BPL *-5
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N; requires @rts12, and @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N; requires @rts12, and @rts14; and writes in stack
|-
|<pre>EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 4,798: Line 4,799:
9A      TXS
9A      TXS
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; and unsafe for interrupts
|-
|-
|<pre>A2 08    LDX #8
|<pre>A2 08    LDX #8
Line 4,805: Line 4,806:
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>00 00    BRK 0
|<pre>48      PHA
A0 88    LDY #136 ;hides 'DEY'
A9      LDA #13
88       DEY
20 xx xx JSR delay_a_25_clocks
30 FC    BMI *-2</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #13
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 4,814: Line 4,820:
18      CLC
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>00 00    BRK 0
A0 88    LDY #136 ;hides 'DEY'
88      DEY
30 FC    BMI *-2</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 4,837: Line 4,848:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #13
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A5 A5    LDA $A5
A9       LDA #13
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
EA      NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
18       CLC
|-
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 4,872: Line 4,879:
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>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 4,887: Line 4,888:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA      NOP ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,910: Line 4,919:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48      PHA
48      PHA
38       SEC
A9       LDA #6
A9 69    LDA #$69 ;hides 'ADC #$EA'
20 xx xx JSR delay_a_25_clocks
EA      NOP ;first loop only
68      PLA
10 FA    BPL *-4
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,932: Line 4,940:
48  ... PHA      &times; 2
48  ... PHA      &times; 2
00 00... BRK 0    &times; 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #6
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 5,037: Line 5,038:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,055: Line 5,068:
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>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 5,113: Line 5,114:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
Line 5,118: Line 5,124:
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
|-
!colspan="2"|7 bytes
|-
|-
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
24 24    BIT $24
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
90 FB   BCC *-3</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|7 bytes
|-
|<pre>A6 A6    LDX $A6
A2 09    LDX #9
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 5,137: Line 5,138:
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>A6 A6    LDX $A6
A9 0A   LDA #$0A ;hides 'ASL A'
A2 09   LDX #9
24 24    BIT $24
CA      DEX
90 FB    BCC *-3</pre>||Clobbers A, Z&N, C, and V
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 5,148: Line 5,149:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
A9      LDA #15
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
D0 FD   BNE *-1
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>08      PHP
A9      LDA #15
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
90 FB   BCC *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 5,163: Line 5,173:
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>18       CLC
|<pre>48       PHA
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04   NOP $04
D0 FD   BNE *-1
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>08      PHP
A9      LDA #15
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #15
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>C5 C5    CMP $C5
Line 5,196: Line 5,191:
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
|-
|<pre>08      PHP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 5,205: Line 5,206:
F6 xx    INC @zptemp,X
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #8
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 5,224: Line 5,232:
28      PLP
28      PLP
00 00... BRK 0    &times; 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #8
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 5,325: Line 5,326:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A2 07   LDX #7
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
EA      NOP
EA      NOP
CA      DEX
B0 FB   BCS *-3</pre>||Clobbers A, Z&N, C, and V
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 07    LDY #7
|<pre>A0 07    LDY #7
Line 5,335: Line 5,336:
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$2A'
|<pre>A2 07   LDX #7
2A      ROL A ;first loop only
EA      NOP
EA      NOP
B0 FB   BCS *-3</pre>||Clobbers A, Z&N, C, and V
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,345: Line 5,346:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
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>48      PHA
A9      LDA #16
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #16
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>68  ... PLA      &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 5,352: Line 5,368:
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>68   ... PLA     &times; 2
!colspan="2"|8 bytes
|-
|<pre>EA   ... NOP     &times; 2
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A9       LDA #16
68       PLA
20 xx xx JSR delay_a_25_clocks
48      PHA
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
|-
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|<pre>48      PHA
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 5,388: Line 5,401:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 5,442: Line 5,443:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A0 0A   LDY #10
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
88       DEY
0A       ASL A ;first loop only
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
30 FC   BMI *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A2 0A    LDX #10
|<pre>A2 0A    LDX #10
Line 5,450: Line 5,451:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|<pre>A0 0A   LDY #10
0A       ASL A ;first loop only
88       DEY
30 FC   BMI *-2</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,460: Line 5,461:
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 3
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #17
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,468: Line 5,470:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>68  ... PLA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #17
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
EA      NOP
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
18      CLC
10 FB    BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,489: Line 5,502:
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
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
10 FB    BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,517: Line 5,518:
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>20 xx xx JSR @rts12
00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler, and @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,527: Line 5,525:
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>20 xx xx JSR @rts12
00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler, and @rts12; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 5,626: Line 5,627:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #25
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 FD    BMI *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A9      LDA #25
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 5,645: Line 5,646:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA      NOP ;first loop only
EA      NOP
10 F9    BPL *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,651: Line 5,658:
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>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA      NOP ;first loop only
EA      NOP
10 F9    BPL *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18       CLC
A9       LDA #18
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,670: Line 5,670:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #18
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
48      PHA
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 5,682: Line 5,683:
|-
|-
|<pre>00 00... BRK 0    &times; 4</pre>||Requires dummy interrupt handler; and writes in stack
|<pre>00 00... BRK 0    &times; 4</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 3
Line 5,699: Line 5,694:
18      CLC
18      CLC
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, and C
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA  ... NOP      &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>18      CLC
A9 4A    LDA #$4A ;hides 'LSR A'
36 36    ROL $36,X
76 36    ROR $36,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 5,721: Line 5,734:
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>EA  ... NOP      &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>18      CLC
A9 4A    LDA #$4A ;hides 'LSR A'
36 36    ROL $36,X
76 36    ROR $36,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,779: Line 5,780:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #26
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 5,784: Line 5,788:
30 FD    BMI *-1</pre>||Clobbers A, Y, S, and Z&N
30 FD    BMI *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A9      LDA #26
!colspan="2"|6 bytes
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
|<pre>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,798: Line 5,804:
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>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
Line 5,826: Line 5,827:
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>68       PLA
|<pre>48       PHA
18       CLC
A9       LDA #19
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,837: Line 5,837:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>68      PLA
A9       LDA #19
18       CLC
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
48      PHA
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 5,938: Line 5,939:
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,953: Line 5,958:
88      DEY
88      DEY
30 FB    BMI *-3</pre>||Clobbers A, Y, S, and Z&N
30 FB    BMI *-3</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA     &times; 2
EA   ... NOP     &times; 2
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
18      CLC
|-
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C
!colspan="2"|7 bytes
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 5,970: Line 5,976:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
EA  ... NOP      &times; 2
A9       LDA #20
18       CLC
20 xx xx JSR delay_a_25_clocks
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,979: Line 5,985:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #20
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 6,001: Line 6,002:
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 X; and writes in stack
28      PLP</pre>||Clobbers A, and X; writes in stack; and unsafe for interrupts
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,009: Line 6,010:
F6 xx    INC @zptemp,X
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #13
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
00 00... BRK 0    &times; 4</pre>||Requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 4</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
48  ... PHA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,022: Line 6,036:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A0 08    LDY #8
A2 08    LDX #8
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
08      PHP
08      PHP
A2 08    LDX #8
A0 08    LDY #8
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>EA      NOP
!colspan="2"|10 bytes
48  ... PHA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>C5 C5    CMP $C5
48      PHA
48      PHA
A9       LDA #13
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
EA      NOP
68      PLA
18      CLC
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
10 FB    BPL *-3
|-
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,070: Line 6,079:
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>C5 C5    CMP $C5
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
10 FB    BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 6,158: Line 6,159:
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #21
A9      LDA #21
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #21
A9      LDA #21
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 6,289: Line 6,290:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 6,299: Line 6,296:
30 FC    BMI *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
30 FC    BMI *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>18      CLC
|<pre>A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
48  ... PHA      &times; 2
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>48      PHA
A9      LDA #22
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,309: Line 6,310:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9       LDA #22
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48  ... PHA      &times; 2
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 6,330: Line 6,331:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
08      PHP
28      PLP
90 FB    BCC *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,345: Line 6,354:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>08      PHP
18       CLC
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9       LDA #15
08       PHP
20 xx xx JSR delay_a_25_clocks
28      PLP
68       PLA
90 FB    BCC *-3
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,360: Line 6,368:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #15
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 6,407: Line 6,408:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
Line 6,418: Line 6,424:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18       CLC
!colspan="2"|7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
|-
18       CLC
|<pre>48       PHA
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
A9       LDA #23
|-
20 xx xx JSR delay_a_25_clocks
!colspan="2"|7 bytes
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,429: Line 6,435:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #23
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
20 xx xx JSR delay_a_25_clocks
2A      ROL A ;first loop only
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
EA      NOP
|-
B0 FB    BCS *-3
!colspan="2"|8 bytes
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,457: Line 6,465:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 6,570: Line 6,571:
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>38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,576: Line 6,582:
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>38       SEC
!colspan="2"|7 bytes
A9 EB   LDA #$EB ;hides 'SBC #$1A'
|-
1A       NOP ;first loop only
|<pre>48       PHA
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC   BMI *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,600: Line 6,612:
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>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
30 FC    BMI *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 6,676: Line 6,677:
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>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,686: Line 6,692:
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>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 6,703: Line 6,704:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 6,713: Line 6,719:
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
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
A9       LDA #25
A0 88    LDY #136 ;hides 'DEY'
20 xx xx JSR delay_a_25_clocks
30 FD    BMI *-1
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,731: Line 6,731:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #25
08       PHP
20 xx xx JSR delay_a_25_clocks
A0 88    LDY #136 ;hides 'DEY'
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
30 FD    BMI *-1
28       PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 6,744: Line 6,745:
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
08       PHP
48       PHA
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; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
D0 FD    BNE *-1
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
A9 69    LDA #$69 ;hides 'ADC #$EA'
Line 6,763: Line 6,764:
EA      NOP
EA      NOP
10 F9    BPL *-5
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA      NOP ;first loop only
EA      NOP
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,772: Line 6,781:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA      NOP ;first loop only
EA      NOP
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,922: Line 6,923:
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>48      PHA
48      PHA
A9       LDA #26
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A9      LDA #26
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,934: Line 6,939:
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
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A9       LDA #26
48      PHA
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #26
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
0A      ASL A ;first loop only
30 FA    BMI *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>EA      NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,966: Line 6,980:
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>EA      NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
30 FA    BMI *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,062: Line 7,063:
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
68       PLA
A9       LDA #27
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,073: Line 7,073:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9       LDA #27
68      PLA
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 7,090: Line 7,091:
30 FD    BMI *-1
30 FD    BMI *-1
28      PLP</pre>||Clobbers Y; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers Y; requires @zptemp; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
30 FC    BMI *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,112: Line 7,119:
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
!colspan="2"|9 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
30 FC    BMI *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,128: Line 7,136:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 A6    LDX $A6
A4 A4    LDY $A4
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
Line 7,141: Line 7,142:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A6 A6    LDX $A6
EA  ... NOP      &times; 2
A2 0A    LDX #10
18       CLC
CA       DEX
10 FA   BPL *-4
D0 FB   BNE *-3
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,278: Line 7,279:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,296: Line 7,309:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 7,325: Line 7,326:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>EA      NOP
68      PLA
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,332: Line 7,339:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|8 bytes
68      PLA
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
|<pre>EA  ... NOP      &times; 3
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 7,344: Line 7,350:
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 0B    LDX #11
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,401: Line 7,402:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #36
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>A9      LDA #36
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 7,430: Line 7,431:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,443: Line 7,453:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
4C xx xx JMP *+3
A9       LDA #29
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>08       PHP
A9 0C    LDA #12
A9       LDA #29
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 2
|<pre>68  ... PLA      &times; 2
Line 7,456: Line 7,467:
18      CLC
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>08      PHP
A9      LDA #29
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #29
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA  ... NOP      &times; 2
10 FD    BPL *-1
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
08      PHP
28      PLP
10 FB   BPL *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA  ... NOP      &times; 4
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>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</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 FA    BPL *-4
10 FA    BPL *-4
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 FA    BPL *-4
10 FA    BPL *-4
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>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</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #22
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
30 FC    BMI *-2
68      PLA
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
Line 7,508: Line 7,522:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
48   ... PHA     &times; 2
08      PHP
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
30 FC    BMI *-2
30 FC    BMI *-2
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48   ... PHA     &times; 2
48       PHA
08      PHP
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
30 FC    BMI *-2
30 FC    BMI *-2
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 7,527: Line 7,541:
10 FB    BPL *-3
10 FB    BPL *-3
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #22
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 7,543: Line 7,550:
18      CLC
18      CLC
10 FA    BPL *-4
10 FA    BPL *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 7,551: Line 7,558:
18      CLC
18      CLC
10 FA    BPL *-4
10 FA    BPL *-4
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 7,657: Line 7,664:
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
48  ... PHA      &times; 2
A9       LDA #30
18       CLC
20 xx xx JSR delay_a_25_clocks
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,667: Line 7,674:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #30
48  ... PHA      &times; 2
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,694: Line 7,708:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,734: Line 7,741:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
Line 7,744: Line 7,756:
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 7,767: Line 7,774:
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #31
04 04    NOP $04
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,777: Line 7,784:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9       LDA #31
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
04 04    NOP $04
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,797: Line 7,815:
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
Line 7,808: Line 7,821:
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
38      SEC
38      SEC
A9 0C   LDA #12
A9 EB   LDA #$EB ;hides 'SBC #$1A'
E9 01    SBC #1
1A      NOP ;first loop only
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
B0 FA   BCS *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>00 00... BRK 0    &times; 2
|<pre>00 00... BRK 0    &times; 2
Line 7,818: Line 7,839:
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
D0 FC    BNE *-2
D0 FC    BNE *-2
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,882: Line 7,889:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #32
A9      LDA #32
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #32
A9      LDA #32
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
10 FB    BPL *-3
10 FB    BPL *-3
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
10 FB    BPL *-3
10 FB    BPL *-3
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,996: Line 8,003:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #33
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #33
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
Line 8,007: Line 8,024:
D0 F9    BNE *-5</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #33
|-
20 xx xx JSR delay_a_25_clocks
|<pre>18       CLC
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
|-
EA  ... NOP      &times; 3
|<pre>48       PHA
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C
A9       LDA #33
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 8,030: Line 8,042:
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 8,059: Line 8,066:
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
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 8,074: Line 8,074:
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
48      PHA
E6 xx    INC @zptemp
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48   ... PHA     &times; 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #26
18      CLC
20 xx xx JSR delay_a_25_clocks
D0 FC    BNE *-2
68      PLA
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
1A      NOP ;first loop only
B0 FA    BCS *-4
B0 FA    BCS *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
1A      NOP ;first loop only
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
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
48      PHA
A9       LDA #26
08      PHP
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
68      PLA
18      CLC
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 8,146: Line 8,153:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,159: Line 8,171:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 0D    LDA #13
A9       LDA #34
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #34
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 8,174: Line 8,191:
48      PHA
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A9      LDA #34
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #34
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 8,194: Line 8,201:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 8,200: Line 8,207:
28      PLP
28      PLP
10 FB    BPL *-3
10 FB    BPL *-3
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 8,208: Line 8,215:
28      PLP
28      PLP
10 FB    BPL *-3
10 FB    BPL *-3
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,265: Line 8,272:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 8,277: Line 8,290:
28      PLP</pre>||Clobbers X, and Y; and writes in stack
28      PLP</pre>||Clobbers X, and Y; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
08      PHP
A9       LDA #35
28       PLP
20 xx xx JSR delay_a_25_clocks
18      CLC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,287: Line 8,299:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #35
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 8,346: Line 8,353:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
68       PLA
A9       LDA #36
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,357: Line 8,363:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #36
68      PLA
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,377: Line 8,390:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
85 xx    STA @zptemp
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
D0 FB   BNE *-3
|-
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|<pre>EA      NOP
38      SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,393: Line 8,401:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>20 xx xx JSR @rts15
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx   STA @zptemp
04 04   NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,412: Line 8,419:
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18      CLC
D0 FB   BNE *-3
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 0C    LDA #12
A9 0C    LDA #12
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,433: Line 8,440:
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 0C    LDA #12
A9 0C    LDA #12
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,449: Line 8,456:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD   BPL *-1
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
28      PLP
D0 FD    BNE *-1
10 FB   BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,475: Line 8,475:
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>08      PHP
A9 09    LDA #$09 ;hides 'ORA #$EA'
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA      NOP ;first loop only
00 00... BRK 0    &times; 2
00 00... BRK 0    &times; 2
Line 8,510: Line 8,518:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0E    LDY #14
|<pre>A0 0E    LDY #14
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 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #44
|<pre>A9      LDA #44
Line 8,531: Line 8,539:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #37
A9      LDA #37
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #37
A9      LDA #37
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 8,559: Line 8,567:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
B0 FA    BCS *-4
B0 FA    BCS *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
B0 FA    BCS *-4
B0 FA    BCS *-4
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,630: Line 8,638:
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
A2 0D    LDX #13
A9      LDA #38
CA       DEX
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,640: Line 8,648:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
A9      LDA #38
A2 0D    LDX #13
20 xx xx JSR delay_a_25_clocks
CA      DEX
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 8,657: Line 8,665:
28      PLP
28      PLP
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,664: Line 8,677:
30 FC    BMI *-2
30 FC    BMI *-2
28      PLP</pre>||Clobbers X, Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, Y, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 8,694: Line 8,702:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 FB    BNE *-3
D0 FB    BNE *-3
68       PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9      LDA #31
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
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
68       PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #31
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 0C    LDA #12
A9 0C    LDA #12
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,745: Line 8,753:
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
|-
|<pre>EA      NOP
08      PHP
38      SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,753: Line 8,769:
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 0C   LDA #12
A9 EB   LDA #$EB ;hides 'SBC #$1A'
E9 01    SBC #1
1A      NOP ;first loop only
D0 F9   BNE *-5
B0 FA   BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>00 00... BRK 0    &times; 2
|<pre>00 00... BRK 0    &times; 2
Line 8,775: Line 8,792:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 8,825: Line 8,833:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 0D    LDY #13
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 8,851: Line 8,847:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0D    LDY #13
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9      LDA #39
A9      LDA #39
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #39
A9      LDA #39
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>08      PHP
08       PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #32
85 xx   STA @zptemp
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Clobbers A, and S; requires @zptemp; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 8,878: Line 8,886:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04   NOP $04
85 xx   STA @zptemp
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 @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 8,888: Line 8,896:
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
|-
|-
|<pre>08      PHP
|<pre>48      PHA
48      PHA
08      PHP
A9       LDA #32
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
04 04    NOP $04
68      PLA
D0 FB    BNE *-3
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 8,917: Line 8,925:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,922: Line 8,935:
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 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 8,941: Line 8,949:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #40
EA      NOP
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,952: Line 8,959:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #40
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
EA      NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
18       CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 8,986: Line 8,994:
F6 xx    INC @zptemp,X
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #33
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 09    LDY #9
A2 09    LDX #9
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
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 09    LDX #9
A0 09    LDY #9
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,017: Line 9,032:
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
|-
|-
|<pre>08      PHP
!colspan="2"|10 bytes
48      PHA
A9      LDA #33
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,048: Line 9,063:
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>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 9,076: Line 9,084:
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,086: Line 9,104:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA      NOP
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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 9,121: Line 9,129:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,126: Line 9,139:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 9,144: Line 9,152:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68       PLA
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #41
EA       NOP
20 xx xx JSR delay_a_25_clocks
18       CLC
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>08       PHP
A9       LDA #41
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,156: Line 9,168:
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
|-
|-
|<pre>08       PHP
|<pre>68       PLA
A9       LDA #41
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
EA      NOP
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
18       CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>48      PHA
!colspan="2"|8 bytes
A9      LDA #41
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,181: Line 9,195:
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>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #34
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 9,210: Line 9,225:
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #34
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 9,252: Line 9,260:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0F    LDX #15
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0F    LDY #15
|<pre>A0 0F    LDY #15
Line 9,257: Line 9,269:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0F    LDX #15
|<pre>A9      LDA #49
CA      DEX
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
08      PHP ;first loop only
08      PHP ;first loop only
30 FC    BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
30 FC    BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>A9      LDA #49
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 9,282: Line 9,290:
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #42
48       PHA
20 xx xx JSR delay_a_25_clocks
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,292: Line 9,300:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>00 00    BRK 0
A9       LDA #42
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48      PHA
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 9,304: Line 9,312:
18      CLC
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<pre>48      PHA
08      PHP
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
Line 9,329: Line 9,323:
04 04    NOP $04
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
|-
|<pre>EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,346: Line 9,362:
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>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,391: Line 9,399:
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
A2 0E    LDX #14
A9      LDA #43
CA       DEX
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #43
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 9,400: Line 9,413:
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 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,407: Line 9,425:
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #43
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 3
A9      LDA #43
A2 0E    LDX #14
20 xx xx JSR delay_a_25_clocks
CA      DEX
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 9,423: Line 9,436:
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 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 9,433: Line 9,441:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 9,439: Line 9,453:
18      CLC
18      CLC
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>EA  ... NOP      &times; 2
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 9,480: Line 9,488:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>20 xx xx JSR @rts15
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,510: Line 9,511:
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>20 xx xx JSR @rts15
00 00    BRK 0
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,525: Line 9,525:
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
00 00    BRK 0
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 9,565: Line 9,573:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,578: Line 9,591:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 0F    LDA #15
A9       LDA #44
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,587: Line 9,600:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #44
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 9,635: Line 9,643:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #52
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
Line 9,640: Line 9,651:
30 FC    BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 FC    BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A9      LDA #52
!colspan="2"|6 bytes
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
C5 C5    CMP $C5
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and C
|-
|-
!colspan="2"|6 bytes
|<pre>A0 88    LDY #136 ;hides 'DEY'
24 24    BIT $24
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
Line 9,654: Line 9,670:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
C5 C5   CMP $C5
85 xx   STA @zptemp
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and C
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
24 24   BIT $24
04 04   NOP $04
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and V
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 88   LDY #136 ;hides 'DEY'
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
48      PHA
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and requires @zptemp
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,669: Line 9,686:
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>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
04 04    NOP $04
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 A4   LDY $A4
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
A0 0F   LDY #15
B8      CLV
88      DEY
50 00   BVC *+2
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 9,691: Line 9,699:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>A4 A4   LDY $A4
B8       CLV
A0 0F    LDY #15
50 00    BVC *+2
88       DEY
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 9,701: Line 9,709:
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
04 04    NOP $04
A9       LDA #45
18       CLC
20 xx xx JSR delay_a_25_clocks
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,711: Line 9,719:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #45
04 04    NOP $04
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 9,761: Line 9,769:
F6 xx    INC @zptemp,X
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #38
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 9,768: Line 9,783:
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>08      PHP
48      PHA
A9      LDA #38
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 9,795: Line 9,803:
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
10 FB    BPL *-3
10 FB    BPL *-3
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
10 FB    BPL *-3
10 FB    BPL *-3
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 9,817: Line 9,824:
18      CLC
18      CLC
10 FA    BPL *-4
10 FA    BPL *-4
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 9,825: Line 9,833:
18      CLC
18      CLC
10 FA    BPL *-4
10 FA    BPL *-4
68       PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 9,893: Line 9,901:
CA      DEX
CA      DEX
30 FB    BMI *-3</pre>||Clobbers X, Y, and Z&N
30 FB    BMI *-3</pre>||Clobbers X, Y, and Z&N
|-
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08      PHP ;first loop only
30 FC    BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,903: Line 9,916:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08      PHP ;first loop only
30 FC    BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 9,920: Line 9,928:
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>48      PHA
A9      LDA #46
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #46
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 9,927: Line 9,945:
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #46
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>38       SEC
A9       LDA #46
A9 0B    LDA #11
20 xx xx JSR delay_a_25_clocks
EA      NOP
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|8 bytes
|<pre>EA      NOP
08      PHP
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,946: Line 9,967:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48      PHA
08      PHP
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>38      SEC
A9 0B    LDA #11
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>68      PLA
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
5A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
5A      NOP ;first loop only
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
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>68      PLA
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
EA       NOP
28       PLP
18       CLC
90 FB    BCC *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
EA       NOP
28       PLP
18       CLC
90 FB    BCC *-3
D0 FB    BNE *-3
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,069: Line 10,077:
90 FA    BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
90 FA    BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #47
48      PHA
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A9      LDA #47
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 10,080: Line 10,092:
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
|-
|-
|<pre>08       PHP
|<pre>18       CLC
A9       LDA #47
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48      PHA
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
18       CLC
|-
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|<pre>48      PHA
A9       LDA #47
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 10,111: Line 10,114:
|<pre>18      CLC
|<pre>18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
20 xx xx JSR @rts15
00 00    BRK 0
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|<pre>18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
00 00    BRK 0
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,122: Line 10,143:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
08      PHP
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
EA      NOP
08      PHP
28      PLP
18      CLC
18      CLC
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
10 F9   BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,151: Line 10,167:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>08       PHP
48      PHA
A9      LDA #40
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
08      PHP
28      PLP
18      CLC
18      CLC
10 F9   BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FB   BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,167: Line 10,189:
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
!colspan="2"|10 bytes
|-
|<pre>C5 C5    CMP $C5
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #40
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,190: Line 10,206:
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 C5    CMP $C5
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 10,245: Line 10,253:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #48
48      PHA
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,256: Line 10,263:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #48
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48       PHA
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 10,271: Line 10,279:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 0E    LDX #14
A2 0E    LDX #14
CA      DEX
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers X; and writes in stack
68       PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 10,293: Line 10,294:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
38      SEC
A2 0E   LDX #14
A9 69   LDA #$69 ;hides 'ADC #$5A'
CA       DEX
5A       NOP ;first loop only
D0 FB   BNE *-3
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #41
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,309: Line 10,316:
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
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
48       PHA
08      PHP
A9       LDA #41
38       SEC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$5A'
68      PLA
5A      NOP ;first loop only
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 10,356: Line 10,364:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,367: Line 10,380:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
!colspan="2"|7 bytes
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
!colspan="2"|7 bytes
|<pre>38      SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,386: Line 10,399:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 10    LDA #16
A9       LDA #49
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #49
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 10,397: Line 10,415:
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>08      PHP
!colspan="2"|9 bytes
A9      LDA #49
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
A9       LDA #49
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
85 xx   STA @zptemp
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
18       CLC
|-
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
!colspan="2"|9 bytes
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
Line 10,414: Line 10,428:
18      CLC
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #42
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx   STA @zptemp
04 04   NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>18  ... CLC      &times; 2
|<pre>18  ... CLC      &times; 2
Line 10,427: Line 10,448:
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>48   ... PHA     &times; 2
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
04 04    NOP $04
A9 69   LDA #$69 ;hides 'ADC #$5A'
18      CLC
5A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,441: Line 10,463:
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
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|10 bytes
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #42
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>36 36    ROL $36,X
|<pre>36 36    ROL $36,X
Line 10,463: Line 10,471:
18      CLC
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|<pre>08      PHP
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 10,480: Line 10,480:
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
48      PHA
E6 xx    INC @zptemp
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
08       PHP
48       PHA
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
5A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
48       PHA
08       PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
5A      NOP ;first loop only
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 10,519: Line 10,510:
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
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
48      PHA
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 10,570: Line 10,578:
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>68  ... PLA      &times; 2
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9       LDA #50
08       PHP ;first loop only
20 xx xx JSR delay_a_25_clocks
30 FC    BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,580: Line 10,588:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>68  ... PLA      &times; 2
A9       LDA #50
A9 E9    LDA #$E9 ;hides 'SBC #$08'
20 xx xx JSR delay_a_25_clocks
08      PHP ;first loop only
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
30 FC    BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 10,618: Line 10,626:
F6 xx    INC @zptemp,X
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #43
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 10,640: Line 10,655:
D0 FA    BNE *-4
D0 FA    BNE *-4
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #43
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0E    LDY #14
A2 0E    LDX #14
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 10,673: Line 10,681:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 FA    BCC *-4
90 FA    BCC *-4
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 FA    BCC *-4
90 FA    BCC *-4
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08       PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
5A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
48       PHA
08       PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
5A      NOP ;first loop only
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
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 10,782: Line 10,790:
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #51
A9      LDA #51
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #51
A9      LDA #51
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
28      PLP
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,807: Line 10,822:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
28      PLP
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 0F    LDA #15
A9 0F    LDA #15
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 0F    LDA #15
A9 0F    LDA #15
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,855: Line 10,863:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 11    LDY #17
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
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 11    LDY #17
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #59
|<pre>A9      LDA #59
Line 10,870: Line 10,878:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18       CLC
A9       LDA #52
A9 69    LDA #$69 ;hides 'ADC #$F8'
20 xx xx JSR delay_a_25_clocks
F8       SED ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,881: Line 10,888:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #52
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$F8'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A5 A5    LDA $A5
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,898: Line 10,912:
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 A5   LDA $A5
|<pre>00 00   BRK 0
18       CLC
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$5A'
F8       SED ;first loop only
5A       NOP ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 0F    LDX #15
A2 0F    LDX #15
CA      DEX
CA      DEX
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
|-
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
B8       CLV
18      CLC
50 00   BVC *+2
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FA    BNE *-4
|-
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|<pre>00 00    BRK 0
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,939: Line 10,954:
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>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
50 00    BVC *+2
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,953: Line 10,961:
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #45
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,960: Line 10,975:
D0 FA    BNE *-4
D0 FA    BNE *-4
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #45
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 11,053: Line 11,061:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
A0 0C   LDY #12
EA   ... NOP     &times; 2
EA       NOP
18       CLC
88       DEY
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,065: Line 11,072:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
EA   ... NOP     &times; 2
A0 0C   LDY #12
18       CLC
EA       NOP
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C
88       DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #53
A9      LDA #53
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #53
A9      LDA #53
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 11,114: Line 11,122:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9      LDA #46
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
A9 EB    LDA #$EB ;hides 'SBC #$1A'
Line 11,119: Line 11,134:
EA      NOP
EA      NOP
B0 F9    BCS *-5
B0 F9    BCS *-5
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
A9 EB    LDA #$EB ;hides 'SBC #$1A'
Line 11,127: Line 11,142:
EA      NOP
EA      NOP
B0 F9    BCS *-5
B0 F9    BCS *-5
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #46
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
Line 11,144: Line 11,152:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
Line 11,152: Line 11,160:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,169: Line 11,177:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
EA       NOP
28       PLP
18       CLC
90 FB    BCC *-3
D0 FB    BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,186: Line 11,194:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,196: Line 11,209:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 69   LDA #$69 ;hides 'ADC #$F8'
A9 11   LDA #17
F8      SED ;first loop only
E9 01    SBC #1
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,216: Line 11,229:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 11    LDA #17
A9       LDA #54
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,225: Line 11,238:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #54
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 11,240: Line 11,248:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>08       PHP
A9 69    LDA #$69 ;hides 'ADC #$18'
A9 69    LDA #$69 ;hides 'ADC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
E6 xx    INC @zptemp
E6 xx    INC @zptemp
90 FA    BCC *-4
90 FA    BCC *-4
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 69    LDA #$69 ;hides 'ADC #$18'
A9 69    LDA #$69 ;hides 'ADC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
E6 xx    INC @zptemp
E6 xx    INC @zptemp
90 FA    BCC *-4
90 FA    BCC *-4
68       PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 3
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>08      PHP
48      PHA
48      PHA
18       CLC
A9       LDA #47
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
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 04    NOP $04
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
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
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 04    NOP $04
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
A9       LDA #47
18       CLC
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 11,294: Line 11,302:
50 00    BVC *+2
50 00    BVC *+2
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>48      PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 11,309: Line 11,310:
50 00    BVC *+2
50 00    BVC *+2
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,322: Line 11,323:
18      CLC
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
20 xx xx JSR @rts15
00 00    BRK 0
90 FA    BCC *-4
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,334: Line 11,334:
D0 FA    BNE *-4
D0 FA    BNE *-4
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
|-
|<pre>48      PHA
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
00 00    BRK 0
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 11,375: Line 11,383:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #62
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
68      PLA
68      PLA
30 FC    BMI *-2</pre>||Clobbers A, Y, S, and Z&N
30 FC    BMI *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>A9      LDA #62
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 11,410: Line 11,418:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #55
48  ... PHA      &times; 2
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,420: Line 11,428:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9       LDA #55
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48  ... PHA      &times; 2
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 11,436: Line 11,444:
|-
|-
|<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
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
Line 11,467: Line 11,475:
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>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</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
08      PHP
08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 11,488: Line 11,514:
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>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</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 11,517: Line 11,525:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0E    LDY #14
A2 0E    LDX #14
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 11,579: Line 11,587:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 11,589: Line 11,603:
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
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #56
48  ... PHA      &times; 2
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,607: Line 11,615:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #56
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48  ... PHA      &times; 2
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
10 FA    BPL *-4
10 FA    BPL *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A2 10   LDX #16
A9 69   LDA #$69 ;hides 'ADC #$F8'
CA       DEX
F8       SED ;first loop only
D0 FB   BNE *-3
10 FA   BPL *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,634: Line 11,642:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
18       CLC
08       PHP
A9 69   LDA #$69 ;hides 'ADC #$F8'
A2 10   LDX #16
F8       SED ;first loop only
CA       DEX
10 FA   BPL *-4
D0 FB   BNE *-3
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 11,658: Line 11,666:
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18      CLC
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
Line 11,670: Line 11,686:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx   STA @zptemp
04 04   NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,682: Line 11,698:
90 FA    BCC *-4
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18      CLC
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,721: Line 11,729:
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 11,732: Line 11,750:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 11,762: Line 11,770:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 12    LDY #18
|<pre>A0 12    LDY #18
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 12    LDX #18
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #64
|<pre>A9      LDA #64
Line 11,780: Line 11,788:
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>48      PHA
A9      LDA #57
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #57
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 11,791: Line 11,809:
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>08      PHP
!colspan="2"|8 bytes
A9      LDA #57
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #57
08       PHP
20 xx xx JSR delay_a_25_clocks
A2 10    LDX #16
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
CA      DEX
|-
D0 FB    BNE *-3
!colspan="2"|8 bytes
28       PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,809: Line 11,824:
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 S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 10    LDX #16
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
26 26    ROL $26
10 FA   BPL *-4
66 26    ROR $26
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,845: Line 11,853:
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>18       CLC
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
26 26    ROL $26
20 xx xx JSR @rts12
66 26    ROR $26
10 FA   BPL *-4
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,860: Line 11,868:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 11,866: Line 11,874:
28      PLP
28      PLP
10 F9    BPL *-5
10 F9    BPL *-5
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 11,874: Line 11,882:
28      PLP
28      PLP
10 F9    BPL *-5
10 F9    BPL *-5
68       PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 11,901: Line 11,909:
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
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 04    NOP $04
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
68       PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
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 04    NOP $04
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
28       PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 11,925: Line 11,933:
18      CLC
18      CLC
10 F8    BPL *-6
10 F8    BPL *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 11,934: Line 11,942:
18      CLC
18      CLC
10 F8    BPL *-6
10 F8    BPL *-6
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 11,940: Line 11,948:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0E    LDY #14
A2 0E    LDX #14
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 11,957: Line 11,965:
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 11,967: Line 11,985:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 12,015: Line 12,023:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #58
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #58
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 12,027: Line 12,045:
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #58
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA  ... NOP      &times; 2
A9       LDA #58
38       SEC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$F8'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
F8      SED ;first loop only
|-
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,053: Line 12,067:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
38      SEC
00 00... BRK 0    &times; 2
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
00 00... BRK 0    &times; 2
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
Line 12,070: Line 12,078:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,078: Line 12,094:
10 FA    BPL *-4
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,139: Line 12,147:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,152: Line 12,165:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 12    LDA #18
A9       LDA #59
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,167: Line 12,175:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>68       PLA
A9       LDA #59
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
00 00    BRK 0
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 12,185: Line 12,193:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9      LDA #52
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers S, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,194: Line 12,216:
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
!colspan="2"|10 bytes
|-
|<pre>24 24    BIT $24
48       PHA
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
10 FA    BPL *-4
10 FA    BPL *-4
68      PLA</pre>||Clobbers S, Z&N, C, V, and D; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #52
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,225: Line 12,241:
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 24   BIT $24
|<pre>00 00   BRK 0
48      PHA
48      PHA
18       CLC
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$5A'
F8       SED ;first loop only
5A       NOP ;first loop only
10 FA    BPL *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 12,239: Line 12,255:
D0 F9    BNE *-5
D0 F9    BNE *-5
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>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</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 12,297: Line 12,305:
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #60
A9      LDA #60
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #60
A9      LDA #60
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 12,315: Line 12,323:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,338: Line 12,353:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,426: Line 12,434:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #61
A9      LDA #61
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #61
A9      LDA #61
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,447: Line 12,462:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 11    LDY #17
A2 11    LDX #17
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 11    LDX #17
A0 11    LDY #17
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
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 12,483: Line 12,491:
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>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</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 12,493: Line 12,510:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 69   LDA #$69 ;hides 'ADC #$18'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
18       CLC ;first loop only
0A       ASL A ;first loop only
E6 xx   INC @zptemp
04 04   NOP $04
90 FA    BCC *-4
30 FA    BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 12,508: Line 12,525:
90 FA    BCC *-4
90 FA    BCC *-4
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>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 12,550: Line 12,558:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #62
A9      LDA #62
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #62
A9      LDA #62
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 12,579: Line 12,587:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,587: Line 12,601:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
00 00   BRK 0
A9 12   LDA #18
10 FB   BPL *-3
E9 01   SBC #1
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,598: Line 12,612:
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
38      SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
24 24    BIT $24
24 24    BIT $24
Line 12,613: Line 12,627:
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,629: Line 12,637:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 12,635: Line 12,643:
18      CLC
18      CLC
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 12,643: Line 12,651:
18      CLC
18      CLC
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 12,657: Line 12,665:
AA      TAX
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>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</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,678: Line 12,676:
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>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</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 12,714: Line 12,722:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
Line 12,727: Line 12,741:
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #63
08      PHP
20 xx xx JSR delay_a_25_clocks
28       PLP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,738: Line 12,751:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
A9      LDA #63
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>EA      NOP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,766: Line 12,782:
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>EA      NOP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,804: Line 12,812:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 13    LDX #19
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,810: Line 12,823:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|7 bytes
A2 13    LDX #19
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,828: Line 12,841:
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>38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #64
08      PHP
20 xx xx JSR delay_a_25_clocks
28       PLP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,846: Line 12,853:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #64
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
08      PHP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 12,860: Line 12,868:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
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
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
30 FA    BMI *-4
30 FA    BMI *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
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
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
30 FA    BMI *-4
30 FA    BMI *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #57
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,881: Line 12,896:
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|11 bytes
48      PHA
A9      LDA #57
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>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</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,897: Line 12,913:
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 12,978: Line 12,986:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>48      PHA
A9      LDA #65
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #65
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 12,990: Line 13,008:
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>08      PHP
!colspan="2"|8 bytes
A9      LDA #65
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
A9       LDA #65
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
08      PHP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP
|-
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,016: Line 13,030:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
!colspan="2"|9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>08      PHP
48      PHA
A9      LDA #58
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 13,032: Line 13,047:
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
10 FB    BPL *-3
10 FB    BPL *-3
28       PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
10 FB    BPL *-3
10 FB    BPL *-3
68       PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
28       PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #58
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08       PHP
48       PHA
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
10 FA    BPL *-4
10 FA    BPL *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
48       PHA
08       PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
10 FA    BPL *-4
10 FA    BPL *-4
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,122: Line 13,130:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #66
A9      LDA #66
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #66
A9      LDA #66
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,147: Line 13,161:
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>EA      NOP
38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 13,169: Line 13,177:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,243: Line 13,251:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>48      PHA
0A      ASL A ;first loop only
A9       LDA #67
EA      NOP
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A9      LDA #67
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 13,255: Line 13,267:
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #67
0A       ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
EA      NOP
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
48      PHA
|-
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|<pre>48      PHA
A9      LDA #67
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 13,277: Line 13,280:
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 13,283: Line 13,291:
18      CLC
18      CLC
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,298: Line 13,312:
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
!colspan="2"|9 bytes
|-
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,320: Line 13,334:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
20 xx xx JSR @rts14
28      PLP
10 FA   BPL *-4
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,331: Line 13,345:
10 FA    BPL *-4
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,347: Line 13,355:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
08      PHP      \ &times; 2
28      PLP      /
28      PLP      /
10 F9    BPL *-5
10 F9    BPL *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
08      PHP      \ &times; 2
28      PLP      /
28      PLP      /
10 F9    BPL *-5
10 F9    BPL *-5
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 13,389: Line 13,397:
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48      PHA
A0 13    LDY #19
A9      LDA #68
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #68
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 13    LDY #19
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
Line 13,399: Line 13,417:
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>08      PHP
!colspan="2"|8 bytes
A9      LDA #68
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #68
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
08      PHP
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28      PLP
|-
D0 FB    BNE *-3
!colspan="2"|8 bytes
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,429: Line 13,444:
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>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 13,500: Line 13,508:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>38       SEC
A0 13   LDY #19
A9 14   LDA #20
88      DEY
E9 01    SBC #1
D0 FB   BNE *-3
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,512: Line 13,519:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>08       PHP
A9 14   LDA #20
A0 13   LDY #19
E9 01    SBC #1
88      DEY
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
48  ... PHA      &times; 2
A9       LDA #69
18       CLC
20 xx xx JSR delay_a_25_clocks
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,527: Line 13,535:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #69
48  ... PHA      &times; 2
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 13,559: Line 13,567:
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
|<pre>48       PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 FA    BPL *-4
10 FA    BPL *-4
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 FA    BPL *-4
10 FA    BPL *-4
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,581: Line 13,589:
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 13,604: Line 13,612:
28      PLP      /
28      PLP      /
10 F9    BPL *-5
10 F9    BPL *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 13,612: Line 13,620:
28      PLP      /
28      PLP      /
10 F9    BPL *-5
10 F9    BPL *-5
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 13,660: Line 13,668:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
48       PHA
A9       LDA #70
00 00    BRK 0
20 xx xx JSR delay_a_25_clocks
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,670: Line 13,678:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A9      LDA #70
48      PHA
20 xx xx JSR delay_a_25_clocks
00 00    BRK 0
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 13,686: Line 13,694:
00 00    BRK 0
00 00    BRK 0
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
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
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,694: Line 13,707:
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
!colspan="2"|9 bytes
04 04    NOP $04
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
|-
|-
!colspan="2"|9 bytes
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,724: Line 13,740:
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>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,786: Line 13,794:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
18       CLC
A9       LDA #71
A9 69    LDA #$69 ;hides 'ADC #$08'
20 xx xx JSR delay_a_25_clocks
08       PHP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
90 FA    BCC *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,797: Line 13,804:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9       LDA #71
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$08'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
08      PHP ;first loop only
90 FA    BCC *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,817: Line 13,831:
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>EA      NOP
38      SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 13,832: Line 13,840:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #64
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 13,852: Line 13,867:
D0 FB    BNE *-3
D0 FB    BNE *-3
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>08      PHP
48      PHA
A9      LDA #64
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 13,908: Line 13,916:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #72
A9      LDA #72
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #72
A9      LDA #72
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 13,942: Line 13,950:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>A5 A5    LDA $A5
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
20 xx xx JSR @rts15
10 FA    BPL *-4
10 FA    BPL *-4
28       PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
20 xx xx JSR @rts15
10 FA    BPL *-4
10 FA    BPL *-4
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
28       PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>18      CLC
38      SEC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
Line 13,967: Line 13,975:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9      LDA #65
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
10 FA    BPL *-4
10 FA    BPL *-4
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
10 FA    BPL *-4
10 FA    BPL *-4
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 13,987: Line 14,002:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #65
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
D0 FB    BNE *-3
D0 FB    BNE *-3
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 14,058: Line 14,066:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>68       PLA
|<pre>48       PHA
18       CLC
A9       LDA #73
A9 69    LDA #$69 ;hides 'ADC #$08'
20 xx xx JSR delay_a_25_clocks
08       PHP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
90 FA    BCC *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,069: Line 14,076:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>68      PLA
A9       LDA #73
18       CLC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$08'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
08      PHP ;first loop only
90 FA    BCC *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 14,116: Line 14,124:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 14,181: Line 14,189:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,194: Line 14,207:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 15    LDA #21
A9       LDA #74
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,203: Line 14,216:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #74
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 14,219: Line 14,227:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #67
48  ... PHA      &times; 2
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
Line 14,232: Line 14,240:
EA      NOP
EA      NOP
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
Line 14,240: Line 14,248:
EA      NOP
EA      NOP
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
48      PHA
A9       LDA #67
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
48  ... PHA      &times; 2
68       PLA
18       CLC
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>48      PHA
38      SEC
A9 0E    LDA #14
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,265: Line 14,281:
10 FA    BPL *-4
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 0E    LDA #14
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 14,351: Line 14,359:
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>48      PHA
A9      LDA #75
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #75
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 14,362: Line 14,380:
EA      NOP
EA      NOP
30 FB    BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
30 FB    BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A9      LDA #75
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #75
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 14,379: Line 14,387:
18      CLC
18      CLC
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
20 xx xx JSR @rts14
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 14,390: Line 14,393:
69 01    ADC #1
69 01    ADC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
20 xx xx JSR @rts14
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>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>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
Line 14,400: Line 14,415:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 13   LDX #19
48      PHA
CA       DEX
A9      LDA #68
D0 FB   BNE *-3
20 xx xx JSR delay_a_25_clocks
F6 xx    INC @zptemp,X
68      PLA
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A   LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
18       CLC
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 14,419: Line 14,440:
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 S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #68
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 14,478: Line 14,486:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68       PLA
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9       LDA #76
08      PHP ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
30 FB    BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,489: Line 14,496:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>68       PLA
A9       LDA #76
A9 E9    LDA #$E9 ;hides 'SBC #$08'
20 xx xx JSR delay_a_25_clocks
08      PHP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
EA       NOP
30 FB    BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 14,509: Line 14,523:
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>EA      NOP
38      SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,608: Line 14,616:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
Line 14,616: Line 14,628:
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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 14,629: Line 14,637:
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #77
A9      LDA #77
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #77
A9      LDA #77
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 14,679: Line 14,687:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18      CLC
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,689: Line 14,704:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
85 xx   STA @zptemp
18      CLC
00 00    BRK 0
10 F9    BPL *-5
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,703: Line 14,718:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx   STA @zptemp
04 04   NOP $04
00 00    BRK 0
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
00 00    BRK 0
00 00    BRK 0
10 F9    BPL *-5
10 F9    BPL *-5
68       PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
28       PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 14,717: Line 14,739:
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48   ... PHA     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
00 00    BRK 0
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
00 00    BRK 0
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
08      PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
Line 14,738: Line 14,745:
EA      NOP
EA      NOP
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; 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
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$5A'
Line 14,746: Line 14,754:
EA      NOP
EA      NOP
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; 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
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 14,776: Line 14,784:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #78
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #78
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 14,786: Line 14,804:
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>08      PHP
A9      LDA #78
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #78
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 14,855: Line 14,863:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 14,892: Line 14,900:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
Line 14,902: Line 14,915:
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>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 14,922: Line 14,930:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #79
A9      LDA #79
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #79
A9      LDA #79
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 14,952: Line 14,960:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>24 24    BIT $24
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
20 xx xx JSR @rts15
A9 14   LDA #20
10 FA   BPL *-4
E9 01    SBC #1
68      PLA
D0 F9   BNE *-5
28      PLP</pre>||Requires @rts12, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,985: Line 14,993:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 24    BIT $24
|<pre>08      PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 14   LDA #20
20 xx xx JSR @rts15
E9 01   SBC #1
10 FA   BPL *-4
D0 F9    BNE *-5
68      PLA
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28      PLP</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,040: Line 15,048:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,051: Line 15,064:
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
!colspan="2"|7 bytes
|-
|<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
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
Line 15,068: Line 15,081:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #80
0A       ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,077: Line 15,090:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #80
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 15,174: Line 15,182:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 15,184: Line 15,197:
88      DEY
88      DEY
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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A2 16   LDX #22
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
CA       DEX
0A       ASL A ;first loop only
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 15,203: Line 15,211:
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A2 16   LDX #22
0A       ASL A ;first loop only
CA       DEX
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #81
A9      LDA #81
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #81
A9      LDA #81
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 15,247: Line 15,255:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,308: Line 15,316:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A2 17    LDX #23
|<pre>A2 17    LDX #23
Line 15,316: Line 15,328:
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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #82
A9      LDA #82
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #82
A9      LDA #82
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 15,373: Line 15,381:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9      LDA #75
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
90 FB    BCC *-3
90 FB    BCC *-3
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
90 FB    BCC *-3
90 FB    BCC *-3
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,393: Line 15,408:
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #75
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
08      PHP
28      PLP
18      CLC
18      CLC
10 F9   BPL *-5
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,417: Line 15,426:
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
20 xx xx JSR @rts15
28      PLP
18      CLC
18      CLC
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
10 F9   BPL *-5
28      PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>48      PHA
98      TYA
48      PHA
A0 14    LDY #20
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>08      PHP
18      CLC
18      CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
A9 F4    LDA #244 ;hides 'NOP zp,X'
Line 15,440: Line 15,439:
69 01    ADC #1
69 01    ADC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
A9 F4    LDA #244 ;hides 'NOP zp,X'
Line 15,448: Line 15,447:
69 01    ADC #1
69 01    ADC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>68      PLA
98      TYA
48      PHA
A0 14    LDY #20
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,462: Line 15,470:
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
D0 FB    BNE *-3
D0 FB    BNE *-3
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 3
08      PHP
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 2
08      PHP
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 15,531: Line 15,539:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #83
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #83
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A2 16   LDX #22
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
CA       DEX
0A       ASL A ;first loop only
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 15,543: Line 15,561:
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A2 16   LDX #22
0A       ASL A ;first loop only
CA       DEX
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>08      PHP
A9      LDA #83
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #83
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
A0 16   LDY #22
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
88       DEY
0A       ASL A ;first loop only
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 15,570: Line 15,578:
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A0 16   LDY #22
0A       ASL A ;first loop only
88       DEY
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,608: Line 15,616:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,645: Line 15,653:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,656: Line 15,669:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18       CLC
!colspan="2"|7 bytes
|-
|<pre>48       PHA
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
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V
D0 FC   BNE *-2
|-
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,680: Line 15,694:
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>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,774: Line 15,782:
28      PLP
28      PLP
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and writes in stack
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and writes in stack
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,780: Line 15,793:
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
|-
|<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
B0 FC    BCS *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 15,792: Line 15,805:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #85
0A       ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #85
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 15,803: Line 15,821:
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #85
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #85
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 15,829: Line 15,837:
F6 xx    INC @zptemp,X
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #78
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 15,843: Line 15,858:
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>08      PHP
48      PHA
A9      LDA #78
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 15,876: Line 15,884:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
90 FB    BCC *-3
90 FB    BCC *-3
28       PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
90 FB    BCC *-3
90 FB    BCC *-3
68       PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
28       PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,957: Line 15,965:
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #86
A9      LDA #86
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #86
A9      LDA #86
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,989: Line 16,004:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 16,047: Line 16,055:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 18    LDY #24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 18    LDX #24
|<pre>A2 18    LDX #24
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 18    LDY #24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #94
|<pre>A9      LDA #94
Line 16,067: Line 16,075:
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #87
A9      LDA #87
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #87
A9      LDA #87
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 16,089: Line 16,097:
00 00    BRK 0
00 00    BRK 0
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,096: Line 16,110:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,104: Line 16,125:
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
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>24 24    BIT $24
48       PHA
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
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,139: Line 16,154:
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>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,212: Line 16,220:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>38      SEC
A2 11    LDX #17
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 F9    BPL *-5</pre>||Clobbers A, Z&N, C, V, and D
|-
|<pre>EA      NOP
A2 11    LDX #17
EA      NOP
EA      NOP
CA      DEX
CA      DEX
Line 16,224: Line 16,238:
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9       LDA #88
F8      SED ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, Z&N, C, V, and D
|-
|<pre>48  ... PHA      &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,240: Line 16,248:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
A9       LDA #88
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR delay_a_25_clocks
0A      ASL A ;first loop only
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
B0 FC    BCS *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 16,261: Line 16,269:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,283: Line 16,298:
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>EA  ... NOP      &times; 2
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,341: Line 16,349:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,359: Line 16,373:
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>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 16,405: Line 16,413:
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,424: Line 16,423:
D0 FA    BNE *-4
D0 FA    BNE *-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
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18      CLC
10 F9    BPL *-5
68      PLA
28      PLP</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,508: Line 16,516:
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>48      PHA
A9      LDA #90
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #90
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 16,518: Line 16,536:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
B0 FC    BCS *-2</pre>||Clobbers A, S, Z&N, C, and V
B0 FC    BCS *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>08      PHP
A9      LDA #90
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #90
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 16,545: Line 16,553:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
38      SEC
A9 11    LDA #17
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,559: Line 16,574:
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 Y; and writes in stack
|-
|<pre>EA      NOP
38      SEC
A9 11    LDA #17
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,573: Line 16,581:
F6 xx    INC @zptemp,X
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #83
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 16,595: Line 16,616:
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; 3
!colspan="2"|10 bytes
|-
|<pre>EA   ... NOP     &times; 3
48      PHA
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
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #83
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,632: Line 16,647:
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>EA  ... NOP      &times; 3
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 16,687: Line 16,695:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 18    LDX #24
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 16,693: Line 16,706:
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
|<pre>48      PHA
A2 18    LDX #24
A9      LDA #91
CA       DEX
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,702: Line 16,715:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #91
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
0A      ASL A ;first loop only
|-
B0 FA    BCS *-4
!colspan="2"|8 bytes
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,719: Line 16,734:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 17    LDX #23
A0 17    LDY #23
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 17    LDY #23
A2 17    LDX #23
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
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 16,768: Line 16,776:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #92
A9      LDA #92
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #92
A9      LDA #92
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 16,797: Line 16,805:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,812: Line 16,826:
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
!colspan="2"|9 bytes
|-
|<pre>24 24    BIT $24
48       PHA
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
B0 FC    BCS *-2
B0 FC    BCS *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,834: Line 16,849:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>24 24    BIT $24
|<pre>08      PHP
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9      LDA #85
0A      ASL A ;first loop only
B0 FC    BCS *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #85
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
Line 16,899: Line 16,907:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #100
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A9      LDA #100
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 16,921: Line 16,929:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>48      PHA
2A       ROL A ;first loop only
A9       LDA #93
00 00    BRK 0
20 xx xx JSR delay_a_25_clocks
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,931: Line 16,939:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9       LDA #93
2A      ROL A ;first loop only
20 xx xx JSR delay_a_25_clocks
00 00    BRK 0
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
28      PLP
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,951: Line 16,966:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
28      PLP
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 16,969: Line 16,977:
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08       PHP
48       PHA
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
B0 FC    BCS *-2
B0 FC    BCS *-2
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
48       PHA
08       PHP
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
B0 FC    BCS *-2
B0 FC    BCS *-2
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,006: Line 17,014:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #101
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers A, X, S, and Z&N
D0 FD    BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>A9      LDA #101
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 17,027: Line 17,035:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,040: Line 17,053:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 19    LDA #25
A9       LDA #94
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,049: Line 17,062:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #94
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
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 17,063: Line 17,071:
28      PLP
28      PLP
30 FA    BMI *-4
30 FA    BMI *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
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 17,071: Line 17,079:
28      PLP
28      PLP
30 FA    BMI *-4
30 FA    BMI *-4
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,156: Line 17,164:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #95
A9      LDA #95
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #95
A9      LDA #95
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 17,175: Line 17,183:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,200: Line 17,216:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>08      PHP
38       SEC
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9       LDA #88
F8      SED ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA
10 F9    BPL *-5
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 3
Line 17,213: Line 17,228:
B0 FC    BCS *-2
B0 FC    BCS *-2
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>08      PHP
48      PHA
A9      LDA #88
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 17,280: Line 17,288:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #96
A9      LDA #96
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #96
A9      LDA #96
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,305: Line 17,319:
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>EA      NOP
38      SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,349: Line 17,357:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9       LDA #97
F8      SED ;first loop only
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,360: Line 17,367:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9       LDA #97
A9 69    LDA #$69 ;hides 'ADC #$F8'
20 xx xx JSR delay_a_25_clocks
F8      SED ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
48       PHA
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires @zptemp
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
Line 17,375: Line 17,389:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
85 xx   STA @zptemp
04 04   NOP $04
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires @zptemp
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
|<pre>38      SEC
A9 10    LDA #16
48      PHA
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,384: Line 17,404:
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 S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 10    LDA #16
A9 10    LDA #16
48      PHA
24 24    BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F8   BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,406: Line 17,420:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>08       PHP
A9 10    LDA #16
48      PHA
24 24    BIT $24
A9       LDA #90
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 2
|<pre>68  ... PLA      &times; 2
Line 17,418: Line 17,433:
B0 FC    BCS *-2
B0 FC    BCS *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #90
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
Line 17,435: Line 17,443:
EA      NOP
EA      NOP
10 F9    BPL *-5
10 F9    BPL *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
Line 17,444: Line 17,452:
EA      NOP
EA      NOP
10 F9    BPL *-5
10 F9    BPL *-5
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,508: Line 17,516:
9A      TXS
9A      TXS
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; and unsafe for interrupts
|-
|-
|<pre>A2 19    LDX #25
|<pre>A2 19    LDX #25
Line 17,514: Line 17,522:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #98
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #98
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 17,524: Line 17,542:
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>08      PHP
A9      LDA #98
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #98
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 17,606: Line 17,614:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 1A    LDX #26
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,612: Line 17,625:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|7 bytes
A2 1A    LDX #26
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>38      SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,631: Line 17,644:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 1A    LDA #26
A9       LDA #99
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,640: Line 17,653:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #99
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,653: Line 17,661:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
20 xx xx JSR @rts14
90 F9    BCC *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,666: Line 17,668:
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
20 xx xx JSR @rts14
90 F9    BCC *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
20 xx xx JSR @rts12
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
08       PHP
48       PHA
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
D0 FC    BNE *-2
D0 FC    BNE *-2
28       PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
48       PHA
08       PHP
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
D0 FC    BNE *-2
D0 FC    BNE *-2
68       PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts15; and writes in stack
28       PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx   INC @zptemp
04 04   NOP $04
20 xx xx JSR @rts12
20 xx xx JSR @rts14
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,697: Line 17,711:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts14
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 17,740: Line 17,748:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
A9       LDA #100
A2 E8    LDX #232 ;hides 'INX'
20 xx xx JSR delay_a_25_clocks
D0 FD    BNE *-1
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,751: Line 17,758:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #100
08       PHP
20 xx xx JSR delay_a_25_clocks
A2 E8    LDX #232 ;hides 'INX'
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FD    BNE *-1
28       PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 17,785: Line 17,793:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
08      PHP
2A      ROL A ;first loop only
08      PHP      \ &times; 2
28      PLP      /
B0 F8    BCS *-6</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
10 F8    BPL *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
10 F8    BPL *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
08      PHP      \ &times; 2
28      PLP      /
B0 F8    BCS *-6</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,806: Line 17,814:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 17,813: Line 17,821:
18      CLC
18      CLC
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 17,822: Line 17,830:
18      CLC
18      CLC
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 17,873: Line 17,881:
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
|<pre>48       PHA
A9      LDA #101
A9      LDA #101
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #101
A9      LDA #101
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 17,908: Line 17,916:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,961: Line 17,969:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
|<pre>48      PHA
08       PHP ;first loop only
A9       LDA #102
EA  ... NOP      &times; 2
20 xx xx JSR delay_a_25_clocks
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,971: Line 17,979:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9       LDA #102
08      PHP ;first loop only
20 xx xx JSR delay_a_25_clocks
EA  ... NOP      &times; 2
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 18,029: Line 18,037:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
Line 18,035: Line 18,043:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
Line 18,043: Line 18,051:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 18,082: Line 18,090:
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
A5 A5   LDA $A5
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers A, X, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and C
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
A5 A5   LDA $A5
C5 C5   CMP $C5
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
A4 A4   LDY $A4
24 24   BIT $24
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
|-
|<pre>A2 11    LDX #17
C5 C5    CMP $C5
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and C
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
C5 C5   CMP $C5
24 24   BIT $24
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 V
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
24 24   BIT $24
A5 A5   LDA $A5
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A2 11    LDX #17
A5 A5    LDA $A5
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
24 24   BIT $24
A4 A4   LDY $A4
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 18,125: Line 18,133:
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #103
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #103
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 18,136: Line 18,154:
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
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #103
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #103
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
Line 18,159: Line 18,167:
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,171: Line 18,174:
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>18       CLC
08       PHP
A9 0A   LDA #$0A ;hides 'ASL A'
A2 E8   LDX #232 ;hides 'INX'
20 xx xx JSR @rts12
D0 FD   BNE *-1
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 18,182: Line 18,184:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,217: Line 18,225:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 18,272: Line 18,280:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,285: Line 18,298:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 1B    LDA #27
A9       LDA #104
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,294: Line 18,307:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #104
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 18,313: Line 18,321:
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
48      PHA
A9      LDA #97
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,321: Line 18,336:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #97
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>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</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>8C      TXA
|<pre>8C      TXA
Line 18,347: Line 18,348:
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>48      PHA
48      PHA
18      CLC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 69   LDA #$69 ;hides 'ADC #$F8'
0A       ASL A ;first loop only
F8       SED ;first loop only
B0 FC   BCS *-2
85 xx    STA @zptemp
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts15; and writes in stack
10 F8   BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,361: Line 18,363:
10 F8    BPL *-6
10 F8    BPL *-6
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts15; and writes in stack
|-
|<pre>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</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,366: Line 18,382:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
85 xx   STA @zptemp
04 04   NOP $04
10 F8    BPL *-6
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
|-
|<pre>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</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|11 bytes
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>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</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
Line 18,409: Line 18,417:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
Line 18,417: Line 18,425:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 18,455: Line 18,463:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 A6    LDX $A6
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
Line 18,461: Line 18,474:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>48      PHA
A2 1B    LDX #27
A9      LDA #105
CA       DEX
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #105
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 18,471: Line 18,489:
48      PHA
48      PHA
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|<pre>08      PHP
A9      LDA #105
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #105
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 18,490: Line 18,498:
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires @zptemp
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires @zptemp
|-
|-
|<pre>68       PLA
|<pre>38       SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 69   LDA #$69 ;hides 'ADC #$F8'
20 xx xx JSR @rts12
F8      SED ;first loop only
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
04 04    NOP $04
10 F8   BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 18,501: Line 18,510:
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>68       PLA
A9 69   LDA #$69 ;hides 'ADC #$F8'
A9 0A   LDA #$0A ;hides 'ASL A'
F8      SED ;first loop only
20 xx xx JSR @rts12
04 04    NOP $04
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
10 F8   BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>38      SEC
A9 11    LDA #17
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,515: Line 18,529:
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
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; writes in stack; and unsafe for interrupts
|-
|<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>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 18,522: Line 18,543:
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>38       SEC
|<pre>08      PHP
A9 11    LDA #17
48       PHA
24 24    BIT $24
A9       LDA #98
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
68       PLA
|-
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|<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,556: Line 18,571:
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>08      PHP
48      PHA
A9      LDA #98
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 18,656: Line 18,664:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
38       SEC
A9       LDA #106
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
20 xx xx JSR delay_a_25_clocks
3A       NOP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,667: Line 18,674:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9       LDA #106
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,687: Line 18,701:
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>EA      NOP
38      SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,728: Line 18,736:
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
Line 18,741: Line 18,757:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx   INC @zptemp
04 04   NOP $04
20 xx xx JSR @rts12
20 xx xx JSR @rts14
90 F8    BCC *-6
90 F8    BCC *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,756: Line 18,772:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, and C; requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 18,799: Line 18,807:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38       SEC
A9       LDA #107
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
20 xx xx JSR delay_a_25_clocks
3A       NOP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,810: Line 18,817:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #107
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
08      PHP
28      PLP
30 F9    BMI *-5</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,830: Line 18,845:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
!colspan="2"|9 bytes
0A      ASL A ;first loop only
EA      NOP
08      PHP
28      PLP
30 F9    BMI *-5</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>08      PHP
48      PHA
A9      LDA #100
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 18,844: Line 18,859:
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>08       PHP
!colspan="2"|10 bytes
|-
|<pre>8C       TXA
48      PHA
48      PHA
A9      LDA #100
A2 E8    LDX #232 ;hides 'INX'
20 xx xx JSR delay_a_25_clocks
D0 FD    BNE *-1
F6 xx   INC @zptemp,X
68      PLA
68      PLA
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; requires @zptemp; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 18,858: Line 18,874:
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
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
2A      ROL A ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
B0 F9    BCS *-5
B0 F9    BCS *-5
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
2A      ROL A ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
B0 F9    BCS *-5
B0 F9    BCS *-5
68       PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts14; and writes in stack
28       PLP</pre>||Clobbers A; requires @rts12, and @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,890: Line 18,898:
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
08      PHP      \ &times; 2
28      PLP      /
B0 F8    BCS *-6
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,906: Line 18,922:
10 F8    BPL *-6
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
08      PHP      \ &times; 2
28      PLP      /
B0 F8    BCS *-6
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 18,939: Line 18,947:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A0 98    LDY #152 ;hides 'TYA'
EA      NOP
88  ... DEY      &times; 2
30 FA    BMI *-4</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 98    LDX #152 ;hides 'TYA'
|<pre>A2 98    LDX #152 ;hides 'TYA'
Line 18,944: Line 18,957:
CA  ... DEX      &times; 2
CA  ... DEX      &times; 2
30 FA    BMI *-4</pre>||Clobbers A, X, and Z&N
30 FA    BMI *-4</pre>||Clobbers A, X, and Z&N
|-
|<pre>A0 98    LDY #152 ;hides 'TYA'
EA      NOP
88  ... DEY      &times; 2
30 FA    BMI *-4</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 1B    LDX #27
|<pre>A2 1B    LDX #27
Line 18,955: Line 18,963:
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
A0 1B    LDY #27
A9      LDA #108
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
A2 1B    LDX #27
A9      LDA #108
CA       DEX
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A0 1A    LDY #26 ;hides 'NOP'
|<pre>A0 1A    LDY #26 ;hides 'NOP'
Line 18,974: Line 18,982:
CA  ... DEX      &times; 2
CA  ... DEX      &times; 2
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; and requires support for unofficial opcodes
|-
|<pre>48  ... PHA      &times; 2
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 18,980: Line 18,998:
3A      NOP ;first loop only
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>08      PHP
A9      LDA #108
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #108
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 19,003: Line 19,011:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>EA  ... NOP      &times; 2
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>68      PLA
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>EA  ... NOP      &times; 2
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
|<pre>98      TYA
|<pre>98      TYA
Line 19,050: Line 19,052:
D0 FA    BNE *-4
D0 FA    BNE *-4
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>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,116: Line 19,124:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,129: Line 19,142:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 1C    LDA #28
A9       LDA #109
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,138: Line 19,151:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #109
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 19,170: Line 19,178:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
Line 19,176: Line 19,184:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
Line 19,184: Line 19,192:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 19,209: Line 19,217:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,214: Line 19,227:
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 1C    LDY #28
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
Line 19,232: Line 19,240:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #110
A9      LDA #110
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #110
A9      LDA #110
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 19,266: Line 19,274:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>08      PHP
38       SEC
48       PHA
A9 1B    LDA #27
A9       LDA #103
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 19,278: Line 19,287:
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
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 2
48       PHA
38       SEC
A9       LDA #103
A9 1B    LDA #27
20 xx xx JSR delay_a_25_clocks
E9 01    SBC #1
68      PLA
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,309: Line 19,310:
D0 FA    BNE *-4
D0 FA    BNE *-4
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>08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,376: Line 19,384:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
18       CLC
A9       LDA #111
A9 EB    LDA #$EB ;hides 'SBC #$7A'
20 xx xx JSR delay_a_25_clocks
7A       NOP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,387: Line 19,394:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9       LDA #111
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 EB    LDA #$EB ;hides 'SBC #$7A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
38       SEC
A2 1B   LDX #27
A9 1C   LDA #28
CA      DEX
E9 01    SBC #1
D0 FB   BNE *-3
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,409: Line 19,416:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
38       SEC
08       PHP
A9 1C   LDA #28
A2 1B   LDX #27
E9 01    SBC #1
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,478: Line 19,486:
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,509: Line 19,508:
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>20 xx xx JSR @rts15
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 19   LDA #25
0A      ASL A ;first loop only
E9 01    SBC #1
B0 FC   BCS *-2
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,528: Line 19,526:
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 19,562: Line 19,570:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18       CLC
A9       LDA #112
A9 EB    LDA #$EB ;hides 'SBC #$7A'
20 xx xx JSR delay_a_25_clocks
7A       NOP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,573: Line 19,580:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #112
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 EB    LDA #$EB ;hides 'SBC #$7A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>04 04    NOP $04
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>48      PHA
38      SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,593: Line 19,613:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>04 04    NOP $04
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,621: Line 19,635:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>08      PHP
38       SEC
48       PHA
A9 1C    LDA #28
A9       LDA #105
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,634: Line 19,649:
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|10 bytes
48      PHA
A9      LDA #105
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>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</pre>||Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,655: Line 19,671:
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
F8      SED ;first loop only
85 xx   STA @zptemp
04 04   NOP $04
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
10 F8    BPL *-6
68       PLA</pre>||Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 19,668: Line 19,692:
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|11 bytes
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 04    NOP $04
10 F8    BPL *-6
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38      SEC
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$F8'
A9 11   LDA #17
F8      SED ;first loop only
24 24    BIT $24
04 04   NOP $04
E9 01   SBC #1
10 F8   BPL *-6
D0 F7   BNE *-7
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, and V; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,700: Line 19,716:
D0 FA    BNE *-4
D0 FA    BNE *-4
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>48      PHA
38      SEC
A9 11    LDA #17
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 19,750: Line 19,758:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #113
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #113
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 19,767: Line 19,785:
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
!colspan="2"|8 bytes
A9      LDA #113
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9       LDA #113
A9 69    LDA #$69 ;hides 'ADC #$F8'
20 xx xx JSR delay_a_25_clocks
F8      SED ;first loop only
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
EA  ... NOP      &times; 2
|-
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 19,784: Line 19,803:
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
|<pre>EA  ... NOP      &times; 2
A0 1C    LDY #28
18      CLC
88      DEY
A9 EB   LDA #$EB ;hides 'SBC #$7A'
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
7A       NOP ;first loop only
|-
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|<pre>18      CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA  ... NOP      &times; 2
10 F8   BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 19,806: Line 19,820:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 19,836: Line 19,844:
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
48      PHA
A9      LDA #106
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #106
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,918: Line 19,926:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>38       SEC
A2 1C   LDX #28
A9 1D   LDA #29
CA      DEX
E9 01    SBC #1
D0 FB   BNE *-3
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,930: Line 19,937:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>08       PHP
A9 1D   LDA #29
A2 1C   LDX #28
E9 01    SBC #1
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #114
A9      LDA #114
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #114
A9      LDA #114
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>08      PHP
08       PHP
48      PHA
A9      LDA #107
20 xx xx JSR delay_a_25_clocks
68      PLA
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A, and S; 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
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, C, and V; 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
|-
|<pre>08      PHP
48      PHA
A9      LDA #107
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
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 19,978: Line 19,986:
28      PLP
28      PLP
30 F9    BMI *-5
30 F9    BMI *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
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 19,987: Line 19,995:
28      PLP
28      PLP
30 F9    BMI *-5
30 F9    BMI *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,998: Line 20,006:
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<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>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 20,014: Line 20,032:
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Requires @rts12, and @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,080: Line 20,088:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #115
A9      LDA #115
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #115
A9      LDA #115
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,099: Line 20,107:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA  ... NOP      &times; 2
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,113: Line 20,128:
30 FA    BMI *-4
30 FA    BMI *-4
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>EA      NOP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA  ... NOP      &times; 2
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,128: Line 20,136:
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>08      PHP
08       PHP
48       PHA
A0 1B    LDY #27
A9       LDA #108
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3
68       PLA
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>EA   ... NOP     &times; 3
08      PHP
18       CLC
A2 1B    LDX #27
A9 EB   LDA #$EB ;hides 'SBC #$7A'
CA      DEX
7A      NOP ;first loop only
D0 FB    BNE *-3
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
28       PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 1C   LDA #28
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,162: Line 20,163:
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 3
|<pre>48   ... PHA     &times; 2
18       CLC
38       SEC
A9 EB   LDA #$EB ;hides 'SBC #$7A'
A9 1C   LDA #28
7A      NOP ;first loop only
E9 01    SBC #1
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 20,175: Line 20,190:
D0 FA    BNE *-4
D0 FA    BNE *-4
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
|-
|-
|<pre>08      PHP
!colspan="2"|10 bytes
48      PHA
A9      LDA #108
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,196: Line 20,204:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
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      &times; 3
|<pre>EA  ... NOP      &times; 3
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      &times; 2
|<pre>EA  ... NOP      &times; 2
08       PHP
48       PHA
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
48       PHA
08       PHP
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 20,251: Line 20,251:
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 20,287: Line 20,295:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 1D    LDY #29
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 20,293: Line 20,306:
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
|<pre>48      PHA
A0 1D    LDY #29
A9      LDA #116
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #116
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,303: Line 20,321:
9A      TXS ;first loop only
9A      TXS ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>08      PHP
A9      LDA #116
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #116
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>38      SEC
08      PHP
A9 15    LDA #21
A2 1C   LDX #28
EA      NOP
CA      DEX
E9 01   SBC #1
D0 FB   BNE *-3
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,330: Line 20,337:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>EA      NOP
A9 15   LDA #21
08       PHP
EA       NOP
A2 1C   LDX #28
E9 01    SBC #1
CA       DEX
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
7A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
7A      NOP ;first loop only
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,421: Line 20,429:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18       CLC
A9       LDA #117
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
20 xx xx JSR delay_a_25_clocks
9A       TXS ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,432: Line 20,439:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #117
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9A      TXS ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,491: Line 20,499:
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 3
08      PHP
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A, and S; 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
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 2
08      PHP
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
3A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, C, and V; 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
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 20,517: Line 20,525:
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA     &times; 2
|<pre>EA  ... NOP      &times; 3
48       PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA   ... NOP     &times; 3
08      PHP
08      PHP
38      SEC
38      SEC
A9 1B   LDA #27
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
E9 01    SBC #1
3A      NOP ;first loop only
D0 F9   BNE *-5
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 3
Line 20,532: Line 20,548:
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>EA   ... NOP     &times; 3
|<pre>48   ... PHA     &times; 2
08      PHP
08      PHP
38      SEC
38      SEC
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
A9 1B   LDA #27
3A      NOP ;first loop only
E9 01    SBC #1
D0 FA   BNE *-4
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,577: Line 20,576:
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>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</pre>||Requires @rts12; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 20,607: Line 20,615:
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
A0 1D    LDY #29
A9      LDA #118
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
A2 1D    LDX #29
A9      LDA #118
CA       DEX
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 20,623: Line 20,631:
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 2
A9      LDA #118
A2 1D    LDX #29
20 xx xx JSR delay_a_25_clocks
CA      DEX
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
A9      LDA #118
A0 1D    LDY #29
20 xx xx JSR delay_a_25_clocks
88      DEY
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,668: Line 20,676:
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
48      PHA
A9      LDA #111
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
7A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
7A      NOP ;first loop only
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #111
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,756: Line 20,764:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,769: Line 20,782:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 1E    LDA #30
A9       LDA #119
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,778: Line 20,791:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #119
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,798: Line 20,806:
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #112
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 20,807: Line 20,829:
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
|-
|-
|<pre>48   ... PHA     &times; 2
!colspan="2"|10 bytes
|-
|<pre>04 04    NOP $04
48       PHA
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
7A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, 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
|-
|-
|<pre>08      PHP
|<pre>04 04    NOP $04
48       PHA
08      PHP
A9       LDA #112
18       CLC
20 xx xx JSR delay_a_25_clocks
A9 EB    LDA #$EB ;hides 'SBC #$7A'
68      PLA
7A      NOP ;first loop only
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>48  ... PHA      &times; 2
38      SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 20,831: Line 20,862:
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
!colspan="2"|11 bytes
|-
|<pre>24 24    BIT $24
48       PHA
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>04 04    NOP $04
|<pre>08      PHP
08      PHP
A5 A5    LDA $A5
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
A5 A5    LDA $A5
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
Line 20,863: Line 20,879:
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>24 24    BIT $24
48      PHA
38      SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 20,883: Line 20,891:
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
08      PHP
28      PLP
18      CLC
D0 F8    BNE *-6
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,902: Line 20,901:
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
08      PHP
28      PLP
18      CLC
D0 F8    BNE *-6
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 20,949: Line 20,957:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #120
A9      LDA #120
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #120
A9      LDA #120
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 20,973: Line 20,981:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<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>A5 A5    LDA $A5
|<pre>A5 A5    LDA $A5
Line 20,980: Line 20,995:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 1C    LDX #28
48      PHA
CA       DEX
A9      LDA #113
D0 FB   BNE *-3
20 xx xx JSR delay_a_25_clocks
F6 xx    INC @zptemp,X
68      PLA
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48       PHA
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP       /
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 20,999: Line 21,020:
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
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 21,014: Line 21,029:
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
|-
|-
|<pre>08      PHP
!colspan="2"|10 bytes
48      PHA
A9      LDA #113
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA  ... NOP      &times; 2
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,044: Line 21,060:
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>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA  ... NOP      &times; 2
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 21,106: Line 21,114:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A2 16    LDX #22
|<pre>A2 16    LDX #22
Line 21,116: Line 21,129:
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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #121
A9      LDA #121
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #121
A9      LDA #121
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 21,157: Line 21,165:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,209: Line 21,217:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A0 1F    LDY #31
|<pre>A0 1F    LDY #31
Line 21,217: Line 21,229:
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>A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #122
A9      LDA #122
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #122
A9      LDA #122
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 21,270: Line 21,278:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @zptemp, @rts12, and @rts14; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @zptemp, @rts12, and @rts14; and writes in stack
|-
|<pre>EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,283: Line 21,285:
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 A5    LDA $A5
48      PHA
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 @rts12, and @rts14; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 21,297: Line 21,299:
28      PLP      /
28      PLP      /
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 21,307: Line 21,315:
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 3
08      PHP
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
7A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A, and S; 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
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 2
08      PHP
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
7A      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, C, and V; 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
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
Line 21,331: Line 21,339:
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
10 F8    BPL *-6
10 F8    BPL *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
Line 21,340: Line 21,348:
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
10 F8    BPL *-6
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
38      SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 21,356: Line 21,357:
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
|-
|<pre>48  ... PHA      &times; 3
38      SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 21,415: Line 21,423:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,440: Line 21,454:
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #123
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,450: Line 21,463:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #123
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 21,489: Line 21,497:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
Line 21,495: Line 21,503:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
Line 21,503: Line 21,511:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,536: Line 21,544:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,546: Line 21,559:
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>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,566: Line 21,574:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #124
A9      LDA #124
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #124
A9      LDA #124
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
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
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
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
D0 FA    BNE *-4
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,599: Line 21,607:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
08      PHP      \ &times; 2
28      PLP      /
28      PLP      /
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
08      PHP      \ &times; 2
28      PLP      /
28      PLP      /
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 21,637: Line 21,645:
AA      TAX
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 21,647: Line 21,665:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 21,683: Line 21,691:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 1F   LDY #31
A9 69   LDA #$69 ;hides 'ADC #$38'
88       DEY
38       SEC ;first loop only
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,693: Line 21,701:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<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
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 21,713: Line 21,726:
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9       LDA #125
38       SEC ;first loop only
20 xx xx JSR delay_a_25_clocks
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,722: Line 21,735:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #125
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 21,749: Line 21,757:
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
08      PHP
48      PHA
A0 1D    LDY #29
A9      LDA #118
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
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
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 5
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 1D    LDY #29
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
Line 21,762: Line 21,786:
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>A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 5
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #118
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 21,792: Line 21,800:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 1D    LDX #29
A0 1D    LDY #29
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 1D    LDY #29
A2 1D    LDX #29
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
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 21,857: Line 21,865:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 21,868: Line 21,881:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,887: Line 21,900:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9       LDA #126
38       SEC ;first loop only
20 xx xx JSR delay_a_25_clocks
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,896: Line 21,909:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #126
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 1E    LDA #30
A9 1E    LDA #30
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 1E    LDA #30
A9 1E    LDA #30
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,955: Line 21,963:
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,965: Line 21,983:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 22,002: Line 22,010:
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>A9      LDA #134
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>A9 EB    LDA #$EB ;hides 'SBC #$18'
|<pre>A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>A9      LDA #134
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 22,017: Line 22,025:
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>48      PHA
48      PHA
A9       LDA #127
A9 69    LDA #$69 ;hides 'ADC #$38'
20 xx xx JSR delay_a_25_clocks
38       SEC ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,028: Line 22,035:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
A9       LDA #127
48      PHA
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$38'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
38      SEC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,045: Line 22,048:
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<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
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
|<pre>08      PHP
Line 22,070: Line 22,085:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 A4    LDY $A4
48      PHA
A0 1E    LDY #30
A9      LDA #120
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3
68       PLA
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 22,081: Line 22,096:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #120
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 22,096: Line 22,104:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
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
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 22,106: Line 22,120:
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
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
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A, and S; requires @rts12, and @rts14; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
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
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
28       PLP</pre>||Clobbers A, and S; requires @rts12, and @rts14; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
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
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 22,135: Line 22,143:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>C5 C5    CMP $C5
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,143: Line 22,158:
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>48   ... PHA     &times; 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
08      PHP      \ &times; 2
D0 FA   BNE *-4
28      PLP      /
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
D0 F9   BNE *-5
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 22,158: Line 22,173:
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|12 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
|-
08      PHP      \ &times; 2
|<pre>08      PHP
28      PLP      /
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
48      PHA
18      CLC
18      CLC
Line 22,188: Line 22,196:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A2 17    LDX #23
|<pre>A2 17    LDX #23
Line 22,198: Line 22,211:
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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #128
A9      LDA #128
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #128
A9      LDA #128
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,238: Line 22,253:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 22,294: Line 22,302:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,312: Line 22,326:
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>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 22,345: Line 22,353:
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>E6 xx    INC @zptemp
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,353: Line 22,369:
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,421: Line 22,429:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 22,432: Line 22,446:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #130
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,442: Line 22,455:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #130
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
0A      ASL A ;first loop only
|-
EA      NOP
!colspan="2"|9 bytes
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,473: Line 22,489:
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>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,553: Line 22,561:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #131
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A9      LDA #131
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 22,562: Line 22,574:
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>08      PHP
A9      LDA #131
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #131
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR delay_a_25_clocks
0A      ASL A ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
EA       NOP
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,595: Line 22,610:
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>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 22,653: Line 22,661:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>68       PLA
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #132
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>08      PHP
A9      LDA #132
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 22,664: Line 22,676:
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes
|-
|-
|<pre>08       PHP
|<pre>68       PLA
A9       LDA #132
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR delay_a_25_clocks
0A       ASL A ;first loop only
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
EA       NOP
|-
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V
|<pre>48      PHA
A9       LDA #132
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 22,681: Line 22,689:
EA      NOP
EA      NOP
B0 FB    BCS *-3</pre>||Clobbers A, Z&N, C, and V
B0 FB    BCS *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>48  ... PHA      &times; 2
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,703: Line 22,717:
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
!colspan="2"|9 bytes
|-
|<pre>24 24    BIT $24
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,717: Line 22,732:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,724: Line 22,746:
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 A4    LDY $A4
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,737: Line 22,752:
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>24 24    BIT $24
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,813: Line 22,821:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
A9      LDA #133
A9      LDA #133
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #133
A9      LDA #133
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 22,835: Line 22,849:
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>EA  ... NOP      &times; 3
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 EB   LDA #$EB ;hides 'SBC #$18'
0A       ASL A ;first loop only
18       CLC ;first loop only
EA      NOP
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
B0 FB   BCS *-3</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 22,848: Line 22,861:
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|9 bytes
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
|<pre>EA  ... NOP      &times; 2
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 22,875: Line 22,890:
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>EA  ... NOP      &times; 2
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,924: Line 22,932:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,937: Line 22,950:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 21    LDA #33
A9       LDA #134
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9       LDA #134
18      CLC ;first loop only
20 xx xx JSR delay_a_25_clocks
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,955: Line 22,967:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9       LDA #134
A9 EB    LDA #$EB ;hides 'SBC #$18'
20 xx xx JSR delay_a_25_clocks
18      CLC ;first loop only
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
A9      LDA #134
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>E6 xx    INC @zptemp
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,973: Line 22,988:
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #127
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,987: Line 23,009:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48   ... PHA     &times; 2
24 24    BIT $24
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
EA      NOP
A9      LDA #127
A5 A5    LDA $A5
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>08      PHP
EA      NOP
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 23,018: Line 23,034:
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 23,036: Line 23,044:
D0 F8    BNE *-6
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,045: Line 23,061:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 23,122: Line 23,130:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>68  ... PLA      &times; 2
|<pre>48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9       LDA #135
18       CLC ;first loop only
20 xx xx JSR delay_a_25_clocks
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,132: Line 23,140:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>68  ... PLA      &times; 2
A9       LDA #135
A9 EB    LDA #$EB ;hides 'SBC #$18'
20 xx xx JSR delay_a_25_clocks
18      CLC ;first loop only
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,159: Line 23,174:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,202: Line 23,210:
C8  ... INY      &times; 2
C8  ... INY      &times; 2
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 5A    LDX #90 ;hides 'NOP'
E8  ... INX      &times; 2
10 FB    BPL *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,207: Line 23,219:
CA      DEX
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A2 5A    LDX #90 ;hides 'NOP'
E8  ... INX      &times; 2
10 FB    BPL *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 23,219: Line 23,227:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #136
A9      LDA #136
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #136
A9      LDA #136
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,245: Line 23,259:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
38      SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,295: Line 23,303:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #137
A9      LDA #137
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #137
A9      LDA #137
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 23,327: Line 23,335:
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
28       PLP</pre>||Clobbers A, and S; 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
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
68       PLA</pre>||Clobbers S, Z&N, C, and V; 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
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,363: Line 23,379:
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>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,425: Line 23,433:
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #138
A9      LDA #138
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #138
A9      LDA #138
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 23,474: Line 23,482:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>08      PHP
08      PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #131
0A       ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
EA      NOP
68       PLA
B0 FB    BCS *-3
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48  ... PHA     &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
48       PHA
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48      PHA
48      PHA
08      PHP
A9       LDA #131
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR delay_a_25_clocks
0A      ASL A ;first loop only
68       PLA
EA       NOP
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
B0 FB    BCS *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 23,544: Line 23,552:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,557: Line 23,570:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 22    LDA #34
A9       LDA #139
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,566: Line 23,579:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #139
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>68       PLA
|<pre>08       PHP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #132
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
EA      NOP
68       PLA
B0 FB    BCS *-3
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>08      PHP
E6 xx   INC @zptemp
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires @zptemp, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 23,596: Line 23,596:
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
48      PHA
E6 xx    INC @zptemp
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp, and support for unofficial opcodes; and writes in stack
|-
|<pre>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</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,611: Line 23,618:
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
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
48      PHA
A9       LDA #132
08      PHP
20 xx xx JSR delay_a_25_clocks
A9 EB    LDA #$EB ;hides 'SBC #$18'
68      PLA
18      CLC ;first loop only
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08       PHP
48       PHA
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
EA      NOP
EA      NOP
B0 FB    BCS *-3
B0 FB    BCS *-3
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
48       PHA
08       PHP
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
EA      NOP
EA      NOP
B0 FB    BCS *-3
B0 FB    BCS *-3
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,695: Line 23,703:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #140
A9      LDA #140
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #140
A9      LDA #140
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,713: Line 23,721:
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>48  ... PHA      &times; 2
|<pre>08      PHP
08      PHP
48      PHA
A9      LDA #133
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
28       PLP</pre>||Clobbers A, and S; 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
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 2
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
68       PLA</pre>||Clobbers S, Z&N, C, and V; 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
|-
|<pre>08      PHP
48      PHA
A9      LDA #133
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 23,743: Line 23,751:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>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</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA  ... NOP      &times; 3
E6 xx    INC @zptemp
48       PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 EB   LDA #$EB ;hides 'SBC #$18'
0A       ASL A ;first loop only
18       CLC ;first loop only
EA      NOP
D0 FC    BNE *-2
B0 FB   BCS *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>EA   ... NOP      &times; 3
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>EA      NOP
48       PHA
48   ... PHA     &times; 2
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
EA      NOP
EA      NOP
B0 FB    BCS *-3
B0 FB    BCS *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,782: Line 23,812:
B0 FB    BCS *-3
B0 FB    BCS *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 23,850: Line 23,858:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #141
A9      LDA #141
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #141
A9      LDA #141
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,880: Line 23,894:
18      CLC
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>EA      NOP
38      SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 23,894: Line 23,902:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #134
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,915: Line 23,930:
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #134
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 23,976: Line 23,984:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #142
A9      LDA #142
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #142
A9      LDA #142
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 24,001: Line 24,009:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>20 xx xx JSR @rts15
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,007: Line 24,020:
E9 01    SBC #1
E9 01    SBC #1
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>20 xx xx JSR @rts15
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,020: Line 24,028:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
48      PHA
A9      LDA #135
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 2
|<pre>68  ... PLA      &times; 2
Line 24,027: Line 24,042:
D0 FC    BNE *-2
D0 FC    BNE *-2
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #135
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 24,057: Line 24,065:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
48      PHA
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
Line 24,067: Line 24,080:
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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
48      PHA
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,079: Line 24,087:
EA      NOP
EA      NOP
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|<pre>A0 16    LDY #22
A5 A5    LDA $A5
88      DEY
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
Line 24,096: Line 24,099:
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
85 xx   STA @zptemp
A5 A5   LDA $A5
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 24,106: Line 24,109:
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
04 04   NOP $04
85 xx   STA @zptemp
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 @zptemp
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>48      PHA
0A       ASL A ;first loop only
A9       LDA #143
04 04    NOP $04
20 xx xx JSR delay_a_25_clocks
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,120: Line 24,123:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #143
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
04 04    NOP $04
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>A0 16    LDY #22
04 04    NOP $04
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
4C xx xx JMP *+3
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and not relocatable code
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,133: Line 24,146:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|<pre>08      PHP
0A      ASL A ;first loop only
A2 5A   LDX #90 ;hides 'NOP'
4C xx xx JMP *+3
E8  ... INX      &times; 2
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and not relocatable code
10 FB    BPL *-3
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,144: Line 24,158:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>08      PHP
A2 5A    LDX #90 ;hides 'NOP'
E8  ... INX      &times; 2
10 FB    BPL *-3
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,178: Line 24,186:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,237: Line 24,245:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,250: Line 24,263:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 23    LDA #35
A9       LDA #144
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,259: Line 24,272:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #144
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,284: Line 24,292:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
Line 24,290: Line 24,298:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
Line 24,298: Line 24,306:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,332: Line 24,340:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 D8    LDY #216 ;hides 'CLD'
C8  ... INY      &times; 2
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>A0 15    LDY #21 ;hides 'ORA zp,X'
|<pre>A0 15    LDY #21 ;hides 'ORA zp,X'
Line 24,343: Line 24,359:
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 D8   LDY #216 ;hides 'CLD'
|<pre>A0 14   LDY #20 ;hides 'NOP zp,X'
C8  ... INY      &times; 2
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers Y, Z&N, and D
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 D8   LDX #216 ;hides 'CLD'
|<pre>A2 14   LDX #20 ;hides 'NOP zp,X'
E8  ... INX      &times; 2
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and D
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,360: Line 24,378:
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'
EA      NOP
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,383: Line 24,391:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #145
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,394: Line 24,401:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9       LDA #145
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR delay_a_25_clocks
0A      ASL A ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
48       PHA
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 24,414: Line 24,422:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>38      SEC
A9 16    LDA #22
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,429: Line 24,443:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>08       PHP
A9 16    LDA #22
48      PHA
24 24    BIT $24
A9       LDA #138
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 24,446: Line 24,461:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #138
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 24,484: Line 24,492:
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,494: Line 24,511:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 24,552: Line 24,560:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #146
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,563: Line 24,570:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #146
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR delay_a_25_clocks
0A      ASL A ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
48       PHA
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,582: Line 24,596:
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>EA      NOP
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,651: Line 24,659:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 24    LDY #36
|<pre>A0 24    LDY #36
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 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #154
|<pre>A9      LDA #154
Line 24,677: Line 24,685:
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>68       PLA
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #147
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,688: Line 24,695:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>68       PLA
A9       LDA #147
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR delay_a_25_clocks
0A      ASL A ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
48       PHA
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
EA      NOP
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,702: Line 24,716:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>38      SEC
!colspan="2"|9 bytes
A9 14   LDA #20 ;hides 'NOP zp,X'
|-
EA      NOP
|<pre>A5 A5    LDA $A5
38      SEC
A9 23   LDA #35
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,717: Line 24,731:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>A5 A5    LDA $A5
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,743: Line 24,751:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
Line 24,749: Line 24,757:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
Line 24,757: Line 24,765:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 24,780: Line 24,788:
AA      TAX
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>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</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,790: Line 24,808:
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 3
E6 xx    INC @zptemp
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 EB   LDA #$EB ;hides 'SBC #$18'
0A       ASL A ;first loop only
18       CLC ;first loop only
EA      NOP
D0 FC   BNE *-2
B0 FB   BCS *-3
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,810: Line 24,827:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 24,853: Line 24,861:
C8      INY
C8      INY
D0 FA    BNE *-4</pre>||Clobbers Y, Z&N, and C; and requires @zptemp
D0 FA    BNE *-4</pre>||Clobbers Y, Z&N, and C; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #148
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #148
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 24,863: Line 24,881:
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>08      PHP
A9      LDA #148
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #148
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 24,924: Line 24,932:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,939: Line 24,955:
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 24,970: Line 24,978:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 1A    LDY #26
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1A    LDX #26
|<pre>A2 1A    LDX #26
Line 24,975: Line 24,988:
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 1A    LDY #26
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 24,987: Line 24,995:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,000: Line 25,013:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 24    LDA #36
A9       LDA #149
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,009: Line 25,022:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #149
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 25,035: Line 25,043:
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, @rts12, and @rts15; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, @rts12, and @rts15; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>08      PHP
48  ... PHA      &times; 2
48      PHA
20 xx xx JSR @rts12
A9       LDA #142
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 25,045: Line 25,055:
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
48   ... PHA     &times; 2
A9      LDA #142
20 xx xx JSR @rts12
20 xx xx JSR delay_a_25_clocks
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 25,061: Line 25,069:
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
|-
|-
|<pre>48      PHA
|<pre>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</pre>||Clobbers Z&N, C, and V; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|<pre>20 xx xx JSR @rts15
08      PHP
08      PHP
38      SEC
A9 EB   LDA #$EB ;hides 'SBC #$18'
A9 22   LDA #34
18      CLC ;first loop only
E9 01    SBC #1
D0 FC   BNE *-2
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 25,076: Line 25,090:
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>20 xx xx JSR @rts15
|<pre>48      PHA
08      PHP
08      PHP
A9 EB   LDA #$EB ;hides 'SBC #$18'
38      SEC
18      CLC ;first loop only
A9 22   LDA #34
D0 FC   BNE *-2
E9 01    SBC #1
28      PLP</pre>||Clobbers A; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
D0 F9   BNE *-5
|-
28      PLP</pre>||Clobbers A, and S; and writes in stack
|<pre>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</pre>||Clobbers Z&N, C, and V; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>24 24   BIT $24
A5 A5   LDA $A5
48      PHA
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>24 24   BIT $24
|<pre>08      PHP
48      PHA
A5 A5   LDA $A5
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 25,155: Line 25,163:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #150
A9      LDA #150
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #150
A9      LDA #150
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
48      PHA
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,180: Line 25,195:
30 FC    BMI *-2
30 FC    BMI *-2
28      PLP</pre>||Clobbers A, Y, and S; and writes in stack
28      PLP</pre>||Clobbers A, Y, and S; and writes in stack
|-
|<pre>48      PHA
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
48      PHA
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,204: Line 25,212:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
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
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
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
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9      LDA #143
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
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 04    NOP $04
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
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
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 04    NOP $04
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #143
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
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
4C xx xx JMP *+3
4C xx xx JMP *+3
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; writes in stack; and not relocatable code
68       PLA</pre>||Clobbers Z&N, C, and V; writes in stack; and not relocatable code
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,257: Line 25,265:
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
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
4C xx xx JMP *+3
4C xx xx JMP *+3
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; writes in stack; and not relocatable code
28       PLP</pre>||Clobbers A; writes in stack; and not relocatable code
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 25,307: Line 25,315:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
48      PHA
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>A2 17    LDX #23
|<pre>A2 17    LDX #23
Line 25,317: Line 25,330:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
48      PHA
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 25,340: Line 25,348:
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>48      PHA
0A       ASL A ;first loop only
A9       LDA #151
04 04    NOP $04
20 xx xx JSR delay_a_25_clocks
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,350: Line 25,358:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #151
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
04 04    NOP $04
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 1A    LDA #26
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,370: Line 25,384:
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>38      SEC
A9 1A    LDA #26
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,445: Line 25,453:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38       SEC
A9       LDA #152
A9 EB    LDA #$EB ;hides 'SBC #$DA'
20 xx xx JSR delay_a_25_clocks
DA       NOP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,456: Line 25,463:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #152
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 EB    LDA #$EB ;hides 'SBC #$DA'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
DA      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 D8    LDX #216 ;hides 'CLD'
E8  ... INX      &times; 2
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,468: Line 25,482:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>04 04    NOP $04
A2 D8   LDX #216 ;hides 'CLD'
38       SEC
E8  ... INX      &times; 2
A9 EB   LDA #$EB ;hides 'SBC #$DA'
D0 FB   BNE *-3
DA      NOP ;first loop only
28      PLP</pre>||Clobbers X; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,479: Line 25,493:
E9 01    SBC #1
E9 01    SBC #1
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 04    NOP $04
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,493: Line 25,501:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
20 xx xx JSR @rts15
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,506: Line 25,508:
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
20 xx xx JSR @rts15
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
18      CLC
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 25,515: Line 25,523:
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 25,523: Line 25,531:
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
28       PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>48      PHA
8C      TXA
48      PHA
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>08      PHP
18      CLC
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 25,540: Line 25,539:
04 04    NOP $04
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
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
18      CLC
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 25,548: Line 25,547:
04 04    NOP $04
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>68      PLA
8C      TXA
48      PHA
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 16    LDA #22
A9 16    LDA #22
Line 25,558: Line 25,566:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 16    LDA #22
A9 16    LDA #22
Line 25,566: Line 25,574:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 25,610: Line 25,618:
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
A0 24    LDY #36
A9      LDA #153
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
A2 24    LDX #36
A9      LDA #153
CA       DEX
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 25,626: Line 25,634:
B0 F9    BCS *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
B0 F9    BCS *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 2
A9      LDA #153
A2 24    LDX #36
20 xx xx JSR delay_a_25_clocks
CA      DEX
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
A9      LDA #153
A0 24    LDY #36
20 xx xx JSR delay_a_25_clocks
88      DEY
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A0 24    LDY #36
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 25,642: Line 25,655:
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 24    LDY #36
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 25,672: Line 25,680:
|<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,694: Line 25,702:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 25,743: Line 25,751:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,756: Line 25,769:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 25    LDA #37
A9       LDA #154
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,765: Line 25,778:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #154
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,783: Line 25,791:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
38      SEC
38      SEC
A9 23   LDA #35
A9 14   LDA #20 ;hides 'NOP zp,X'
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
38      SEC
38      SEC
A9 23   LDA #35
A9 14   LDA #20 ;hides 'NOP zp,X'
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 2
38      SEC
38      SEC
A9 14   LDA #20 ;hides 'NOP zp,X'
A9 23   LDA #35
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
38      SEC
38      SEC
A9 14   LDA #20 ;hides 'NOP zp,X'
A9 23   LDA #35
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>24 24   BIT $24
A5 A5   LDA $A5
48      PHA
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>24 24   BIT $24
|<pre>08      PHP
48      PHA
A5 A5   LDA $A5
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 25,889: Line 25,897:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68       PLA
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #155
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,900: Line 25,907:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>68       PLA
A9       LDA #155
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR delay_a_25_clocks
0A      ASL A ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
48       PHA
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA  ... NOP      &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,920: Line 25,934:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers Y; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #148
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
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
85 xx   STA @zptemp
04 04   NOP $04
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 25,940: Line 25,961:
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>EA  ... NOP      &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
04 04    NOP $04
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>08      PHP
48      PHA
A9      LDA #148
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 26,035: Line 26,043:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #156
A9      LDA #156
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #156
A9      LDA #156
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,061: Line 26,075:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
38      SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
DA      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
DA      NOP ;first loop only
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
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,138: Line 26,146:
D0 F7    BNE *-7
D0 F7    BNE *-7
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>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</pre>||Requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,148: Line 26,165:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>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</pre>||Requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 26,190: Line 26,198:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #157
A9      LDA #157
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #157
A9      LDA #157
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 26,206: Line 26,214:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 F9    BMI *-5</pre>||Clobbers A, Z&N, C, and V; requires @rts12, and @rts14; and writes in stack
30 F9    BMI *-5</pre>||Clobbers A, Z&N, C, and V; requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,221: Line 26,235:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,248: Line 26,262:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>A5 A5    LDA $A5
38      SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,300: Line 26,308:
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 2
08      PHP
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Writes in stack; and not relocatable code
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,345: Line 26,344:
AA      TAX
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>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</pre>||Writes in stack; and not relocatable code
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 26,390: Line 26,398:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9       LDA #158
3A      NOP ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,401: Line 26,408:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>38       SEC
A9       LDA #158
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
20 xx xx JSR delay_a_25_clocks
3A      NOP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
EA       NOP
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 26,423: Line 26,431:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
A0 17    LDY #23
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 17    LDX #23
A2 17    LDX #23
C5 C5   CMP $C5
24 24   BIT $24
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 26,439: Line 26,440:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A0 17   LDY #23
0A       ASL A ;first loop only
C5 C5    CMP $C5
85 xx    STA @zptemp
88       DEY
B0 FA   BCS *-4
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,455: Line 26,456:
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 04   NOP $04
85 xx   STA @zptemp
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 @zptemp; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #151
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,467: Line 26,475:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #151
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
04 04    NOP $04
68      PLA
B0 FA    BCS *-4
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
Line 26,481: Line 26,489:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
Line 26,489: Line 26,497:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 26,525: Line 26,533:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,538: Line 26,551:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 26    LDA #38
A9       LDA #159
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,548: Line 26,561:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
A9      LDA #159
|-
|<pre>08      PHP
48      PHA
A9      LDA #152
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>48   ... PHA     &times; 2
|-
|<pre>48       PHA
08      PHP
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
DA      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A, and S; 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
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
DA      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, C, and V; 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
|-
|<pre>08      PHP
48      PHA
A9      LDA #152
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 26,586: Line 26,594:
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>04 04    NOP $04
08      PHP
48      PHA
38      SEC
38      SEC
A9 24   LDA #36
A9 EB   LDA #$EB ;hides 'SBC #$DA'
E9 01    SBC #1
DA       NOP ;first loop only
D0 F9    BNE *-5
D0 FA   BNE *-4
28       PLP</pre>||Clobbers A, and S; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9   BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
Line 26,609: Line 26,610:
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 04    NOP $04
|<pre>48   ... PHA     &times; 2
48       PHA
38      SEC
38      SEC
A9 EB   LDA #$EB ;hides 'SBC #$DA'
A9 24   LDA #36
DA      NOP ;first loop only
E9 01    SBC #1
D0 FA   BNE *-4
D0 F9   BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>48      PHA
|-
08      PHP
|<pre>08      PHP
A5 A5    LDA $A5
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>24 24    BIT $24
|<pre>24 24    BIT $24
Line 26,634: Line 26,634:
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A5 A5    LDA $A5
38      SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 26,646: Line 26,654:
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
20 xx xx JSR @rts14
18      CLC
D0 F8    BNE *-6
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,664: Line 26,664:
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
20 xx xx JSR @rts14
18      CLC
D0 F8    BNE *-6
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 26,711: Line 26,719:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #160
A9      LDA #160
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #160
A9      LDA #160
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 26,745: Line 26,753:
F6 xx    INC @zptemp,X
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #153
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 26,767: Line 26,782:
D0 FA    BNE *-4
D0 FA    BNE *-4
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #153
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 1A    LDX #26
A0 1A    LDY #26
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,797: Line 26,805:
08      PHP
08      PHP
A2 17    LDX #23
A2 17    LDX #23
C5 C5   CMP $C5
24 24   BIT $24
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>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</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,814: Line 26,830:
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
85 xx   STA @zptemp
04 04   NOP $04
B0 F8    BCS *-6
B0 F8    BCS *-6
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,825: Line 26,841:
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
|-
|-
|<pre>48      PHA
!colspan="2"|11 bytes
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</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,900: Line 26,908:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #161
A9      LDA #161
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #161
A9      LDA #161
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,925: Line 26,939:
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>EA      NOP
38      SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,957: Line 26,965:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 23   LDA #35
A9 14   LDA #20 ;hides 'NOP zp,X'
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48      PHA
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 14   LDA #20 ;hides 'NOP zp,X'
A9 23   LDA #35
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 27,009: Line 27,017:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #162
A9      LDA #162
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #162
A9      LDA #162
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
38      SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,035: Line 27,049:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,056: Line 27,070:
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>A5 A5    LDA $A5
38      SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,081: Line 27,089:
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 3
08      PHP
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
DA      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A, and S; 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
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 2
08      PHP
38      SEC
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
DA      NOP ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, C, and V; 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
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,106: Line 27,114:
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 27,119: Line 27,135:
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
85 xx   STA @zptemp
04 04   NOP $04
B0 FA    BCS *-4
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>EA   ... NOP     &times; 2
08      PHP
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</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 2
08      PHP
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 27,198: Line 27,206:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 1C    LDY #28
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1C    LDX #28
|<pre>A2 1C    LDX #28
Line 27,203: Line 27,216:
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 1C    LDY #28
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #163
A9      LDA #163
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #163
A9      LDA #163
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 27,245: Line 27,253:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 25    LDX #37
A0 25    LDY #37
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>08      PHP
|<pre>08      PHP
Line 27,263: Line 27,271:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,309: Line 27,317:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,319: Line 27,332:
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>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 27,339: Line 27,347:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #164
A9      LDA #164
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #164
A9      LDA #164
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 27,360: Line 27,368:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
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
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 F9    BMI *-5
30 F9    BMI *-5
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
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
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 F9    BMI *-5
30 F9    BMI *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,382: Line 27,397:
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
!colspan="2"|11 bytes
|-
|<pre>24 24    BIT $24
48       PHA
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,407: Line 27,423:
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 24    BIT $24
!colspan="2"|12 bytes
48      PHA
38      SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,449: Line 27,457:
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
48      PHA
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,470: Line 27,468:
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
48      PHA
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 27,489: Line 27,497:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #172
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
Line 27,494: Line 27,505:
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A9      LDA #172
!colspan="2"|6 bytes
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
C5 C5    CMP $C5
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and C
|-
|-
!colspan="2"|6 bytes
|<pre>A2 E8    LDX #232 ;hides 'INX'
24 24    BIT $24
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
Line 27,508: Line 27,524:
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
C5 C5   CMP $C5
85 xx   STA @zptemp
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and C
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
24 24   BIT $24
04 04   NOP $04
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and V
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
85 xx    STA @zptemp
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,524: Line 27,536:
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>A2 E8    LDX #232 ;hides 'INX'
!colspan="2"|7 bytes
04 04    NOP $04
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA  ... NOP      &times; 2
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
Line 27,540: Line 27,553:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>48      PHA
0A       ASL A ;first loop only
A9       LDA #165
EA  ... NOP      &times; 2
20 xx xx JSR delay_a_25_clocks
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,549: Line 27,562:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #165
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 27,573: Line 27,581:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>08      PHP
48      PHA
48      PHA
20 xx xx JSR @rts15
A9      LDA #158
18       CLC
20 xx xx JSR delay_a_25_clocks
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts15; and writes in stack
68       PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48       PHA
48   ... PHA     &times; 2
20 xx xx JSR @rts14
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>08      PHP
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
Line 27,590: Line 27,594:
EA      NOP
EA      NOP
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
Line 27,598: Line 27,602:
EA      NOP
EA      NOP
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
20 xx xx JSR @rts14
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
A9      LDA #158
20 xx xx JSR @rts15
20 xx xx JSR delay_a_25_clocks
18       CLC
68       PLA
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts15; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
Line 27,615: Line 27,623:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
Line 27,623: Line 27,631:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,690: Line 27,698:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 27,701: Line 27,715:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
18       CLC
A9       LDA #166
A9 69    LDA #$69 ;hides 'ADC #$6A'
20 xx xx JSR delay_a_25_clocks
6A       ROR A ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,711: Line 27,724:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #166
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 27,721: Line 27,729:
|<pre>EA      NOP
|<pre>EA      NOP
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>EA      NOP
|<pre>EA      NOP
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
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,778: Line 27,786:
D0 F8    BNE *-6
D0 F8    BNE *-6
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>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,788: Line 27,806:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 27,832: Line 27,840:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18       CLC
A9       LDA #167
A9 69    LDA #$69 ;hides 'ADC #$6A'
20 xx xx JSR delay_a_25_clocks
6A       ROR A ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,843: Line 27,850:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #167
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$6A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
6A      ROR A ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 27,904: Line 27,912:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
Line 27,910: Line 27,918:
EA      NOP
EA      NOP
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; 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
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
Line 27,919: Line 27,927:
EA      NOP
EA      NOP
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
Line 27,930: Line 27,938:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
Line 27,939: Line 27,947:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1A    LDX #26
A0 1A    LDY #26
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
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 28,010: Line 28,018:
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
A0 27    LDY #39
A9      LDA #168
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #168
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,021: Line 28,034:
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 2
A9      LDA #168
A0 27    LDY #39
20 xx xx JSR delay_a_25_clocks
88       DEY
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A9      LDA #168
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 2
A0 27   LDY #39
18      CLC
88       DEY
A9 69   LDA #$69 ;hides 'ADC #$6A'
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
6A       ROR A ;first loop only
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 28,043: Line 28,052:
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
|<pre>EA  ... NOP      &times; 3
18      CLC
A0 27   LDY #39
A9 69   LDA #$69 ;hides 'ADC #$6A'
88       DEY
6A       ROR A ;first loop only
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,083: Line 28,091:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 28,133: Line 28,141:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>38       SEC
A2 27   LDX #39
A9 28   LDA #40
CA      DEX
E9 01    SBC #1
D0 FB   BNE *-3
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,145: Line 28,152:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>08       PHP
A9 28   LDA #40
A2 27   LDX #39
E9 01    SBC #1
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #169
A9      LDA #169
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #169
A9      LDA #169
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,170: Line 28,178:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,179: Line 28,194:
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
!colspan="2"|11 bytes
|-
|<pre>24 24    BIT $24
48       PHA
38      SEC
38      SEC
A9 26    LDA #38
A9 26    LDA #38
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,196: Line 28,212:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>24 24    BIT $24
!colspan="2"|12 bytes
48      PHA
|-
38      SEC
|<pre>48  ... PHA      &times; 2
A9 26    LDA #38
08      PHP
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48  ... PHA      &times; 2
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
Line 28,238: Line 28,246:
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 28,248: Line 28,266:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA  ... NOP      &times; 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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 28,295: Line 28,303:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #170
A9      LDA #170
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #170
A9      LDA #170
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 1C    LDY #28
A2 1C    LDX #28
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
A2 1C    LDX #28
A0 1C    LDY #28
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>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 28,356: Line 28,364:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 25    LDX #37
A0 25    LDY #37
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 28,419: Line 28,427:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #171
A9      LDA #171
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #171
A9      LDA #171
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,451: Line 28,466:
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>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,521: Line 28,529:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
A9       LDA #172
9A      TXS ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,532: Line 28,539:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9       LDA #172
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
20 xx xx JSR delay_a_25_clocks
9A      TXS ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
EA       NOP
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 1D    LDA #29
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,544: Line 28,558:
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>38      SEC
A9 1D    LDA #29
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,559: Line 28,567:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA  ... NOP      &times; 2
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,573: Line 28,588:
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>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA  ... NOP      &times; 2
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,638: Line 28,646:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #173
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #173
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 28,648: Line 28,666:
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>08      PHP
A9      LDA #173
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #173
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A6 A6   LDX $A6
|<pre>38      SEC
A2 1D    LDX #29
A9 69   LDA #$69 ;hides 'ADC #$F8'
EA       NOP
F8      SED ;first loop only
CA       DEX
08       PHP
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
28       PLP
10 F8   BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
Line 28,673: Line 28,682:
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>38      SEC
|<pre>A6 A6    LDX $A6
A9 69   LDA #$69 ;hides 'ADC #$F8'
A2 1D   LDX #29
F8      SED ;first loop only
EA       NOP
08       PHP
CA       DEX
28       PLP
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
10 F8   BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,687: Line 28,695:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,709: Line 28,725:
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>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,759: Line 28,767:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,772: Line 28,785:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 29    LDA #41
A9       LDA #174
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,782: Line 28,795:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
A9      LDA #174
|-
|<pre>08      PHP
48      PHA
A9      LDA #167
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>48   ... PHA     &times; 2
|-
|<pre>48       PHA
08      PHP
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
6A      ROR A ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
6A      ROR A ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #167
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>24 24   BIT $24
A5 A5   LDA $A5
48      PHA
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
6A      ROR A ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>24 24   BIT $24
|<pre>08      PHP
48      PHA
A5 A5   LDA $A5
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
6A      ROR A ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 28,900: Line 28,908:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #175
A9      LDA #175
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #175
A9      LDA #175
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 28,935: Line 28,943:
F6 xx    INC @zptemp,X
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
|-
|<pre>08      PHP
48      PHA
A9      LDA #168
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,943: Line 28,958:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 27    LDY #39
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 28,951: Line 28,973:
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
!colspan="2"|10 bytes
08      PHP
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
48      PHA
48      PHA
A9       LDA #168
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$6A'
68      PLA
6A      ROR A ;first loop only
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4
|-
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 28,977: Line 28,993:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 27    LDX #39
A0 27    LDY #39
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 27    LDY #39
A2 27    LDX #39
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
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 29,055: Line 29,063:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #176
A9      LDA #176
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #176
A9      LDA #176
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,081: Line 29,095:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
!colspan="2"|9 bytes
|-
|<pre>48       PHA
38      SEC
38      SEC
A9 29   LDA #41
A9 28   LDA #40
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 F9    BNE *-5
|-
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,095: Line 29,110:
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,154: Line 29,162:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #177
A9      LDA #177
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #177
A9      LDA #177
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 29,203: Line 29,211:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 3
08      PHP
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
6A      ROR A ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 2
08      PHP
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
6A      ROR A ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08       PHP
48       PHA
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
6A      ROR A ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
48       PHA
08       PHP
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
6A      ROR A ;first loop only
D0 FA    BNE *-4
D0 FA    BNE *-4
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 29,277: Line 29,285:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #178
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #178
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 29,287: Line 29,305:
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>08      PHP
A9      LDA #178
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #178
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 29,381: Line 29,389:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,394: Line 29,407:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 2A    LDA #42
A9       LDA #179
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,403: Line 29,416:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #179
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 29,420: Line 29,428:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
Line 29,426: Line 29,434:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
Line 29,434: Line 29,442:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 29,481: Line 29,489:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #180
A9      LDA #180
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #180
A9      LDA #180
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 29,514: Line 29,522:
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>08      PHP
08       PHP
48      PHA
A2 28   LDX #40
A9      LDA #173
CA      DEX
20 xx xx JSR delay_a_25_clocks
D0 FB   BNE *-3
68      PLA
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38       SEC
A9 29   LDA #41
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 29,529: Line 29,543:
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
38       SEC
08       PHP
A9 29   LDA #41
A2 28   LDX #40
E9 01    SBC #1
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|10 bytes
48      PHA
A9      LDA #173
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>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</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,551: Line 29,568:
10 F8    BPL *-6
10 F8    BPL *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 1D    LDY #29
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,568: Line 29,577:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
A4 A4    LDY $A4
A9 69   LDA #$69 ;hides 'ADC #$F8'
A0 1D   LDY #29
F8      SED ;first loop only
EA       NOP
08       PHP
88       DEY
28       PLP
D0 FA   BNE *-4
10 F8   BPL *-6
28       PLP</pre>||Clobbers Y; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 29,613: Line 29,621:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #181
A9      LDA #181
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #181
A9      LDA #181
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,638: Line 29,652:
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>EA      NOP
38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,698: Line 29,706:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 2B    LDY #43
|<pre>A0 2B    LDY #43
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 2B    LDX #43
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #189
|<pre>A9      LDA #189
Line 29,712: Line 29,720:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #182
A9      LDA #182
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #182
A9      LDA #182
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
38       SEC
A0 29   LDY #41
A9 2A   LDA #42
88      DEY
E9 01    SBC #1
D0 FB   BNE *-3
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,739: Line 29,746:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,759: Line 29,773:
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 A5    LDA $A5
38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,787: Line 29,795:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
Line 29,794: Line 29,802:
28      PLP
28      PLP
10 F8    BPL *-6
10 F8    BPL *-6
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 69    LDA #$69 ;hides 'ADC #$F8'
Line 29,804: Line 29,812:
28      PLP
28      PLP
10 F8    BPL *-6
10 F8    BPL *-6
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 3
Line 29,871: Line 29,879:
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #183
A9      LDA #183
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #183
A9      LDA #183
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 29,901: Line 29,909:
|<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,923: Line 29,931:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 29,954: Line 29,962:
=== 218 cycles ===
=== 218 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #191
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A2 1F    LDX #31
|<pre>A2 1F    LDX #31
Line 29,965: Line 29,983:
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>A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,985: Line 29,998:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A9      LDA #184
A9      LDA #184
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9      LDA #184
A9      LDA #184
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 30,006: Line 30,019:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
Line 30,029: Line 30,042:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
Line 30,037: Line 30,050:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7
D0 F7    BNE *-7
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 30,068: Line 30,081:
=== 219 cycles ===
=== 219 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #192
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 30,074: Line 30,097:
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 2B    LDX #43
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>EA      NOP
A9      LDA #190
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,096: Line 30,110:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9       LDA #185
3A      NOP ;first loop only
20 xx xx JSR delay_a_25_clocks
48       PHA
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,107: Line 30,120:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>38       SEC
A9       LDA #185
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
20 xx xx JSR delay_a_25_clocks
3A      NOP ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
48       PHA
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 30,119: Line 30,139:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 30,141: Line 30,155:
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>08      PHP
08       PHP
48       PHA
A0 29    LDY #41
A9       LDA #178
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3
68       PLA
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 30,155: Line 30,169:
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 2
48      PHA
08      PHP
A9       LDA #178
A0 29    LDY #41
20 xx xx JSR delay_a_25_clocks
88       DEY
68      PLA
D0 FB    BNE *-3
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 30,224: Line 30,238:
=== 220 cycles ===
=== 220 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #193
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
Line 30,236: Line 30,255:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A9      LDA #189
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9       LDA #190
A9 69    LDA #$69 ;hides 'ADC #$38'
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, S, Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
38      SEC ;first loop only
|-
EA      NOP
!colspan="2"|7 bytes
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 30,256: Line 30,273:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9       LDA #186
38      SEC ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,266: Line 30,282:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #186
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 30,290: Line 30,301:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,338: Line 30,349:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
|<pre>A9      LDA #194
|-
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|<pre>68      PLA
|-
A9      LDA #190
!colspan="2"|7 bytes
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9       LDA #187
38      SEC ;first loop only
20 xx xx JSR delay_a_25_clocks
EA       NOP
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,358: Line 30,365:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #187
A9 69    LDA #$69 ;hides 'ADC #$38'
20 xx xx JSR delay_a_25_clocks
38      SEC ;first loop only
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
EA       NOP
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 30,429: Line 30,437:
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>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 3
08      PHP
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>48  ... PHA      &times; 2
08      PHP
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 30,462: Line 30,470:
=== 222 cycles ===
=== 222 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #195
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
Line 30,468: Line 30,481:
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #188
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #188
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>68      PLA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 30,479: Line 30,508:
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>68      PLA
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 2
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, S, Z&N, C, and V
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A9      LDA #188
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #188
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,510: Line 30,529:
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>EA  ... NOP      &times; 2
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 30,537: Line 30,550:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
08       PHP
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 30,568: Line 30,581:
=== 223 cycles ===
=== 223 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #196
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
Line 30,581: Line 30,599:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,594: Line 30,617:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 2C    LDA #44
A9       LDA #189
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,603: Line 30,626:
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #189
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 30,627: Line 30,645:
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>24 24   BIT $24
A5 A5   LDA $A5
48      PHA
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>24 24   BIT $24
|<pre>08      PHP
48      PHA
A5 A5   LDA $A5
38      SEC
38      SEC
A9 2A    LDA #42
A9 2A    LDA #42
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 30,680: Line 30,698:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #197
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
Line 30,690: Line 30,711:
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 E4    LDY #228 ;hides 'CPX zp'
EA      NOP
C8      INY
D0 FB    BNE *-3</pre>||Clobbers Y, Z&N, C, and V
|-
|-
|<pre>A0 98    LDY #152 ;hides 'TYA'
|<pre>A0 98    LDY #152 ;hides 'TYA'
Line 30,695: Line 30,721:
88      DEY
88      DEY
30 FB    BMI *-3</pre>||Clobbers A, Y, and Z&N
30 FB    BMI *-3</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A0 E4    LDY #228 ;hides 'CPX zp'
EA      NOP
C8      INY
D0 FB    BNE *-3</pre>||Clobbers Y, Z&N, C, and V
|-
|-
|<pre>A0 64    LDY #100 ;hides 'NOP zp'
|<pre>A0 64    LDY #100 ;hides 'NOP zp'
Line 30,705: Line 30,726:
C8      INY
C8      INY
10 FB    BPL *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
10 FB    BPL *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|<pre>48      PHA
A0 2C    LDY #44
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>A4 A4    LDY $A4
A0 2C    LDY #44
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #190
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,713: Line 30,749:
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48       PHA
!colspan="2"|8 bytes
A9       LDA #190
|-
20 xx xx JSR delay_a_25_clocks
|<pre>48   ... PHA     &times; 2
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA       NOP
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA  ... NOP      &times; 3
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 12    LDY #18
A2 12    LDX #18
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 12    LDX #18
A0 12    LDY #18
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>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
48  ... PHA      &times; 2
10 F7    BPL *-7</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,752: Line 30,790:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>8C      TXA
|<pre>EA      NOP
8C      TXA
48      PHA
48      PHA
EA      NOP
A2 2A    LDX #42
A2 2A    LDX #42
CA      DEX
CA      DEX
Line 30,773: Line 30,811:
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
98       TYA
08      PHP
48      PHA
38       SEC
A0 29   LDY #41
A9 2A    LDA #42
88      DEY
E9 01   SBC #1
D0 FB   BNE *-3
D0 F9   BNE *-5
68      PLA
A8      TAY
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
EA      NOP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 29    LDA #41
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 225 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #198
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
|-
|<pre>A0 20    LDY #32
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 20    LDX #32
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #191
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #191
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A0 1F    LDY #31
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1F    LDX #31
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9      LDA #184
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 1A    LDA #26
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 226 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A9      LDA #199
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #192
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #192
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>18      CLC
A9 64    LDA #100 ;hides 'NOP zp'
EA      NOP
69 01    ADC #1
10 F9    BPL *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>48      PHA
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #185
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>8C      TXA
48      PHA
A2 18    LDX #24 ;hides 'CLC'
EA      NOP
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp, and support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; requires @zptemp, and support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
38      SEC
A9 1B    LDA #27
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 1B    LDA #27
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
98      TYA
48      PHA
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
38      SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 227 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #200
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 E8    LDX #232 ;hides 'INX'
68      PLA
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
A2 20    LDX #32
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 20    LDY #32
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #193
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #193
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 20    LDA #32
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #186
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 228 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #201
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A0 2C    LDY #44
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 2C    LDX #44
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9      LDA #194
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #194
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9      LDA #187
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>24 24    BIT $24
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A5 A5    LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
98      TYA
48      PHA
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
48      PHA
38      SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|14 bytes
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
48      PHA
38      SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 229 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #202
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>A4 A4    LDY $A4
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 A6    LDX $A6
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>48      PHA
A9      LDA #195
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #195
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>68      PLA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
38      SEC
A9 20    LDA #32
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #188
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>68      PLA
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 230 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #203
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #196
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #196
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A2 2C    LDX #44
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 2C    LDY #44
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #189
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
20 xx xx JSR @rts14
18      CLC
D0 F7    BNE *-7
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
24 24    BIT $24
48      PHA
38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 231 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 2E    LDY #46
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #204
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|7 bytes
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
E6 xx    INC @zptemp
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #197
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #197
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
48      PHA
B0 FA    BCS *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 E4    LDY #228 ;hides 'CPX zp'
EA      NOP
C8      INY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 E8    LDX #232 ;hides 'INX'
EA  ... NOP      &times; 2
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
04 04    NOP $04
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
48      PHA
A9      LDA #190
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12&times; 2
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>EA  ... NOP      &times; 3
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
8C      TXA
48      PHA
A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 232 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #205
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
|-
|<pre>A2 21    LDX #33
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 21    LDY #33
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #198
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #198
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 20    LDX #32
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 20    LDY #32
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>68      PLA
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 2C    LDX #44
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #191
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>08      PHP
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 233 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #206
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 2E    LDY #46
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
A9      LDA #199
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #199
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9      LDA #192
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>48      PHA
18      CLC
A9 64    LDA #100 ;hides 'NOP zp'
EA      NOP
69 01    ADC #1
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 64    LDA #100 ;hides 'NOP zp'
EA      NOP
69 01    ADC #1
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
08      PHP
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>24 24    BIT $24
48      PHA
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A5 A5    LDA $A5
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 18    LDX #24 ;hides 'CLC'
EA      NOP
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
68      PLA
28      PLP</pre>||Requires @zptemp, and support for unofficial opcodes; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 1B    LDA #27
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 234 cycles ===
{| class="wikitable testtable"
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A9      LDA #205
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|<pre>48      PHA
A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 2E    LDY #46
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 2E    LDX #46
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 2E    LDY #46
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #200
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #200
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 21    LDA #33
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
08      PHP
A0 20    LDY #32
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 20    LDX #32
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #193
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>48      PHA
38      SEC
A9 20    LDA #32
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 20    LDA #32
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 235 cycles ===
{| class="wikitable testtable"
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A9      LDA #206
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|<pre>A2 1A    LDX #26
68      PLA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>A0 1A    LDY #26
68      PLA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 2E    LDY #46
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #201
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #201
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>EA      NOP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #194
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
08      PHP
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
24 24    BIT $24
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 236 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 2F    LDX #47
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 2F    LDY #47
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A9      LDA #205
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
|-
|<pre>48      PHA
A9      LDA #206
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, S, Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #202
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #202
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>04 04    NOP $04
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>48      PHA
38      SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
38      SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #195
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>68      PLA
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>98      TYA
48      PHA
A0 20    LDY #32
EA      NOP
88      DEY
D0 FA    BNE *-4
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 20    LDA #32
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA      NOP
08      PHP
38      SEC
A9 20    LDA #32
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 237 cycles ===
{| class="wikitable testtable"
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A9      LDA #206
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|7 bytes
|-
|<pre>A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #203
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #203
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 2E    LDY #46
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A0 2E    LDY #46
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>68      PLA
38      SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #196
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA      NOP
08      PHP
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 238 cycles ===
{| class="wikitable testtable"
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 2F    LDX #47
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 2F    LDY #47
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 2F    LDA #47
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A0 2E    LDY #46
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9      LDA #204
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #204
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
E6 xx    INC @zptemp
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
E6 xx    INC @zptemp
B0 FA    BCS *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #197
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
04 04    NOP $04
B0 F9    BCS *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
04 04    NOP $04
B0 F9    BCS *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
08      PHP
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>24 24    BIT $24
48      PHA
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A5 A5    LDA $A5
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12&times; 2
D0 F7    BNE *-7
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 239 cycles ===
{| class="wikitable testtable"
!colspan="2"|6 bytes
|-
|<pre>A0 22    LDY #34
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 22    LDX #34
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #205
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #205
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 21    LDY #33
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 21    LDX #33
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9      LDA #198
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
8C      TXA
48      PHA
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 2C    LDX #44
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
38      SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
=== 240 cycles ===
{| class="wikitable testtable"
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #206
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A9      LDA #206
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>08      PHP
EA      NOP
A0 2E    LDY #46
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
EA      NOP
A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #199
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
18      CLC
A9 64    LDA #100 ;hides 'NOP zp'
EA      NOP
69 01    ADC #1
10 F9    BPL *-5
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
24 24    BIT $24
48      PHA
38      SEC
A9 2C    LDA #44
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5

Revision as of 13:10, 17 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. Code samples where an interrupt could cause a malfunction are separately indicated.

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.
  • \"unsafe for interrupts\" means that even though the S register is not clobbered, the code will malfunction if an interrupt/NMI happens in the middle of the 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
C5 C5    CMP $C5
Clobbers Z&N, and C
24 24    BIT $24
Clobbers Z&N, and V
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
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
18       CLC
90 00    BCC *+2
Clobbers C
B8       CLV
50 00    BVC *+2
Clobbers V
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
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
18   ... CLC      × 2
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 2
50 00    BVC *+2
Clobbers V
A6 A6    LDX $A6
EA   ... NOP      × 2
Clobbers X, and Z&N
A4 A4    LDY $A4
EA   ... NOP      × 2
Clobbers Y, and Z&N
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; and unsafe for interrupts
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
26 26    ROL $26
66 26    ROR $26
Clobbers Z&N
08       PHP
24 24    BIT $24
28       PLP
Writes in stack
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
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
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
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
18   ... CLC      × 5
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 5
50 00    BVC *+2
Clobbers V
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
Clobbers Z&N; and not relocatable code
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 @rts12, and @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 @rts12, and @rts15; and writes in stack
EA       NOP
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
4 bytes
68       PLA
48       PHA
68   ... PLA      × 2
Clobbers A, S, and Z&N
48       PHA
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
5 bytes
08       PHP
BA       TSX
28       PLP
9A       TXS
28       PLP
Clobbers X; and writes in stack
68       PLA
48       PHA
BA       TSX
68       PLA
9A       TXS
Clobbers A, X, and Z&N; and unsafe for interrupts
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
A5 A5    LDA $A5
20 xx xx JSR @rts12
Clobbers A, and Z&N; requires @rts12; and writes in stack
A4 A4    LDY $A4
20 xx xx JSR @rts12
Clobbers Y, and Z&N; requires @rts12; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12
Requires @zptemp, and @rts12; and writes in stack
04 04    NOP $04
20 xx xx JSR @rts12
Requires @rts12, and support for unofficial opcodes; and writes in stack
48   ... PHA      × 5
Clobbers S; and writes in stack
6 bytes
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
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
A6 A6    LDX $A6
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers X, and Z&N
A4 A4    LDY $A4
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Y, and Z&N
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 @rts12, and @rts14; 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
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
85 xx    STA @zptemp
00 00    BRK 0
Requires @zptemp, and dummy interrupt handler; and writes in stack
04 04    NOP $04
00 00    BRK 0
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
68   ... PLA      × 4
Clobbers A, S, and Z&N
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 @rts12, and @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 @rts12, and @rts14; and writes in stack
5 bytes
E6 xx    INC @zptemp
20 xx xx JSR @rts12
Clobbers Z&N; requires @zptemp, and @rts12; and writes in stack
C5 C5    CMP $C5
20 xx xx JSR @rts14
Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
24 24    BIT $24
20 xx xx JSR @rts14
Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack
A5 A5    LDA $A5
20 xx xx JSR @rts14
Clobbers A, and Z&N; requires @rts12, and @rts14; and writes in stack
A6 A6    LDX $A6
20 xx xx JSR @rts14
Clobbers X, and Z&N; requires @rts12, and @rts14; and writes in stack
A4 A4    LDY $A4
20 xx xx JSR @rts14
Clobbers Y, and Z&N; requires @rts12, and @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts14
Requires @zptemp, @rts12, and @rts14; and writes in stack
04 04    NOP $04
20 xx xx JSR @rts14
Requires @rts12, @rts14, and support for unofficial opcodes; 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
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
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
A4 A4    LDY $A4
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Y, and Z&N
EA       NOP
A6 A6    LDX $A6
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers X, and Z&N
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 @rts12, and @rts15; and writes in stack
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts12, and @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
EA   ... NOP      × 2
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
C5 C5    CMP $C5
20 xx xx JSR @rts15
Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
24 24    BIT $24
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts12, and @rts15; and writes in stack
A5 A5    LDA $A5
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts12, and @rts15; and writes in stack
A6 A6    LDX $A6
20 xx xx JSR @rts15
Clobbers X, and Z&N; requires @rts12, and @rts15; and writes in stack
A4 A4    LDY $A4
20 xx xx JSR @rts15
Clobbers Y, and Z&N; requires @rts12, and @rts15; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
Requires @zptemp, @rts12, and @rts15; 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
04 04    NOP $04
20 xx xx JSR @rts15
Requires @rts12, @rts15, and support for unofficial opcodes; 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
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
EA       NOP
85 xx    STA @zptemp
00 00    BRK 0
Requires @zptemp, and dummy interrupt handler; 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
EA       NOP
68   ... PLA      × 4
Clobbers A, S, and Z&N
48   ... PHA      × 2
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
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 @rts12, and @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      × 3
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
68       PLA
48       PHA
68   ... PLA      × 3
Clobbers A, S, and Z&N
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
A6 A6    LDX $A6
A2 03    LDX #3
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 03    LDY #3
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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, @rts12, and @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 @rts12, and @rts14; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts12, and @rts15; and writes in stack
6 bytes
BA       TSX
68   ... PLA      × 4
9A       TXS
Clobbers A, X, and Z&N; and unsafe for interrupts
EA   ... NOP      × 3
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
18       CLC
90 00    BCC *+2
20 xx xx JSR @rts15
Clobbers C; requires @rts12, and @rts15; and writes in stack
B8       CLV
50 00    BVC *+2
20 xx xx JSR @rts15
Clobbers V; requires @rts12, and @rts15; and writes in stack
EA       NOP
A5 A5    LDA $A5
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts12, and @rts15; and writes in stack
EA       NOP
A6 A6    LDX $A6
20 xx xx JSR @rts15
Clobbers X, and Z&N; requires @rts12, and @rts15; and writes in stack
EA       NOP
A4 A4    LDY $A4
20 xx xx JSR @rts15
Clobbers Y, and Z&N; requires @rts12, and @rts15; and writes in stack
EA       NOP
85 xx    STA @zptemp
20 xx xx JSR @rts15
Requires @zptemp, @rts12, and @rts15; and writes in stack
EA       NOP
04 04    NOP $04
20 xx xx JSR @rts15
Requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
08       PHP       \ × 2
28       PLP       /
Clobbers S; 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
A0 03    LDY #3
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 03    LDX #3
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
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
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
48   ... PHA      × 2
20 xx xx JSR @rts15
Clobbers S; requires @rts12, and @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 @rts12, and @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 @rts12, and @rts14; and writes in stack
6 bytes
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
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
EA       NOP
68   ... PLA      × 5
Clobbers A, S, and Z&N
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
7 bytes
08       PHP
BA       TSX
08       PHP
28   ... PLP      × 2
9A       TXS
28       PLP
Clobbers X; and writes in stack
08       PHP
24 24    BIT $24
28       PLP
20 xx xx JSR @rts12
Requires @rts12; 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
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N
08       PHP
C5 C5    CMP $C5
36 36    ROL $36,X
76 36    ROR $36,X
28       PLP
Writes in stack
11 bytes
EA   ... NOP      × 11
No requirements


23 cycles

5 bytes
A9 2A    LDA #$2A ;hides 'ROL A'
48       PHA
10 FC    BPL *-2
Clobbers A, S, Z&N, and C; and writes in stack
68   ... PLA      × 2
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts12, and @rts15; 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
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
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
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts12, and @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
68       PLA
48       PHA
68   ... PLA      × 4
Clobbers A, S, and Z&N
EA       NOP
48   ... PHA      × 2
20 xx xx JSR @rts15
Clobbers S; requires @rts12, and @rts15; and writes in stack
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      × 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
7 bytes
A4 A4    LDY $A4
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
48       PHA
08       PHP       \ × 3
28       PLP       /
Clobbers S; and writes in stack
8 bytes
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N
08       PHP
28       PLP
08       PHP
26 26    ROL $26
66 26    ROR $26
28       PLP
Writes in stack
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
68       PLA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
Clobbers A, S, Z&N, and C
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
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts12, and @rts15; and writes in stack
48       PHA
68   ... PLA      × 2
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts12, and @rts14; and writes in stack
48   ... PHA      × 4
00 00    BRK 0
Clobbers S; requires dummy interrupt handler; and writes in stack
7 bytes
EA   ... NOP      × 2
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
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
08       PHP
24 24    BIT $24
28       PLP
20 xx xx JSR @rts15
Requires @rts12, and @rts15; and writes in stack
EA   ... NOP      × 2
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts12, and @rts14; 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
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
EA       NOP
08       PHP
24 24    BIT $24
28       PLP
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 4
Clobbers A, S, and Z&N
48   ... PHA      × 2
08       PHP
28       PLP
20 xx xx JSR @rts12
Clobbers S; requires @rts12; 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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
6 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
48       PHA
68   ... PLA      × 2
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts12, and @rts15; and writes in stack
7 bytes
EA       NOP
20 xx xx JSR @rts12× 2
Requires @rts12; and writes in stack
EA       NOP
68   ... PLA      × 6
Clobbers A, S, and Z&N
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
A9       LDA #0
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
00 00    BRK 0
20 xx xx JSR @rts14
Requires dummy interrupt handler, @rts12, 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
6 bytes
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
20 xx xx JSR @rts12
20 xx xx JSR @rts15
Requires @rts12, and @rts15; and writes in stack
00 00    BRK 0
08       PHP       \ × 2
28       PLP       /
Requires dummy interrupt handler; and writes in stack
7 bytes
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
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
10 FC    BPL *-2
28       PLP
Clobbers A; 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
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
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
20 xx xx JSR @rts12× 2
Clobbers S; requires @rts12; and writes in stack
8 bytes
EA   ... NOP      × 3
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
24 24    BIT $24
20 xx xx JSR @rts12× 2
Clobbers Z&N, and V; requires @rts12; 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
85 xx    STA @zptemp
20 xx xx JSR @rts12× 2
Requires @zptemp, and @rts12; and writes in stack
EA   ... NOP      × 3
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts12, and @rts14; 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
48   ... PHA      × 2
08       PHP       \ × 3
28       PLP       /
Clobbers S; 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
A9       LDA #1
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
6 bytes
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
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
20 xx xx JSR @rts14× 2
Requires @rts12, and @rts14; and writes in stack
7 bytes
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
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
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
68   ... PLA      × 7
Clobbers A, S, and Z&N
48   ... PHA      × 2
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts12, and @rts15; and writes in stack
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
A9       LDA #2
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48       PHA
00 00... BRK 0    × 2
Clobbers S; requires dummy interrupt handler; and writes in stack
6 bytes
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
90 FC    BCC *-2
Clobbers A, Z&N, and C
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
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts12, @rts14, and @rts15; 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
A5 A5    LDA $A5
00 00... BRK 0    × 2
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
85 xx    STA @zptemp
00 00... BRK 0    × 2
Requires @zptemp, and dummy interrupt handler; and writes in stack
EA       NOP
00 00    BRK 0
20 xx xx JSR @rts14
Requires dummy interrupt handler, @rts12, and @rts14; 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
EA       NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts15
Requires @rts12, and @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
8 bytes
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
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
A0 03    LDY #3
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; 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
E6 xx    INC @zptemp
20 xx xx JSR @rts12× 2
Clobbers Z&N; requires @zptemp, and @rts12; 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
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @zptemp, @rts12, and @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
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 5
Clobbers A, S, and Z&N
EA       NOP
48       PHA
20 xx xx JSR @rts12× 2
Clobbers S; requires @rts12; 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
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
A9       LDA #3
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68       PLA
00 00... BRK 0    × 2
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
6 bytes
20 xx xx JSR @rts15× 2
Requires @rts12, and @rts15; and writes in stack
EA   ... NOP      × 2
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, S, Z&N, and C
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
7 bytes
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C
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
20 xx xx JSR @rts14× 2
Requires @rts12, and @rts14; and writes in stack
8 bytes
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
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
EA       NOP
68   ... PLA      × 7
Clobbers A, S, and Z&N
48   ... PHA      × 2
20 xx xx JSR @rts12× 2
Clobbers S; requires @rts12; and writes in stack
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 06    LDY #6
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
6 bytes
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
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; 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 @rts12, @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
85 xx    STA @zptemp
00 00... BRK 0    × 2
Requires @zptemp, and dummy interrupt handler; and writes in stack
EA   ... NOP      × 2
00 00    BRK 0
20 xx xx JSR @rts14
Requires dummy interrupt handler, @rts12, and @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
48       PHA
20 xx xx JSR @rts14× 2
Clobbers S; requires @rts12, and @rts14; and writes in stack
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12× 2
Requires @rts12; and writes in stack
EA   ... NOP      × 2
00 00    BRK 0
08       PHP       \ × 2
28       PLP       /
Requires dummy interrupt handler; 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
9 bytes
08       PHP
A4 A4    LDY $A4
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
20 xx xx JSR @rts15× 2
Requires @rts12, and @rts15; 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
EA   ... NOP      × 3
00 00... BRK 0    × 2
Requires dummy interrupt handler; 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
48   ... PHA      × 2
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
68       PLA
20 xx xx JSR @rts14× 2
Clobbers A, S, and Z&N; requires @rts12, and @rts14; and writes in stack
8 bytes
A4 A4    LDY $A4
A0 04    LDY #4
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA   ... NOP      × 2
20 xx xx JSR @rts14× 2
Requires @rts12, and @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
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
EA       NOP
48   ... PHA      × 2
20 xx xx JSR @rts12× 2
Clobbers S; requires @rts12; 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
18   ... CLC      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
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
08       PHP
28       PLP
00 00... BRK 0    × 2
Requires dummy interrupt handler; and writes in stack
7 bytes
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
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
20 xx xx JSR @rts15× 2
Clobbers S; requires @rts12, and @rts15; and writes in stack
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
24 24    BIT $24
20 xx xx JSR @rts15× 2
Clobbers Z&N, and V; requires @rts12, and @rts15; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15× 2
Requires @zptemp, @rts12, and @rts15; and writes in stack
04 04    NOP $04
20 xx xx JSR @rts15× 2
Requires @rts12, @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
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
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
A0 88    LDY #136 ;hides 'DEY'
88       DEY
30 FC    BMI *-2
Clobbers Y, and Z&N
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
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
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
08       PHP
28       PLP
00 00    BRK 0
20 xx xx JSR @rts14
Requires dummy interrupt handler, @rts12, and @rts14; 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
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
EA       NOP
48   ... PHA      × 2
00 00... BRK 0    × 2
Clobbers S; requires dummy interrupt handler; and writes in stack
8 bytes
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
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
EA   ... NOP      × 2
20 xx xx JSR @rts15× 2
Requires @rts12, and @rts15; 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 @rts12, and @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
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
A0 88    LDY #136 ;hides 'DEY'
88   ... DEY      × 2
30 FB    BMI *-3
Clobbers Y, and Z&N
A2 F8    LDX #248 ;hides 'SED'
E8   ... INX      × 2
D0 FB    BNE *-3
Clobbers X, Z&N, and D
68       PLA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
Clobbers A, S, Z&N, and C
68       PLA
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
Clobbers A, Z&N, and C
EA   ... NOP      × 2
A2 06    LDX #6
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
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
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
8 bytes
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
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
08       PHP
28       PLP
20 xx xx JSR @rts14× 2
Requires @rts12, and @rts14; and writes in stack
E6 xx    INC @zptemp
20 xx xx JSR @rts15× 2
Clobbers Z&N; requires @zptemp, @rts12, and @rts15; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts15× 2
Clobbers S; requires @rts12, and @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
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V
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
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
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
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
08       PHP
28       PLP
00 00... BRK 0    × 2
Clobbers S; requires dummy interrupt handler; and writes in stack
8 bytes
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
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
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; 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
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts12, @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 @rts12, and @rts15; and writes in stack
9 bytes
20 xx xx JSR @rts12× 3
Requires @rts12; and writes in stack
68   ... PLA      × 9
Clobbers A, S, and Z&N
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
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, S, Z&N, and C; 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
7 bytes
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C
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
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
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
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
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts15× 2
Requires @rts12, and @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      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers S, Z&N, and C; 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
9 bytes
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      × 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
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
08       PHP
28       PLP
20 xx xx JSR @rts14× 2
Requires @rts12, and @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
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
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
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, S, Z&N, and C
7 bytes
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
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
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
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
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
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 @rts12, and @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
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
A9 2A    LDA #$2A ;hides 'ROL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
28       PLP
Clobbers A; 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
20 xx xx JSR @rts15
20 xx xx JSR @rts12× 2
Requires @rts12, and @rts15; 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
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
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 @rts12, and @rts14; and writes in stack
68       PLA
48       PHA
68   ... PLA      × 8
Clobbers A, S, and Z&N
48       PHA
20 xx xx JSR @rts12× 3
Clobbers S; requires @rts12; and writes in stack
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
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
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
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
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
00 00... BRK 0    × 2
20 xx xx JSR @rts14
Requires dummy interrupt handler, @rts12, 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
8 bytes
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
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
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
7 bytes
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
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
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
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
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
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
A9       LDA #15
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C; and writes in stack
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
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
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      × 2
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
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
00 00... BRK 0    × 3
Clobbers S; requires dummy interrupt handler; and writes in stack
8 bytes
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
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
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
08       PHP
A0 88    LDY #136 ;hides 'DEY'
88   ... DEY      × 2
30 FB    BMI *-3
28       PLP
Clobbers Y; 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
24 24    BIT $24
00 00... BRK 0    × 3
Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack
85 xx    STA @zptemp
00 00... BRK 0    × 3
Requires @zptemp, and dummy interrupt handler; and writes in stack
EA       NOP
00 00... BRK 0    × 2
20 xx xx JSR @rts14
Requires dummy interrupt handler, @rts12, and @rts14; 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 @rts12, and @rts14; 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
EA       NOP
00 00... BRK 0    × 2
08       PHP       \ × 2
28       PLP       /
Requires dummy interrupt handler; 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
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
6 bytes
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
A2 06    LDX #6
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 06    LDY #6
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
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
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
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 @rts12, @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
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
Clobbers A, Z&N, and C
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
88       DEY
30 FB    BMI *-3
Clobbers Y, and Z&N
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
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
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
8 bytes
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
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
E6 xx    INC @zptemp
00 00... BRK 0    × 3
Clobbers Z&N; requires @zptemp, and dummy interrupt handler; 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
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
EA       NOP
48       PHA
00 00... BRK 0    × 3
Clobbers S; requires dummy interrupt handler; and writes in stack
9 bytes
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
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
A2 04    LDX #4
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; 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
20 xx xx JSR @rts14
20 xx xx JSR @rts15× 2
Requires @rts12, @rts14, and @rts15; 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
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
85 xx    STA @zptemp
00 00... BRK 0    × 3
Requires @zptemp, and dummy interrupt handler; and writes in stack
EA   ... NOP      × 2
00 00... BRK 0    × 2
20 xx xx JSR @rts14
Requires dummy interrupt handler, @rts12, and @rts14; 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
10 bytes
EA       NOP
20 xx xx JSR @rts14× 3
Requires @rts12, and @rts14; and writes in stack
EA       NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts15× 2
Requires @rts12, and @rts15; 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
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
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
7 bytes
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
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
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
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
8 bytes
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
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      × 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
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
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
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
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 @rts12, and @rts14; and writes in stack
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15× 2
Requires @rts12, @rts14, and @rts15; 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; and unsafe for interrupts
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
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
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
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
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
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
A0 08    LDY #8
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
8 bytes
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
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
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
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
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
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
08       PHP
28       PLP
00 00... BRK 0    × 2
20 xx xx JSR @rts14
Requires dummy interrupt handler, @rts12, 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
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
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
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
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
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
A2 06    LDX #6
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
7 bytes
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 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
90 FB    BCC *-3
Clobbers A, Z&N, and C; and writes in stack
A6 A6    LDX $A6
A2 09    LDX #9
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
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
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
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
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
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
8 bytes
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
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
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
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
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
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
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
A0 07    LDY #7
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
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
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
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
68   ... PLA      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
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
8 bytes
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
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
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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
Clobbers A, Z&N, C, and V
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
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
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
68   ... PLA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
8 bytes
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
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
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
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
20 xx xx JSR @rts12
00 00... BRK 0    × 3
Requires dummy interrupt handler, and @rts12; 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
A9       LDA #25
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48       PHA
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers Y, S, and Z&N; and writes in stack
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
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
EA       NOP
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
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
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
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
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      × 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
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
9 bytes
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
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
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
A9       LDA #26
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68       PLA
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers A, Y, S, and Z&N
6 bytes
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
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
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 @rts12, and @rts14; 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
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
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
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
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
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
7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
10 FA    BPL *-4
Clobbers A, Z&N, and C
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
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
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
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; writes in stack; and unsafe for interrupts
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
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
EA       NOP
00 00... BRK 0    × 4
Requires dummy interrupt handler; 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
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
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, 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
10 bytes
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
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
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
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
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
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
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
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts12, and @rts14; 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
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
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
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
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
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
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
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
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
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
7 bytes
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
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
8 bytes
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
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
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
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
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
7 bytes
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
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
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
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
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
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
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
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
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
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
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
08       PHP
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
28       PLP
Clobbers Y, and S; 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
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
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
9 bytes
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
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
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
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
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
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
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
8 bytes
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
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
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
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 @rts12, and @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
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
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
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
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      × 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
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
9 bytes
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
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
A4 A4    LDY $A4
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
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
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
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
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
8 bytes
EA   ... NOP      × 3
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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       LDA #36
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
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
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
8 bytes
EA   ... NOP      × 2
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
9 bytes
EA   ... NOP      × 4
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
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
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
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 @rts12, and @rts14; and writes in stack
08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
28       PLP
Clobbers A; requires @rts12, and @rts14; 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
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      × 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
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
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
10 bytes
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
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
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
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
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
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
8 bytes
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
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
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
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
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
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
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
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
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
8 bytes
EA       NOP
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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 @rts12, and @rts15; 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
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
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      × 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
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
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
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
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
8 bytes
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
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
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
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
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
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
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
90 FA    BCC *-4
Clobbers A, Z&N, and C
A6 A6    LDX $A6
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
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
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
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
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
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
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      × 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
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
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
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
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
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
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
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
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
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
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
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
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
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
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
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
8 bytes
EA       NOP
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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 @rts12, and @rts15; 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
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
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
9 bytes
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
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
08       PHP
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
EA   ... NOP      × 2
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
11 bytes
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
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 @rts12, and @rts14; 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
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
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
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
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
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
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
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
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
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      × 2
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; 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      × 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
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
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
A0 08    LDY #8
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 08    LDX #8
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; 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'
85 xx    STA @zptemp
D0 FB    BNE *-3
28       PLP
Clobbers A; requires @zptemp; 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
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
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
10 bytes
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
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
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
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 @rts12, and @rts15; 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
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
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
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
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
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
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
9 bytes
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
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'
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'
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
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
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
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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       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
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 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
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
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
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
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
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
10 bytes
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
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
C5 C5    CMP $C5
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
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
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
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
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
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, 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
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
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
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
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
8 bytes
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
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
9 bytes
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
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
A9       LDA #34
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; 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
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
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #49
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
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
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
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
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
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
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
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
48       PHA
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
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
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
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
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
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      × 2
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
8 bytes
EA   ... NOP      × 3
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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 @rts12, and @rts14; 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
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
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
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
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
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
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 @rts12, and @rts15; 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
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
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
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
8 bytes
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
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; 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
A9       LDA #52
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A0 88    LDY #136 ;hides 'DEY'
48       PHA
30 FC    BMI *-2
Clobbers Y, S, and Z&N; and writes in stack
6 bytes
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'
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'
85 xx    STA @zptemp
30 FB    BMI *-3
Clobbers Y, and Z&N; and requires @zptemp
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
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
48       PHA
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
A6 A6    LDX $A6
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
8 bytes
38       SEC
A9 0B    LDA #11
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
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
9 bytes
48       PHA
18       CLC
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; 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
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
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
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
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
8 bytes
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'
20 xx xx JSR @rts15
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires @rts12, and @rts15; 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
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
9 bytes
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
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
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
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
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
10 bytes
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
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
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       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
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 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
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
8C       TXA
48       PHA
A2 0E    LDX #14
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 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
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
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
10 bytes
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
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
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
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
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
7 bytes
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
9 bytes
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
A6 A6    LDX $A6
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
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
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
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
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
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
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
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 0E    LDX #14
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 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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 @rts12, and @rts14; 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 @rts12, and @rts14; 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
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
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
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
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
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
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
8 bytes
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
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
9 bytes
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
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
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
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
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
8 bytes
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
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
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
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
48       PHA
08       PHP
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
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
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'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; 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
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
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
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
EA       NOP
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
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
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
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
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
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
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
10 bytes
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
38       SEC
A9 0B    LDA #11
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; 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'
EA       NOP
18       CLC
D0 FB    BNE *-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
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
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
7 bytes
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
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
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
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
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
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
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      × 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
10 bytes
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
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 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'
20 xx xx JSR @rts15
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires @rts12, and @rts15; 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
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
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
A9       LDA #62
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A0 88    LDY #136 ;hides 'DEY'
68       PLA
30 FC    BMI *-2
Clobbers A, Y, S, and Z&N
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
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
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
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
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
A2 09    LDX #9
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
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
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
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
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
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
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'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; requires @zptemp; 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
8C       TXA
48       PHA
A2 0E    LDX #14
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 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
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
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
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
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 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
8 bytes
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
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
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
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
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
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
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
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
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
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
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
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
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
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
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
8 bytes
48       PHA
08       PHP
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
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
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
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
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
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
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
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
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
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      × 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
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
11 bytes
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
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
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
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 @rts12, and @rts14; 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
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
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
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
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
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
8 bytes
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
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
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
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
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
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
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
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
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
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
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
10 bytes
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
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
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
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
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 @rts12, and @rts14; 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
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
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
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
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
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
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
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
8 bytes
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
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
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
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
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 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
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
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
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
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
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 @rts12, and @rts14; 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
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
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
48       PHA
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
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
A2 0B    LDX #11
24 24    BIT $24
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; 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
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
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
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
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
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
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
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
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
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
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
9 bytes
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
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
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
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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 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
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
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
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
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
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
11 bytes
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
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
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 @rts12, and @rts15; 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
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
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
8 bytes
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
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
9 bytes
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
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      × 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
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
10 bytes
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
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
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
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
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
8 bytes
EA       NOP
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
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
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
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
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
8 bytes
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'
20 xx xx JSR @rts15
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
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      × 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
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
9 bytes
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
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
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 @rts12, and @rts14; 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 @rts12, and @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
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
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
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
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
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      × 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
8 bytes
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
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
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
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
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
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
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 @rts12, and @rts14; 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 @rts12, and @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      × 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
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
11 bytes
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
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
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
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
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
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
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 @rts12, and @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
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
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
9 bytes
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
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
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
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
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
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
8 bytes
EA       NOP
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
08       PHP
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
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
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
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
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
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
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
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 @rts12, and @rts15; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
28       PLP
Clobbers A; requires @rts12, and @rts15; and writes in stack
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 @rts12, and @rts14; 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
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
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
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
10 bytes
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
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
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
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
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
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
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
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
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
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
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
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
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
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
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
10 bytes
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
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 @rts12, and @rts15; 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 @rts12, and @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
A6 A6    LDX $A6
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
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
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
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 @rts12, and @rts15; 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
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 @rts12, and @rts14; and writes in stack
9 bytes
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
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 @rts12, and @rts14; 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
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
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
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
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
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
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
8 bytes
EA       NOP
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
9 bytes
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
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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 @rts12, and @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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
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
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
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
A4 A4    LDY $A4
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
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
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
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 @rts12, and @rts14; and writes in stack
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 @rts12, and @rts14; 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
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'
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
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
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
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
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
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
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
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      × 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
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
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
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
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
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
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
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
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
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
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      × 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
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
11 bytes
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
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
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 @rts12, and @rts15; 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 @rts12, and @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
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
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
7 bytes
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
A4 A4    LDY $A4
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
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
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
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
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
7 bytes
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
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
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
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
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 @rts12, and @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
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
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
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
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
8 bytes
48       PHA
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 15    LDY #21
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 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
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
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
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
10 bytes
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
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 @rts12, and @rts15; and writes in stack
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 @rts12, and @rts15; 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
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
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
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
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 @rts12, and @rts14; 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 @rts12, and @rts14; 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
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
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
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
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      × 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
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
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
8 bytes
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
EA   ... NOP      × 3
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
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
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
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
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
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
7 bytes
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
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
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 @rts12, and @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
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
48       PHA
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
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
A6 A6    LDX $A6
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
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
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
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
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
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
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      × 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
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
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
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
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
8 bytes
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
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
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
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
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
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 @rts12, and @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      × 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
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
9 bytes
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
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
A6 A6    LDX $A6
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
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
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
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
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      × 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
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
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
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
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 @rts12, and @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
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
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
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
68       PLA
28       PLP
Requires @rts12, and @rts15; 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 @rts12, and @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
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
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
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
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
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 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
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 16    LDX #22
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; 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
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
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
10 bytes
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
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
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
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
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
8 bytes
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
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
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
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
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
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 @rts12, and @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      × 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
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
9 bytes
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
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
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
A9       LDA #100
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
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
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
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
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
8 bytes
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
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
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
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
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
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
A9       LDA #101
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68       PLA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
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
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
9 bytes
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
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
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 @rts12, and @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
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
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
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
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
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
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
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
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
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
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
8 bytes
EA       NOP
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
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
8 bytes
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
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 @rts12, and @rts15; 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
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
48       PHA
08       PHP
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
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
08       PHP
A4 A4    LDY $A4
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
10 bytes
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
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      × 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; and unsafe for interrupts
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
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
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      × 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
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
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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 @rts12, and @rts15; 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
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 @rts12, and @rts14; and writes in stack
10 bytes
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
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 @rts12, and @rts15; and writes in stack
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 @rts12, and @rts15; 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 @rts12, @rts14, and support for unofficial opcodes; 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
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
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
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
08       PHP
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
8 bytes
08       PHP
A0 12    LDY #18
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 12    LDX #18
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; 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 @rts12, and @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 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
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 @rts12, and @rts15; 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
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
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
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
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
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
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
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
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
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
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
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
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
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
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
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
A2 11    LDX #17
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A0 11    LDY #17
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 11    LDX #17
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
Clobbers X, Z&N, and C
A0 11    LDY #17
C5 C5    CMP $C5
88       DEY
D0 F9    BNE *-5
Clobbers Y, 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
A0 11    LDY #17
A5 A5    LDA $A5
88       DEY
D0 F9    BNE *-5
Clobbers A, Y, and Z&N
A2 11    LDX #17
A5 A5    LDA $A5
CA       DEX
D0 F9    BNE *-5
Clobbers A, X, and Z&N
A2 11    LDX #17
A4 A4    LDY $A4
CA       DEX
D0 F9    BNE *-5
Clobbers X, Y, and Z&N
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
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
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
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
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
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
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
68       PLA
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
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
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
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
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
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
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
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
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
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
10 bytes
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
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
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
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 @rts12, and @rts15; and writes in stack
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 @rts12, and @rts15; 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
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      × 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
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
11 bytes
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
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
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
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
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
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
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
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
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
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
9 bytes
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
BA       TSX
68       PLA
9A       TXS
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28       PLP
Clobbers A, and X; writes in stack; and unsafe for interrupts
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
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
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
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
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
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
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
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
8 bytes
EA       NOP
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
9 bytes
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
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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 @rts12, and @rts15; and writes in stack
12 bytes
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
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 @rts12, and @rts15; 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 @rts12, @rts14, and support for unofficial opcodes; 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
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
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
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
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
8 bytes
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
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
9 bytes
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
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
10 bytes
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
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
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 @rts12, and @rts14; 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 @rts12, and @rts14; 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
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
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 @rts12, and @rts15; 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
A0 98    LDY #152 ;hides 'TYA'
EA       NOP
88   ... DEY      × 2
30 FA    BMI *-4
Clobbers A, Y, and Z&N
A2 98    LDX #152 ;hides 'TYA'
EA       NOP
CA   ... DEX      × 2
30 FA    BMI *-4
Clobbers A, X, 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
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
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
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
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
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
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
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
68       PLA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
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
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
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
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
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
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
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
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A4 A4    LDY $A4
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
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
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
A2 11    LDX #17
C5 C5    CMP $C5
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
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
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
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
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
10 bytes
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
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
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
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
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
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
8 bytes
EA       NOP
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
9 bytes
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
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
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
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 @rts12, and @rts15; 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
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
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
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
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
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
8 bytes
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
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
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
9 bytes
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
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
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
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
10 bytes
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
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
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
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
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
11 bytes
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
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
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
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
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      × 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
8 bytes
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
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
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
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
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
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
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
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
10 bytes
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
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
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
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
9 bytes
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
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
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
10 bytes
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
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
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
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
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 @rts12, and @rts14; 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
A6 A6    LDX $A6
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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      × 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
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
11 bytes
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
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
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
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
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
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
8 bytes
38       SEC
A9 15    LDA #21
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
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 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
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
9 bytes
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
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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 @rts12, and @rts14; 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
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
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
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      × 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
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
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
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
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
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
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
12 bytes
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
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
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
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
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
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
48   ... PHA      × 2
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; 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
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
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
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
10 bytes
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
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
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
A0 EA    LDY #234 ;hides 'NOP'
C8       INY
D0 FC    BNE *-2
Clobbers Y, and Z&N
A2 EA    LDX #234 ;hides 'NOP'
E8       INX
D0 FC    BNE *-2
Clobbers X, 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
38       SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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 @rts12, and @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
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
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
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
10 bytes
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
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
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
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
11 bytes
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
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
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
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
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
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
A0 1E    LDY #30
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1E    LDX #30
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
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
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
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 @rts12, and @rts14; and writes in stack
9 bytes
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
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 @rts12, and @rts14; 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
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
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      × 2
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; 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
10 bytes
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
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
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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      × 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
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
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
7 bytes
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
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
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 @rts12, and @rts14; and writes in stack
9 bytes
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
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
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
7 bytes
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
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
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, @rts12, and @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
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 @rts12, and @rts14; and writes in stack
10 bytes
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
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 @rts12, and @rts14; 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      × 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
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
11 bytes
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
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      × 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
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
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
A2 EA    LDX #234 ;hides 'NOP'
E8       INX
D0 FC    BNE *-2
Clobbers A, X, S, and Z&N
68       PLA
A0 EA    LDY #234 ;hides 'NOP'
C8       INY
D0 FC    BNE *-2
Clobbers A, Y, S, and Z&N
7 bytes
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
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
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
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
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
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
38       SEC
A9 15    LDA #21
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; 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
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
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
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
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
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
9 bytes
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 @rts12, and @rts14; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
28       PLP
Clobbers A; requires @rts12, and @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
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
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
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
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
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
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
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
48       PHA
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
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
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 @rts12, and @rts15; 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
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
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
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
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
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
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
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
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V
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
7 bytes
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
A2 EA    LDX #234 ;hides 'NOP'
E8       INX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 EA    LDY #234 ;hides 'NOP'
C8       INY
D0 FC    BNE *-2
28       PLP
Clobbers Y; 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
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
9 bytes
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
38       SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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 @rts12, and @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
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
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
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       LDA #134
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
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
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
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
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
8 bytes
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
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 @rts12, and @rts15; and writes in stack
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
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
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
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
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
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      × 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 @rts12, and @rts14; 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 @rts12, and @rts14; 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
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 @rts12, and @rts14; 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 @rts12, and @rts14; 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
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
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
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
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
7 bytes
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
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
8 bytes
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
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
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
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
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
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, @rts12, 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 @rts12, and @rts14; and writes in stack
12 bytes
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
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 @rts12, and @rts14; 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
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
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
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
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
9 bytes
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
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
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       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
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
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
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
8 bytes
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
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
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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 @rts12, and @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
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
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
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
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
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      × 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
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
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, 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
9 bytes
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
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
A4 A4    LDY $A4
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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 @rts12, and @rts15; 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
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
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      × 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
8 bytes
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
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 @rts12, and @rts14; 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
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
9 bytes
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
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
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
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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 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 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
9 bytes
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
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
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
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
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
10 bytes
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
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 @rts12, and @rts15; 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
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
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 @rts12, and @rts14; 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 @rts12, and @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
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
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
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
8 bytes
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
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
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
A2 5A    LDX #90 ;hides 'NOP'
E8   ... INX      × 2
10 FB    BPL *-3
Clobbers X, and Z&N; and requires support for unofficial opcodes
48       PHA
A2 18    LDX #24 ;hides 'CLC'
CA       DEX
D0 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
7 bytes
EA   ... NOP      × 2
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
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
8 bytes
EA       NOP
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
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
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
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      × 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
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
9 bytes
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
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
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
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
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
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
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
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
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
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
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
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
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
9 bytes
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
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
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
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
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
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
10 bytes
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
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
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
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
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
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
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
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
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
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
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
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
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 @rts12, and @rts14; 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 @rts12, and @rts14; 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
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
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
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
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
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, 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
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
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
8 bytes
EA       NOP
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A0 21    LDY #33
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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 @rts12, and @rts15; and writes in stack
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 @rts12, and @rts14; and writes in stack
9 bytes
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
38       SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
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
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
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
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
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
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
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 @rts12, @rts15, and support for unofficial opcodes; 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
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
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
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
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
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
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
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
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
A5 A5    LDA $A5
88       DEY
D0 F9    BNE *-5
Clobbers A, Y, and Z&N
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
85 xx    STA @zptemp
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and requires @zptemp
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
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
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
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
8 bytes
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
08       PHP
A0 C8    LDY #200 ;hides 'INY'
C8   ... INY      × 2
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
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
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
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
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
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
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
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
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 D8    LDY #216 ;hides 'CLD'
C8   ... INY      × 2
D0 FB    BNE *-3
Clobbers Y, Z&N, and D
A2 D8    LDX #216 ;hides 'CLD'
E8   ... INX      × 2
D0 FB    BNE *-3
Clobbers X, Z&N, and D
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
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
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
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
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
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
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
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
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
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
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
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 @rts12, and @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 @rts12, and @rts14; 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
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
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
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
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, 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       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
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 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
8 bytes
EA       NOP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
9 bytes
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
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
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
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
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
8 bytes
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
48       PHA
08       PHP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
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
28       PLP
08       PHP
A0 18    LDY #24 ;hides 'CLC'
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
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
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
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      × 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
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
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 @rts12, and @rts14; 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
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
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
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
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      × 2
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
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
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 @rts12, and @rts15; 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
A0 1A    LDY #26
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 1A    LDX #26
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, 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
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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 @rts12, and @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 @rts12, and @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, @rts12, and @rts15; 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
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 @rts12, @rts15, and support for unofficial opcodes; 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
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
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 @rts12, @rts15, and support for unofficial opcodes; 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 @rts12, @rts15, and support for unofficial opcodes; 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
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
11 bytes
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
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
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
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
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
8 bytes
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
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
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
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
85 xx    STA @zptemp
D0 FA    BNE *-4
28       PLP
Clobbers A; requires @zptemp; 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
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
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
10 bytes
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
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
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
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
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
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
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
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
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
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
8 bytes
38       SEC
A9 1A    LDA #26
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
9 bytes
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
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
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
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
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
8 bytes
08       PHP
A2 D8    LDX #216 ;hides 'CLD'
E8   ... INX      × 2
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 D8    LDY #216 ;hides 'CLD'
C8   ... INY      × 2
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
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
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
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 @rts12, and @rts15; and writes in stack
10 bytes
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
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
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
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
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
11 bytes
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
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
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
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
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
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
48   ... PHA      × 2
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
98       TYA
48       PHA
A0 23    LDY #35
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 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
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
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
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
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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
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
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      × 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
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
11 bytes
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
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
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
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
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
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
9 bytes
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
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
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
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
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
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
10 bytes
EA       NOP
98       TYA
48       PHA
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; 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
EA   ... NOP      × 3
08       PHP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
A2 1B    LDX #27
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 1B    LDY #27
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
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
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
8 bytes
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
A2 1A    LDX #26
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; 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
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
9 bytes
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
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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 @rts12, and @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, @rts12, 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 @rts12, @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
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 @rts12, @rts15, and support for unofficial opcodes; 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
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
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
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
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 @rts12, and @rts14; 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
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
9 bytes
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
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
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
98       TYA
48       PHA
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA   ... NOP      × 2
98       TYA
48       PHA
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
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
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
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
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
12 bytes
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
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      × 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
A0 1B    LDY #27
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
EA       NOP
A2 1B    LDX #27
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
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
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
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
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
24 24    BIT $24
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
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
85 xx    STA @zptemp
B0 FA    BCS *-4
28       PLP
Clobbers A; requires @zptemp; 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
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
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
10 bytes
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
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
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
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
9 bytes
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
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
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
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
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
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
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
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
11 bytes
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
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
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
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
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 @rts12, and @rts14; 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
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
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
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
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
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
10 bytes
98       TYA
48       PHA
A0 1A    LDY #26
EA       NOP
88       DEY
D0 FA    BNE *-4
68       PLA
A8       TAY
Clobbers A, and Z&N; 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
EA       NOP
08       PHP
A2 17    LDX #23
24 24    BIT $24
CA       DEX
D0 F9    BNE *-5
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
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
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
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
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
11 bytes
48       PHA
98       TYA
48       PHA
A0 23    LDY #35
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 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
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
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
8 bytes
EA       NOP
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
9 bytes
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
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
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
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
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
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
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
8 bytes
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
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
9 bytes
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
A4 A4    LDY $A4
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
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
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      × 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
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
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
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
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
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
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
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
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
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 23    LDY #35
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 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
A0 1C    LDY #28
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 1C    LDX #28
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
7 bytes
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
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
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
98       TYA
48       PHA
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
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
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
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
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
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
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
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
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
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
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
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 @rts12, and @rts14; and writes in stack
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 @rts12, and @rts14; 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
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
11 bytes
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
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
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
98       TYA
48       PHA
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
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
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
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
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
A9       LDA #172
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A2 E8    LDX #232 ;hides 'INX'
48       PHA
D0 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
6 bytes
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'
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'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers X, and Z&N; and requires @zptemp
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
48       PHA
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
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
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
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
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
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
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
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
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
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 @rts12, and @rts14; 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 @rts12, and @rts15; and writes in stack
10 bytes
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
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
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
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
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
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
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
8 bytes
EA       NOP
08       PHP
A0 26    LDY #38
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 26    LDX #38
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
9 bytes
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
38       SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
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
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
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
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
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
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
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
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
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
11 bytes
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
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
12 bytes
48       PHA
98       TYA
48       PHA
A0 1A    LDY #26
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 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
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
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
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
48   ... PHA      × 2
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
8 bytes
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
EA   ... NOP      × 3
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
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
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
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
A0 28    LDY #40
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
7 bytes
38       SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 27    LDX #39
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
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      × 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
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
11 bytes
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
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
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
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
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
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
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
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
8 bytes
08       PHP
A2 1C    LDX #28
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1C    LDY #28
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; 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
98       TYA
48       PHA
A0 25    LDY #37
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 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
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
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
8 bytes
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
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
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 @rts12, and @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
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
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
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
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
8 bytes
38       SEC
A9 1D    LDA #29
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
08       PHP
A2 E8    LDX #232 ;hides 'INX'
24 24    BIT $24
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
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
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
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
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
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
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      × 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
8 bytes
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
A4 A4    LDY $A4
A0 1D    LDY #29
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 1D    LDX #29
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
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
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
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
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
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
9 bytes
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
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
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
10 bytes
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
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
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
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
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
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
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
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
10 bytes
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
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
A0 27    LDY #39
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, 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
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
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
8 bytes
EA       NOP
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
9 bytes
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
38       SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
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
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
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      × 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
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
11 bytes
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
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
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
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
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      × 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
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
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
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
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
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
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
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
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
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
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
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
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
08       PHP
A2 28    LDX #40
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
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
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
A6 A6    LDX $A6
A2 1D    LDX #29
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; 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
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
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
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
8 bytes
EA       NOP
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 29    LDX #41
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
9 bytes
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
38       SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
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
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
8 bytes
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
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
08       PHP
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
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
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
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
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
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
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
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
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
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
98       TYA
48       PHA
A0 29    LDY #41
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 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
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
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
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

5 bytes
A9       LDA #191
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
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
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
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
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
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
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      × 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
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
11 bytes
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
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
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

5 bytes
A9       LDA #192
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 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
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
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
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
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
8 bytes
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
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
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
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
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
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
10 bytes
EA       NOP
98       TYA
48       PHA
A0 29    LDY #41
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 29    LDX #41
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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

5 bytes
A9       LDA #193
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 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
7 bytes
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
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
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
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
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
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
38       SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; 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
A2 2C    LDX #44
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 2C    LDY #44
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #194
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
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
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 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
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
A2 2A    LDX #42
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 2A    LDY #42
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 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
98       TYA
48       PHA
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA   ... NOP      × 2
98       TYA
48       PHA
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; 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
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
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

5 bytes
A9       LDA #195
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
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
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
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
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
8 bytes
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
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
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
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
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
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

5 bytes
A9       LDA #196
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 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
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
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
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
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 @rts12, and @rts14; 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
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
11 bytes
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
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
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
A9       LDA #197
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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 E4    LDY #228 ;hides 'CPX zp'
EA       NOP
C8       INY
D0 FB    BNE *-3
Clobbers Y, Z&N, C, and V
A0 98    LDY #152 ;hides 'TYA'
EA       NOP
88       DEY
30 FB    BMI *-3
Clobbers A, Y, and Z&N
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
48       PHA
A0 2C    LDY #44
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 A4    LDY $A4
A0 2C    LDY #44
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
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
8 bytes
48   ... PHA      × 2
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
9 bytes
EA   ... NOP      × 3
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
08       PHP
A2 12    LDX #18
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
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
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
EA       NOP
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
11 bytes
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
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 2A    LDA #42
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 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


225 cycles

5 bytes
A9       LDA #198
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 20    LDY #32
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 20    LDX #32
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
48       PHA
A9       LDA #191
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
08       PHP
A9       LDA #191
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 1F    LDY #31
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1F    LDX #31
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #184
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 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
28       PLP
Writes in stack


226 cycles

5 bytes
A0 2D    LDY #45
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #199
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
A9       LDA #192
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
08       PHP
A9       LDA #192
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 64    LDA #100 ;hides 'NOP zp'
EA       NOP
69 01    ADC #1
10 F9    BPL *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
48       PHA
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
48       PHA
08       PHP
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
A5 A5    LDA $A5
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A4 A4    LDY $A4
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 A6    LDX $A6
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #185
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 18    LDX #24 ;hides 'CLC'
EA       NOP
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; requires @zptemp, and support for unofficial opcodes; and writes in stack
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
28       PLP
Clobbers A; requires @zptemp, and support for unofficial opcodes; and writes in stack
11 bytes
48       PHA
38       SEC
A9 1B    LDA #27
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
38       SEC
A9 1B    LDA #27
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
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 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


227 cycles

5 bytes
A9       LDA #200
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'
68       PLA
D0 FC    BNE *-2
Clobbers A, X, S, and Z&N; and writes in stack
7 bytes
EA       NOP
A2 20    LDX #32
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
A0 20    LDY #32
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
48       PHA
A9       LDA #193
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
08       PHP
A9       LDA #193
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
8 bytes
38       SEC
A9 20    LDA #32
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
9 bytes
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #186
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 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


228 cycles

5 bytes
A9       LDA #201
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 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 2D    LDY #45
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A0 2C    LDY #44
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 2C    LDX #44
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9       LDA #194
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
08       PHP
A9       LDA #194
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #187
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
48   ... PHA      × 2
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
48       PHA
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A, and S; and writes in stack
10 bytes
24 24    BIT $24
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
A5 A5    LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
13 bytes
EA   ... NOP      × 2
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
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 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


229 cycles

5 bytes
A9       LDA #202
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 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2D    LDY #45
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A4 A4    LDY $A4
A0 2D    LDY #45
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 A6    LDX $A6
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
48       PHA
A9       LDA #195
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
08       PHP
A9       LDA #195
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
68       PLA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
8 bytes
EA   ... NOP      × 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
EA       NOP
38       SEC
A9 20    LDA #32
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
08       PHP
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
08       PHP
48       PHA
A9       LDA #188
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
68       PLA
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A, S, and Z&N; and writes in stack
48   ... PHA      × 2
08       PHP
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
EA   ... NOP      × 2
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA   ... NOP      × 2
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 2B    LDX #43
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 2B    LDY #43
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 2A    LDX #42
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 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


230 cycles

5 bytes
A9       LDA #203
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 2D    LDY #45
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 2D    LDY #45
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
48       PHA
A9       LDA #196
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
08       PHP
A9       LDA #196
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A2 2C    LDX #44
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 2C    LDY #44
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
9 bytes
48       PHA
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
08       PHP
48       PHA
A9       LDA #189
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
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts14
18       CLC
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 2A    LDA #42
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 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


231 cycles

5 bytes
A2 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 2E    LDY #46
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #204
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
E6 xx    INC @zptemp
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and requires @zptemp
48       PHA
A9       LDA #197
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
08       PHP
A9       LDA #197
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
48       PHA
B0 FA    BCS *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
8 bytes
08       PHP
A0 E4    LDY #228 ;hides 'CPX zp'
EA       NOP
C8       INY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 E8    LDX #232 ;hides 'INX'
EA   ... NOP      × 2
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
04 04    NOP $04
B0 F9    BCS *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
A5 A5    LDA $A5
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #190
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'
20 xx xx JSR @rts12× 2
D0 F7    BNE *-7
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
48   ... PHA      × 3
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
48   ... PHA      × 2
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A, and S; and writes in stack
11 bytes
EA   ... NOP      × 3
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA   ... NOP      × 3
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 2A    LDX #42
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 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


232 cycles

5 bytes
A9       LDA #205
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 21    LDX #33
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 21    LDY #33
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
48       PHA
A9       LDA #198
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
08       PHP
A9       LDA #198
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 20    LDX #32
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 20    LDY #32
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
68       PLA
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 2C    LDX #44
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 #191
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 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


233 cycles

5 bytes
A9       LDA #206
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 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 2E    LDY #46
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
38       SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2D    LDY #45
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9       LDA #199
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
08       PHP
A9       LDA #199
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #192
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 64    LDA #100 ;hides 'NOP zp'
EA       NOP
69 01    ADC #1
10 F9    BPL *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
18       CLC
A9 64    LDA #100 ;hides 'NOP zp'
EA       NOP
69 01    ADC #1
10 F9    BPL *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
48       PHA
08       PHP
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
11 bytes
24 24    BIT $24
48       PHA
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
A5 A5    LDA $A5
38       SEC
A9 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 18    LDX #24 ;hides 'CLC'
EA       NOP
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 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
85 xx    STA @zptemp
D0 F8    BNE *-6
68       PLA
28       PLP
Requires @zptemp, and support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
28       PLP
Writes in stack


234 cycles

6 bytes
EA       NOP
A9       LDA #205
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48       PHA
A2 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2E    LDY #46
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 2E    LDY #46
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
48       PHA
A9       LDA #200
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
08       PHP
A9       LDA #200
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
8 bytes
38       SEC
A9 21    LDA #33
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
9 bytes
EA       NOP
08       PHP
A0 20    LDY #32
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 20    LDX #32
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #193
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;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
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 F9    BNE *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
10 bytes
48       PHA
38       SEC
A9 20    LDA #32
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
38       SEC
A9 20    LDA #32
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


235 cycles

6 bytes
EA       NOP
A9       LDA #206
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A2 1A    LDX #26
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
A0 1A    LDY #26
68       PLA
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 2E    LDY #46
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
48       PHA
A9       LDA #201
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
08       PHP
A9       LDA #201
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
EA       NOP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
8 bytes
EA       NOP
38       SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 2D    LDY #45
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
9 bytes
48       PHA
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
08       PHP
48       PHA
A9       LDA #194
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 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
24 24    BIT $24
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


236 cycles

5 bytes
A2 2F    LDX #47
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 2F    LDY #47
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
6 bytes
68       PLA
A9       LDA #205
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 #206
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
48       PHA
A9       LDA #202
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
08       PHP
A9       LDA #202
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A       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
8 bytes
04 04    NOP $04
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
48       PHA
38       SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
48       PHA
08       PHP
A0 2D    LDY #45
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
A5 A5    LDA $A5
38       SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A6 A6    LDX $A6
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 2D    LDY #45
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #195
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
68       PLA
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
10 bytes
98       TYA
48       PHA
A0 20    LDY #32
EA       NOP
88       DEY
D0 FA    BNE *-4
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
EA   ... NOP      × 2
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 FB    BNE *-3
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
11 bytes
EA       NOP
48       PHA
38       SEC
A9 20    LDA #32
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 20    LDA #32
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
12 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


237 cycles

6 bytes
68       PLA
A9       LDA #206
20 xx xx JSR delay_a_25_clocks
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
48       PHA
A9       LDA #203
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
08       PHP
A9       LDA #203
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48   ... PHA      × 2
A2 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 2E    LDY #46
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 #$1A'
1A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
8 bytes
EA   ... NOP      × 3
A0 2E    LDY #46
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
68       PLA
38       SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 2D    LDX #45
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 2D    LDY #45
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #196
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
48       PHA
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 2D    LDA #45
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 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


238 cycles

6 bytes
EA       NOP
A2 2F    LDX #47
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 2F    LDY #47
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 2F    LDA #47
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A0 2E    LDY #46
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9       LDA #204
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
08       PHP
A9       LDA #204
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
9 bytes
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
E6 xx    INC @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
E6 xx    INC @zptemp
B0 FA    BCS *-4
28       PLP
Clobbers A; requires @zptemp; and writes in stack
08       PHP
48       PHA
A9       LDA #197
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 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
04 04    NOP $04
B0 F9    BCS *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
04 04    NOP $04
B0 F9    BCS *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
48       PHA
08       PHP
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
11 bytes
24 24    BIT $24
48       PHA
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
A5 A5    LDA $A5
38       SEC
A9 2D    LDA #45
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12× 2
D0 F7    BNE *-7
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack


239 cycles

6 bytes
A0 22    LDY #34
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 22    LDX #34
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
7 bytes
48       PHA
A9       LDA #205
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
08       PHP
A9       LDA #205
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 21    LDY #33
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 21    LDX #33
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48   ... PHA      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A       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
48       PHA
A9       LDA #198
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
EA   ... NOP      × 3
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
48   ... PHA      × 2
38       SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 2D    LDX #45
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 2C    LDX #44
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 2D    LDA #45
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 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


240 cycles

7 bytes
48       PHA
A9       LDA #206
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
08       PHP
A9       LDA #206
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
EA       NOP
A0 2E    LDY #46
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
EA       NOP
A2 2E    LDX #46
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A       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
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$1A'
1A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
9 bytes
48       PHA
38       SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
38       SEC
A9 2E    LDA #46
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
08       PHP
48       PHA
A9       LDA #199
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
18       CLC
A9 64    LDA #100 ;hides 'NOP zp'
EA       NOP
69 01    ADC #1
10 F9    BPL *-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 2C    LDA #44
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


See also