Fixed cycle delay: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(Bugfix: Accum loops with precarry added 1 byte to loop length, should have subtracted)
(Fix bug in loop sizes, and add support for clobbered 256-byte pages.)
Line 83: Line 83:
|-
|-
|<pre>A5 A5    LDA $A5</pre>||Clobbers A, and Z&N
|<pre>A5 A5    LDA $A5</pre>||Clobbers A, and Z&N
|-
|<pre>A6 A6    LDX $A6</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4</pre>||Clobbers Y, and Z&N
|<pre>A4 A4    LDY $A4</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 A6    LDX $A6</pre>||Clobbers X, and Z&N
|-
|-
|<pre>85 xx    STA @zptemp</pre>||Requires @zptemp
|<pre>85 xx    STA @zptemp</pre>||Requires @zptemp
Line 159: Line 159:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|2 bytes
!colspan="2"|2 bytes
|-
|<pre>F6 F6    INC $F6,X</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48  ... PHA      &times; 2</pre>||Clobbers S; and writes in stack
|<pre>48  ... PHA      &times; 2</pre>||Clobbers S; and writes in stack
Line 189: Line 191:
|<pre>EA      NOP
|<pre>EA      NOP
E6 xx    INC @zptemp</pre>||Clobbers Z&N; and requires @zptemp
E6 xx    INC @zptemp</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>FE 00 02 INC $0200,X</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
Line 232: Line 246:
68      PLA
68      PLA
9A      TXS</pre>||Clobbers A, X, and Z&N; and unsafe for interrupts
9A      TXS</pre>||Clobbers A, X, and Z&N; and unsafe for interrupts
|-
|<pre>EA      NOP
F6 F6    INC $F6,X</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 266: Line 283:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
E6 xx    INC @zptemp</pre>||Clobbers Z&N; and requires @zptemp
E6 xx    INC @zptemp</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA      NOP
FE 00 02 INC $0200,X</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA      NOP
FE 00 03 INC $0300,X</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA      NOP
FE 00 04 INC $0400,X</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA      NOP
FE 00 05 INC $0500,X</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA      NOP
FE 00 06 INC $0600,X</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA      NOP
FE 00 07 INC $0700,X</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 334: Line 369:
68      PLA
68      PLA
48      PHA</pre>||Clobbers A, and Z&N
48      PHA</pre>||Clobbers A, and Z&N
|-
|<pre>E6 xx    INC @zptemp
F6 F6    INC $F6,X</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 339: Line 377:
|<pre>A2 02    LDX #2
|<pre>A2 02    LDX #2
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 02    LDY #2
|<pre>A0 02    LDY #2
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
EA  ... NOP      &times; 3</pre>||Clobbers Z&N; and requires @zptemp
EA  ... NOP      &times; 3</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA  ... NOP      &times; 2
FE 00 02 INC $0200,X</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 03 INC $0300,X</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 04 INC $0400,X</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 05 INC $0500,X</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 06 INC $0600,X</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 07 INC $0700,X</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 412: Line 468:
|-
|-
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|<pre>08      PHP
F6 F6    INC $F6,X
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
68      PLA
48      PHA</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 430: Line 494:
68      PLA
68      PLA
48      PHA</pre>||Clobbers A, and Z&N
48      PHA</pre>||Clobbers A, and Z&N
|-
|<pre>EA      NOP
E6 xx    INC @zptemp
F6 F6    INC $F6,X</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 452: Line 520:
26 26    ROL $26
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N; and requires @zptemp
66 26    ROR $26</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA  ... NOP      &times; 3
FE 00 02 INC $0200,X</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 03 INC $0300,X</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 04 INC $0400,X</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 05 INC $0500,X</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 06 INC $0600,X</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 07 INC $0700,X</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
Line 541: Line 627:
68      PLA
68      PLA
9A      TXS</pre>||Clobbers A, X, and Z&N; and unsafe for interrupts
9A      TXS</pre>||Clobbers A, X, and Z&N; and unsafe for interrupts
|-
|<pre>EA      NOP
08      PHP
F6 F6    INC $F6,X
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>EA      NOP
F6 F6    INC $F6,X
68      PLA
48      PHA</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>C5 C5    CMP $C5
Line 601: Line 697:
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and not relocatable code
76 36    ROR $36,X</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>FE 00 02 INC $0200,X
EA  ... NOP      &times; 4</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
EA  ... NOP      &times; 4</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
EA  ... NOP      &times; 4</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
EA  ... NOP      &times; 4</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
EA  ... NOP      &times; 4</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
EA  ... NOP      &times; 4</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 671: Line 785:
|<pre>A2 03    LDX #3
|<pre>A2 03    LDX #3
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 770: Line 884:
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 Z&N, and V
|-
|<pre>EA      NOP
A4 A4    LDY $A4
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 782: Line 891:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
04 04   NOP $04
A4 A4   LDY $A4
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36    ROR $36,X</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
|<pre>FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>EA      NOP
|<pre>FE 00 03 INC $0300,X
4C xx xx JMP *+3
26 26   ROL $26
36 36   ROL $36,X
66 26   ROR $26</pre>||Clobbers Z&N; and requires writable $300-$3FF
76 36   ROR $36,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|9 bytes
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>EA      NOP
04 04    NOP $04
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
4C xx xx JMP *+3
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|9 bytes
|-
|-
|<pre>18  ... CLC      &times; 7
|<pre>18  ... CLC      &times; 7
Line 833: Line 971:
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>F6 F6    INC $F6,X
20 xx xx JSR @rts12</pre>||Clobbers Z&N; requires @zptemp, @rts12, and writable $00-$FF; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 904: Line 1,045:
68      PLA      \ &times; 2
68      PLA      \ &times; 2
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|<pre>EA      NOP
A2 03    LDX #3
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 03    LDY #3
A0 03    LDY #3
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>F6 F6... INC $F6,X&times; 3</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
A2 03    LDX #3
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 931: Line 1,074:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|<pre>F6 F6    INC $F6,X
00 00    BRK 0</pre>||Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 968: Line 1,114:
A2 03    LDX #3
A2 03    LDX #3
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
A0 03    LDY #3
A0 03    LDY #3
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 979: Line 1,125:
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,042: Line 1,212:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
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>F6 F6    INC $F6,X
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @zptemp, @rts12, @rts14, and writable $00-$FF; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
|<pre>68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
Line 1,057: Line 1,230:
68  ... PLA      &times; 4
68  ... PLA      &times; 4
9A      TXS</pre>||Clobbers A, X, and Z&N; and unsafe for interrupts
9A      TXS</pre>||Clobbers A, X, and Z&N; and unsafe for interrupts
|-
|<pre>08      PHP
28      PLP
08      PHP
F6 F6    INC $F6,X
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
68      PLA      \ &times; 2
48      PHA      /</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 1,102: Line 1,285:
68      PLA      \ &times; 2
68      PLA      \ &times; 2
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 03    LDX #3
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A0 03    LDY #3
A0 03    LDY #3
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA   ... NOP      &times; 2
|<pre>EA       NOP
A2 03    LDX #3
F6 F6... INC $F6,X&times; 3</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,137: Line 1,323:
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|<pre>A2 04    LDX #4
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
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>F6 F6    INC $F6,X
20 xx xx JSR @rts15</pre>||Clobbers Z&N; requires @zptemp, @rts12, @rts15, and writable $00-$FF; and writes in stack
|-
|<pre>EA      NOP
F6 F6    INC $F6,X
00 00    BRK 0</pre>||Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 1,172: Line 1,365:
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|9 bytes
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>EA       NOP
EA   ... NOP     &times; 3
FE 00 03 INC $0300,X
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 Z&N; and requires writable $300-$3FF
|-
|-
|<pre>24 24    BIT $24
|<pre>EA       NOP
EA   ... NOP     &times; 3
FE 00 04 INC $0400,X
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 Z&N; and requires writable $400-$4FF
|-
|-
|<pre>04 04    NOP $04
|<pre>EA      NOP
EA  ... NOP      &times; 3
FE 00 05 INC $0500,X
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA      NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
!colspan="2"|9 bytes
|-
|<pre>C5 C5    CMP $C5
EA  ... NOP      &times; 3
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N, and C
|-
|<pre>24 24    BIT $24
EA  ... NOP      &times; 3
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N, and V
|-
|<pre>04 04    NOP $04
EA  ... NOP      &times; 3
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,240: Line 1,463:
18      CLC
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>A2 03    LDX #3
EA      NOP
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 03    LDX #3
|<pre>EA      NOP
EA      NOP
F6 F6    INC $F6,X
CA      DEX
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @zptemp, @rts12, @rts14, and writable $00-$FF; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,267: Line 1,494:
9A      TXS
9A      TXS
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
28      PLP
08      PHP
F6 F6    INC $F6,X
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>EA      NOP
F6 F6    INC $F6,X
68      PLA      \ &times; 2
48      PHA      /</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,287: Line 1,526:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 C5   CMP $C5
24 24   BIT $24
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X
76 36    ROR $36,X
Line 1,320: Line 1,559:
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|<pre>EA      NOP
A2 04    LDX #4
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,335: Line 1,574:
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>EA      NOP
F6 F6    INC $F6,X
20 xx xx JSR @rts15</pre>||Clobbers Z&N; requires @zptemp, @rts12, @rts15, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,358: Line 1,601:
68      PLA      \ &times; 3
68      PLA      \ &times; 3
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|8 bytes
|-
|<pre>E6 xx    INC @zptemp
F6 F6... INC $F6,X&times; 3</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 1,365: Line 1,613:
36 36    ROL $36,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA  ... NOP      &times; 2
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,431: Line 1,709:
|-
|-
|<pre>68  ... PLA      &times; 6</pre>||Clobbers A, S, and Z&N
|<pre>68  ... PLA      &times; 6</pre>||Clobbers A, S, and Z&N
|-
|<pre>48      PHA
A2 04    LDX #4
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>A6 A6    LDX $A6
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 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 A6    LDX $A6
A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,502: Line 1,780:
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1</pre>||Clobbers A, S, Z&N, and C
90 FD    BCC *-1</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>A2 03    LDX #3
48      PHA
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
48      PHA
48      PHA
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 03   LDX #3
|<pre>68      PLA
48      PHA
A2 04   LDX #4
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,551: Line 1,829:
A2 04    LDX #4
A2 04    LDX #4
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>20 xx xx JSR @rts12
24 24   BIT $24
08      PHP
28      PLP
F6 F6   INC $F6,X
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
28      PLP</pre>||Requires @zptemp, @rts12, and writable $00-$FF; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 1,567: Line 1,845:
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>08      PHP
24 24    BIT $24
28      PLP
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,603: Line 1,886:
68      PLA      \ &times; 3
68      PLA      \ &times; 3
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
E6 xx    INC @zptemp
F6 F6... INC $F6,X&times; 3</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 1,621: Line 1,910:
26 26    ROL $26  \ &times; 2
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires @zptemp
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA  ... NOP      &times; 3
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
Line 1,669: Line 1,988:
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>A2 05    LDX #5
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 05    LDY #5
|<pre>A0 05    LDY #5
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 1,765: Line 2,084:
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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>A0 82   LDY #130 ;hides 'NOP #imm'
|<pre>F6 F6    INC $F6,X
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 FD   BNE *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|<pre>08      PHP
F6 F6    INC $F6,X
28      PLP
20 xx xx JSR @rts14</pre>||Requires @zptemp, @rts12, @rts14, and writable $00-$FF; and writes in stack
|-
|-
|<pre>A2 82    LDX #130 ;hides 'NOP #imm'
|<pre>A2 82    LDX #130 ;hides 'NOP #imm'
Line 1,777: Line 2,101:
CA      DEX
CA      DEX
30 FA    BMI *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
30 FA    BMI *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|<pre>A0 82    LDY #130 ;hides 'NOP #imm'
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>68      PLA
|<pre>68      PLA
Line 1,785: Line 2,114:
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 FD   BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,800: Line 2,129:
A2 04    LDX #4
A2 04    LDX #4
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>08      PHP
F6 F6    INC $F6,X
28      PLP      \ &times; 2
08      PHP      /
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
68      PLA      \ &times; 3
48      PHA      /</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>24 24    BIT $24
|<pre>24 24    BIT $24
Line 1,872: Line 2,211:
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|14 bytes
|<pre>FE 00 02 INC $0200,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
!colspan="2"|14 bytes
|-
|-
|<pre>18  ... CLC      &times; 12
|<pre>18  ... CLC      &times; 12
Line 1,913: Line 2,276:
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>EA      NOP
A2 05    LDX #5
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 05    LDY #5
A0 05    LDY #5
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<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
Line 1,943: Line 2,306:
A2 04    LDX #4
A2 04    LDX #4
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 1,949: Line 2,312:
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
F6 F6    INC $F6,X
28      PLP
20 xx xx JSR @rts15</pre>||Requires @zptemp, @rts12, @rts15, and writable $00-$FF; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 7</pre>||Clobbers A, S, and Z&N
|<pre>68  ... PLA      &times; 7</pre>||Clobbers A, S, and Z&N
Line 1,996: Line 2,364:
EA      NOP
EA      NOP
90 FC    BCC *-2</pre>||Clobbers A, Z&N, and C
90 FC    BCC *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>A2 04    LDX #4
EA      NOP
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 04    LDX #4
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
Line 2,059: Line 2,427:
10 FC    BPL *-2
10 FC    BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A2 03    LDX #3
EA      NOP
CA      DEX
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,064: Line 2,439:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 03    LDX #3
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 2,099: Line 2,467:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>EA      NOP
08      PHP
F6 F6    INC $F6,X
28      PLP      \ &times; 2
08      PHP      /
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>EA      NOP
F6 F6    INC $F6,X
68      PLA      \ &times; 3
48      PHA      /</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
Line 2,145: Line 2,525:
36 36    ROL $36,X \ &times; 2
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|<pre>FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,191: Line 2,607:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, and @rts15; and writes in stack
|<pre>20 xx xx JSR @rts15&times; 2</pre>||Requires @rts12, and @rts15; and writes in stack
Line 2,205: Line 2,625:
A2 05    LDX #5
A2 05    LDX #5
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 05    LDY #5
A0 05    LDY #5
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,221: Line 2,641:
A2 05    LDX #5
A2 05    LDX #5
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A0 05    LDY #5
A0 05    LDY #5
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,249: Line 2,669:
A2 04    LDX #4
A2 04    LDX #4
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 2,256: Line 2,676:
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
20 xx xx JSR @rts12&times; 2</pre>||Clobbers Z&N; requires @zptemp, @rts12, and writable $00-$FF; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,278: Line 2,701:
68      PLA      \ &times; 4
68      PLA      \ &times; 4
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|10 bytes
|-
|<pre>F6 F6... INC $F6,X&times; 5</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 2,302: Line 2,729:
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 2,375: Line 2,802:
A2 04    LDX #4
A2 04    LDX #4
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 2,382: Line 2,809:
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 04    LDX #4
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,391: Line 2,825:
A0 04    LDY #4
A0 04    LDY #4
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,423: Line 2,850:
36 36    ROL $36,X \ &times; 2
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 2,478: Line 2,929:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
CA      DEX ;first loop only
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
Line 2,484: Line 2,940:
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 05   LDX #5 ;hides 'ORA zp'
|<pre>F6 F6   INC $F6,X
CA      DEX ;first loop only
00 00... BRK 0    &times; 2</pre>||Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>68  ... PLA      &times; 2
|<pre>68  ... PLA      &times; 2
Line 2,505: Line 2,959:
|<pre>A2 05    LDX #5
|<pre>A2 05    LDX #5
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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>F6 F6    INC $F6,X
A0 05    LDY #5
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,523: Line 2,982:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A2 05    LDX #5
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A0 05    LDY #5
A0 05    LDY #5
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,538: Line 2,997:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A6 A6    LDX $A6
A2 04    LDX #4
EA      NOP
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
Line 2,543: Line 3,008:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 A6    LDX $A6
A2 04    LDX #4
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 2,572: Line 3,031:
90 FD    BCC *-1
90 FD    BCC *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A2 03    LDX #3
C5 C5    CMP $C5
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,577: Line 3,043:
C5 C5    CMP $C5
C5 C5    CMP $C5
88      DEY
88      DEY
D0 F9   BNE *-5
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
|<pre>08      PHP
A2 03    LDX #3
28      PLP
24 24    BIT $24
20 xx xx JSR @rts12
CA       DEX
08       PHP
D0 F9   BNE *-5
F6 F6   INC $F6,X
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Requires @zptemp, @rts12, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
Line 2,611: Line 3,077:
68      PLA      \ &times; 4
68      PLA      \ &times; 4
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
F6 F6... INC $F6,X&times; 5</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 2,638: Line 3,109:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|<pre>EA      NOP
A2 06    LDX #6
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 06    LDY #6
A0 06    LDY #6
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 06    LDX #6
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,666: Line 3,137:
10 FD    BPL *-1
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A2 05    LDX #5
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 05    LDY #5
A0 05    LDY #5
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,730: Line 3,201:
36 36    ROL $36,X \ &times; 2
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA      NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA      NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA      NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 2,794: Line 3,295:
A2 06    LDX #6
A2 06    LDX #6
CA      DEX
CA      DEX
D0 FB   BNE *-3</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>68  ... PLA      &times; 2
|<pre>68  ... PLA      &times; 2
Line 2,804: Line 3,305:
A2 06    LDX #6
A2 06    LDX #6
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,815: Line 3,316:
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>EA      NOP
F6 F6    INC $F6,X
00 00... BRK 0    &times; 2</pre>||Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,852: Line 3,357:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
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>F6 F6    INC $F6,X
20 xx xx JSR @rts14&times; 2</pre>||Clobbers Z&N; requires @zptemp, @rts12, @rts14, and writable $00-$FF; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 4
|<pre>EA  ... NOP      &times; 4
Line 2,871: Line 3,379:
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 8</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 8</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|10 bytes
|-
|<pre>F6 F6    INC $F6,X
68      PLA      \ &times; 4
48      PHA      /</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 2,922: Line 3,436:
A2 06    LDX #6
A2 06    LDX #6
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,934: Line 3,448:
A2 06    LDX #6
A2 06    LDX #6
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,970: Line 3,484:
10 FD    BPL *-1
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 05    LDX #5
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,975: Line 3,496:
A0 05    LDY #5
A0 05    LDY #5
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,014: Line 3,528:
|<pre>68      PLA      \ &times; 5
|<pre>68      PLA      \ &times; 5
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|12 bytes
|-
|<pre>E6 xx    INC @zptemp
F6 F6... INC $F6,X&times; 5</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 3,022: Line 3,541:
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|14 bytes
|<pre>EA  ... NOP      &times; 2
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>EA  ... NOP      &times; 2
36 36    ROL $36,X
FE 00 03 INC $0300,X
76 36    ROR $36,X
36 36    ROL $36,X \ &times; 2
26 26    ROL $26  \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
66 26    ROR $26  /</pre>||Clobbers Z&N, and C
|-
|<pre>EA  ... NOP      &times; 2
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
!colspan="2"|14 bytes
|-
|<pre>C5 C5    CMP $C5
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 24    BIT $24
|<pre>24 24    BIT $24
Line 3,082: Line 3,631:
|<pre>A2 07    LDX #7
|<pre>A2 07    LDX #7
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 07    LDY #7
|<pre>A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 3,132: Line 3,681:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 3,139: Line 3,688:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
20 xx xx JSR @rts15&times; 2</pre>||Clobbers Z&N; requires @zptemp, @rts12, @rts15, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,171: Line 3,723:
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
F6 F6    INC $F6,X
68      PLA      \ &times; 4
48      PHA      /</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 3,206: Line 3,765:
88      DEY
88      DEY
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>A2 04    LDX #4
68      PLA
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
68      PLA
68      PLA
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
D0 FC   BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>A2 04    LDX #4
68      PLA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 3,223: Line 3,782:
18      CLC
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>A2 04    LDX #4
EA  ... NOP      &times; 2
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
88      DEY
88      DEY
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 04    LDX #4
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,250: Line 3,809:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>F6 F6    INC $F6,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>08      PHP
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,284: Line 3,855:
10 FD    BPL *-1
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 05    LDX #5
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 3,289: Line 3,867:
A0 05    LDY #5
A0 05    LDY #5
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,324: Line 3,895:
68      PLA      \ &times; 5
68      PLA      \ &times; 5
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|13 bytes
|-
|<pre>EA      NOP
E6 xx    INC @zptemp
F6 F6... INC $F6,X&times; 5</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 3,345: Line 3,922:
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires @zptemp
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 04    NOP $04
|<pre>EA  ... NOP     &times; 3
26 26    ROL $26
FE 00 02 INC $0200,X
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
!colspan="2"|15 bytes
|<pre>EA  ... NOP      &times; 3
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>EA  ... NOP      &times; 3
26 26    ROL $26
FE 00 04 INC $0400,X
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|15 bytes
|-
|<pre>4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 3,394: Line 4,001:
EA      NOP ;first loop only
EA      NOP ;first loop only
10 FC    BPL *-2</pre>||Clobbers A, Z&N, C, and V
10 FC    BPL *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
A2 07    LDX #7
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 3,428: Line 4,035:
90 FD    BCC *-1
90 FD    BCC *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A2 06    LDX #6
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 06    LDY #6
A0 06    LDY #6
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 06    LDX #6
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
Line 3,488: Line 4,095:
|-
|-
|<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
A2 07    LDX #7
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 07    LDX #7
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 3,504: Line 4,111:
A2 07    LDX #7
A2 07    LDX #7
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,522: Line 4,129:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 05    LDX #5 ;hides 'ORA zp'
CA      DEX ;first loop only
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,529: Line 4,143:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|<pre>08      PHP
A2 05    LDX #5 ;hides 'ORA zp'
CA      DEX ;first loop only
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
Line 3,567: Line 4,174:
A2 05    LDX #5
A2 05    LDX #5
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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
F6 F6    INC $F6,X
A0 05    LDY #5
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
Line 3,592: Line 4,206:
A2 05    LDX #5
A2 05    LDX #5
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 3,599: Line 4,213:
A0 05    LDY #5
A0 05    LDY #5
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
Line 3,609: Line 4,223:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 3,617: Line 4,231:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 3,675: Line 4,289:
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|20 bytes
|<pre>FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
!colspan="2"|20 bytes
|-
|-
|<pre>18  ... CLC      &times; 18
|<pre>18  ... CLC      &times; 18
Line 3,705: Line 4,355:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
EA      NOP
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
Line 3,710: Line 4,365:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
EA      NOP
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 3,732: Line 4,382:
A2 07    LDX #7
A2 07    LDX #7
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,781: Line 4,436:
A2 06    LDX #6
A2 06    LDX #6
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 3,788: Line 4,443:
A0 06    LDY #6
A0 06    LDY #6
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 3,836: Line 4,491:
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>A2 08    LDX #8
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 3,874: Line 4,529:
A2 06    LDX #6
A2 06    LDX #6
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 3,883: Line 4,538:
A2 06    LDX #6
A2 06    LDX #6
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 3,921: Line 4,576:
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
|-
!colspan="2"|12 bytes
|-
|<pre>F6 F6    INC $F6,X
68      PLA      \ &times; 5
48      PHA      /</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 3,945: Line 4,606:
36 36    ROL $36,X \ &times; 3
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|<pre>FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,013: Line 4,710:
|<pre>A2 07    LDX #7
|<pre>A2 07    LDX #7
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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>F6 F6    INC $F6,X
A0 07    LDY #7
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,025: Line 4,727:
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      &times; 2
A2 07    LDX #7
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,054: Line 4,756:
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>EA  ... NOP      &times; 3
A2 07    LDX #7
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA   ... NOP     &times; 3
|<pre>08      PHP
A2 07    LDX #7
A2 F8    LDX #248 ;hides 'SED'
CA      DEX
E8   ... INX     &times; 2
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,070: Line 4,778:
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>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
Line 4,091: Line 4,793:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>20 xx xx JSR @rts14&times; 3</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>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>20 xx xx JSR @rts14&times; 3</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,128: Line 4,830:
|<pre>68      PLA      \ &times; 6
|<pre>68      PLA      \ &times; 6
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|14 bytes
|-
|<pre>F6 F6... INC $F6,X&times; 7</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 4,162: Line 4,868:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 4,186: Line 4,892:
A2 07    LDX #7
A2 07    LDX #7
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 4,192: Line 4,898:
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 4,249: Line 4,955:
36 36    ROL $36,X \ &times; 3
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 4,318: Line 5,048:
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
D0 FB   BNE *-3</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 4,325: Line 5,055:
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,398: Line 5,128:
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
CA      DEX
CA      DEX
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 4,405: Line 5,135:
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
88      DEY
88      DEY
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 4,446: Line 5,176:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>08      PHP
F6 F6    INC $F6,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,484: Line 5,222:
68      PLA      \ &times; 6
68      PLA      \ &times; 6
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|15 bytes
|-
|<pre>EA      NOP
F6 F6... INC $F6,X&times; 7</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 4,507: Line 5,250:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,512: Line 5,259:
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>68      PLA
A2 08    LDX #8
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 08    LDY #8
A0 08    LDY #8
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 4,532: Line 5,279:
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A0 08    LDY #8
A0 08    LDY #8
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,567: Line 5,314:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 07    LDY #7
A2 07    LDX #7
88       DEY
CA       DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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 07    LDX #7
A0 07    LDY #7
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
00 00... BRK 0    &times; 3</pre>||Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 4,612: Line 5,362:
36 36    ROL $36,X \ &times; 3
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA      NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA      NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA      NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 4,659: Line 5,439:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 09    LDX #9
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 09    LDY #9
|<pre>A0 09    LDY #9
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 09    LDX #9
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #19
|<pre>A9      LDA #19
Line 4,693: Line 5,473:
28      PLP
28      PLP
00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 3</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 07    LDX #7
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,698: Line 5,485:
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
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
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 07    LDX #7
A2 07    LDX #7
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,714: Line 5,501:
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,803: Line 5,583:
|<pre>A2 08    LDX #8
|<pre>A2 08    LDX #8
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|<pre>F6 F6    INC $F6,X
A0 08    LDY #8
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,829: Line 5,619:
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
D0 FB   BNE *-3</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>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A0 08    LDY #8
A0 08    LDY #8
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A0 08    LDY #8
A2 08    LDX #8
88       DEY
CA       DEX
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A2 08    LDX #8
A0 08    LDY #8
CA       DEX
88       DEY
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 4,855: Line 5,645:
18      CLC
18      CLC
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C
|-
|<pre>EA  ... NOP      &times; 3
A2 08    LDX #8
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
A0 08    LDY #8
A0 08    LDY #8
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>08      PHP
A2 08   LDX #8
A2 05   LDX #5 ;hides 'ORA zp'
EA      NOP
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,872: Line 5,669:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|<pre>08      PHP
A2 05    LDX #5 ;hides 'ORA zp'
EA      NOP
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 4,909: Line 5,699:
A2 07    LDX #7
A2 07    LDX #7
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 4,916: Line 5,706:
A0 07    LDY #7
A0 07    LDY #7
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,925: Line 5,722:
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
F6 F6    INC $F6,X
00 00... BRK 0    &times; 3</pre>||Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,963: Line 5,764:
68      PLA      \ &times; 5
68      PLA      \ &times; 5
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|16 bytes
|-
|<pre>E6 xx    INC @zptemp
F6 F6... INC $F6,X&times; 7</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 4,970: Line 5,776:
36 36    ROL $36,X \ &times; 3
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA  ... NOP      &times; 2
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 5,026: Line 5,862:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 09    LDX #9
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 09    LDY #9
A0 09    LDY #9
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 09    LDX #9
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,056: Line 5,892:
D0 FD    BNE *-1
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A2 08    LDX #8
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 08    LDY #8
A0 08    LDY #8
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 5,082: Line 5,918:
|-
|-
|<pre>68  ... PLA      &times; 12</pre>||Clobbers A, S, and Z&N
|<pre>68  ... PLA      &times; 12</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|14 bytes
|-
|<pre>F6 F6    INC $F6,X
68      PLA      \ &times; 6
48      PHA      /</pre>||Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 5,123: Line 5,965:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 FA   BNE *-4</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,141: Line 5,983:
A2 09    LDX #9
A2 09    LDX #9
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 5,203: Line 6,045:
A2 07    LDX #7
A2 07    LDX #7
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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
F6 F6    INC $F6,X
A0 07    LDY #7
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,216: Line 6,065:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A0 07    LDY #7
A2 07    LDX #7
88       DEY
CA       DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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 07    LDX #7
A0 07    LDY #7
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,255: Line 6,104:
|<pre>68      PLA      \ &times; 7
|<pre>68      PLA      \ &times; 7
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|17 bytes
|-
|<pre>EA      NOP
E6 xx    INC @zptemp
F6 F6... INC $F6,X&times; 7</pre>||Clobbers Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 5,275: Line 6,130:
36 36    ROL $36,X \ &times; 2
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA  ... NOP      &times; 3
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA  ... NOP      &times; 3
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
Line 5,330: Line 6,215:
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>A2 07    LDX #7
EA      NOP
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 07    LDY #7
|<pre>A0 07    LDY #7
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 07    LDX #7
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,392: Line 6,277:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 5,399: Line 6,284:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 5,449: Line 6,334:
|<pre>A2 0A    LDX #10
|<pre>A2 0A    LDX #10
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0A    LDY #10
|<pre>A0 0A    LDY #10
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,507: Line 6,392:
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 5,516: Line 6,401:
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 5,596: Line 6,481:
36 36    ROL $36,X \ &times; 4
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|<pre>FE 00 02 INC $0200,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 5,657: Line 6,578:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,676: Line 6,597:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>F6 F6    INC $F6,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|<pre>08      PHP
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 5,723: Line 6,662:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 08    LDY #8
A2 08    LDX #8
88       DEY
CA       DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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 08    LDX #8
A0 08    LDY #8
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
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 5,798: Line 6,737:
A2 0A    LDX #10
A2 0A    LDX #10
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 0A    LDY #10
A0 0A    LDY #10
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
Line 5,814: Line 6,753:
A2 09    LDX #9
A2 09    LDX #9
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 5,820: Line 6,759:
A0 09    LDY #9
A0 09    LDY #9
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 5,887: Line 6,826:
36 36    ROL $36,X \ &times; 4
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|<pre>FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,947: Line 6,922:
A2 0A    LDX #10
A2 0A    LDX #10
CA      DEX
CA      DEX
D0 FB   BNE *-3</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>48      PHA
|<pre>48      PHA
A0 0A    LDY #10
A0 0A    LDY #10
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
Line 5,969: Line 6,944:
A2 0A    LDX #10
A2 0A    LDX #10
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
A0 0A    LDY #10
A0 0A    LDY #10
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,007: Line 6,982:
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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>EA      NOP
F6 F6    INC $F6,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>08      PHP
EA      NOP
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>08      PHP
F6 F6    INC $F6,X
A0 08    LDY #8
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,038: Line 7,034:
A2 08    LDX #8
A2 08    LDX #8
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 6,045: Line 7,041:
A0 08    LDY #8
A0 08    LDY #8
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
Line 6,065: Line 7,061:
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>EA  ... NOP      &times; 3
08      PHP
A2 08    LDX #8
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 6,070: Line 7,073:
A0 08    LDY #8
A0 08    LDY #8
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 6,122: Line 7,118:
18      CLC
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>A2 F8    LDX #248 ;hides 'SED'
E8      INX
D0 FC    BNE *-2</pre>||Clobbers X, Z&N, and D
|-
|-
|<pre>A0 F8    LDY #248 ;hides 'SED'
|<pre>A0 F8    LDY #248 ;hides 'SED'
Line 6,127: Line 7,127:
D0 FC    BNE *-2</pre>||Clobbers Y, Z&N, and D
D0 FC    BNE *-2</pre>||Clobbers Y, Z&N, and D
|-
|-
|<pre>A2 F8    LDX #248 ;hides 'SED'
!colspan="2"|6 bytes
E8      INX
D0 FC    BNE *-2</pre>||Clobbers X, Z&N, and D
|-
|-
!colspan="2"|6 bytes
|<pre>F6 F6    INC $F6,X
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
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>A2 06    LDX #6
68      PLA
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
68      PLA
68      PLA
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
D0 FC   BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
68      PLA
EA  ... NOP      &times; 2
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
88      DEY
88      DEY
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 06    LDX #6
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,170: Line 7,170:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A2 09    LDX #9
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,175: Line 7,182:
A0 09    LDY #9
A0 09    LDY #9
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 09    LDX #9
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 6,214: Line 7,214:
36 36    ROL $36,X \ &times; 4
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 6,270: Line 7,294:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0B    LDX #11
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0B    LDY #11
|<pre>A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #29
|<pre>A9      LDA #29
Line 6,327: Line 7,351:
A2 09    LDX #9
A2 09    LDX #9
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 6,351: Line 7,375:
C5 C5    CMP $C5
C5 C5    CMP $C5
CA      DEX
CA      DEX
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 6,413: Line 7,437:
18      CLC
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>A2 08    LDX #8
EA      NOP
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 08    LDX #8
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 6,456: Line 7,480:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 6,463: Line 7,487:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 6,516: Line 7,540:
|<pre>85 xx    STA @zptemp
|<pre>85 xx    STA @zptemp
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA      NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA      NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA      NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
Line 6,563: Line 7,617:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 0B    LDY #11
A2 0B    LDX #11
88       DEY
CA       DEX
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 0B    LDX #11
A0 0B    LDY #11
CA       DEX
88       DEY
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 6,604: Line 7,658:
A2 0A    LDX #10
A2 0A    LDX #10
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 6,610: Line 7,664:
A0 0A    LDY #10
A0 0A    LDY #10
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 6,686: Line 7,740:
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB   BNE *-3</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>48      PHA
|<pre>48      PHA
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 6,713: Line 7,767:
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,779: Line 7,833:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 6,790: Line 7,844:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>08      PHP
F6 F6    INC $F6,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,847: Line 7,909:
24 24    BIT $24
24 24    BIT $24
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|<pre>EA  ... NOP      &times; 2
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA  ... NOP      &times; 2
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,899: Line 7,991:
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 0B    LDX #11
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 6,971: Line 8,063:
A2 0A    LDX #10
A2 0A    LDX #10
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 6,978: Line 8,070:
A0 0A    LDY #10
A0 0A    LDY #10
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 7,038: Line 8,130:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0C    LDX #12
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0C    LDX #12
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #34
|<pre>A9      LDA #34
Line 7,104: Line 8,196:
30 FC    BMI *-2
30 FC    BMI *-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
A2 0A    LDX #10
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,109: Line 8,208:
A0 0A    LDY #10
A0 0A    LDY #10
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
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 0A    LDX #10
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
Line 7,136: Line 8,228:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 A4   LDY $A4
A6 A6   LDX $A6
A0 0A    LDY #10
A2 0A    LDX #10
88       DEY
CA       DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 A6   LDX $A6
A4 A4   LDY $A4
A2 0A    LDX #10
A0 0A    LDY #10
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
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 7,157: Line 8,249:
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>08      PHP
EA      NOP
F6 F6    INC $F6,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,203: Line 8,304:
E6 xx    INC @zptemp
E6 xx    INC @zptemp
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>FE 00 02 INC $0200,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 7,324: Line 8,443:
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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
|<pre>F6 F6    INC $F6,X
68      PLA
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,337: Line 8,455:
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>EA      NOP
68      PLA
A0 0B    LDY #11
88      DEY
D0 FD    BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 7,344: Line 8,468:
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,411: Line 8,535:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 0C    LDX #12
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 0C    LDY #12
A0 0C    LDY #12
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 0C    LDX #12
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 7,435: Line 8,559:
A9 0C    LDA #12
A9 0C    LDA #12
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
4C xx xx JMP *+3
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|<pre>08      PHP
A2 0B    LDX #11
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,598: Line 8,722:
36 36    ROL $36,X \ &times; 4
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA      NOP
FE 00 03 INC $0300,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA      NOP
FE 00 05 INC $0500,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA      NOP
FE 00 06 INC $0600,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
Line 7,650: Line 8,798:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 09    LDY #9
|<pre>A0 09    LDY #9
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 7,687: Line 8,835:
D0 FC    BNE *-2
D0 FC    BNE *-2
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>A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
18      CLC
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,694: Line 8,847:
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
A2 08    LDX #8
EA      NOP
CA      DEX
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,699: Line 8,859:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 08    LDX #8
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,728: Line 8,881:
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|16 bytes
|-
|<pre>68  ... PLA      &times; 16</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|19 bytes
|-
|<pre>EA      NOP
68      PLA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 11
10 F1    BPL *-13</pre>||Clobbers A, and Z&N
|-
!colspan="2"|22 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|32 bytes
|-
|<pre>EA  ... NOP      &times; 32</pre>||No requirements
|-
|-
|}
|}
Line 7,746: Line 8,923:
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>A2 08    LDX #8
48      PHA
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
48      PHA
48      PHA
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 08   LDX #8
|<pre>68      PLA
48      PHA
A2 0C   LDX #12
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 0C    LDY #12
88      DEY
D0 FD    BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 7,762: Line 8,949:
A2 0C    LDX #12
A2 0C    LDX #12
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A0 0C    LDY #12
A0 0C    LDY #12
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 7,795: Line 8,982:
A9 0C    LDA #12
A9 0C    LDA #12
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 7,806: Line 8,993:
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 7,813: Line 9,000:
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 7,844: Line 9,031:
D0 FC    BNE *-2
D0 FC    BNE *-2
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>EA      NOP
68  ... PLA      &times; 2
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 7,862: Line 9,055:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>26 26    ROL $26
 
66 26    ROR $26
 
A9 0A    LDA #$0A ;hides 'ASL A'
=== 66 cycles ===
18      CLC
{| class="wikitable testtable"
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
!colspan="2"|5 bytes
|-
|-
|<pre>A2 0D    LDX #13
!colspan="2"|17 bytes
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0D    LDY #13
|<pre>EA      NOP
88       DEY
68      PLA
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
48       PHA
68  ... PLA      &times; 14</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>A9      LDA #39
!colspan="2"|19 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
68      PLA      \ &times; 9
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|22 bytes
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
|<pre>E6 xx    INC @zptemp
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
!colspan="2"|23 bytes
|-
|<pre>EA      NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|<pre>EA      NOP
24 24    BIT $24
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|<pre>FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>EA      NOP
04 04    NOP $04
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|24 bytes
|-
|<pre>EA      NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|26 bytes
|-
|<pre>26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|33 bytes
|-
|<pre>18  ... CLC      &times; 31
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 31
50 00    BVC *+2</pre>||Clobbers V
|-
|<pre>85 xx    STA @zptemp
EA  ... NOP      &times; 31</pre>||Requires @zptemp
|-
|<pre>04 04    NOP $04
EA  ... NOP      &times; 31</pre>||Requires support for unofficial opcodes
|-
!colspan="2"|34 bytes
|-
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 31</pre>||Not relocatable code
|-
|}
 
 
=== 66 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 0D    LDX #13
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>A0 0D    LDY #13
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #39
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
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
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,907: Line 9,210:
10 FB    BPL *-3
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
|-
|<pre>38      SEC
A9 09    LDA #9
EA      NOP
E9 01    SBC #1
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,915: Line 9,224:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A5 A5    LDA $A5
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A0 0B   LDY #11
85 xx    STA @zptemp
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FB    BNE *-3
|-
28       PLP</pre>||Clobbers Y, and S; and writes in stack
|<pre>04 04    NOP $04
A9 0A   LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|<pre>68  ... PLA      &times; 2
48      PHA
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 7,926: Line 9,244:
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 0B    LDY #11
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>EA  ... NOP      &times; 2
A4 A4    LDY $A4
68       PLA
A0 0B   LDY #11
48      PHA
88       DEY
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB   BNE *-3
18       CLC
28      PLP</pre>||Clobbers Y; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,942: Line 9,267:
A2 0B    LDX #11
A2 0B    LDX #11
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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 0B    LDY #11
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,973: Line 9,305:
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|17 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 16</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|19 bytes
|-
|<pre>68      PLA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
!colspan="2"|22 bytes
|-
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|33 bytes
|-
|<pre>EA  ... NOP      &times; 33</pre>||No requirements
|-
|-
|}
|}
Line 8,001: Line 9,357:
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
F6 F6    INC $F6,X
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|<pre>A0 06    LDY #6
F6 F6    INC $F6,X
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 8,013: Line 9,379:
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>A2 06    LDX #6
48  ... PHA      &times; 2
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
48  ... PHA      &times; 2
48  ... PHA      &times; 2
88      DEY
88      DEY
D0 F9   BNE *-5</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 06    LDX #6
|<pre>A2 06    LDX #6
48  ... PHA      &times; 2
EA      NOP
68      PLA
CA      DEX
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>A0 06    LDY #6
EA      NOP
68      PLA
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and requires @zptemp
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 8,035: Line 9,423:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
Line 8,041: Line 9,429:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 8,049: Line 9,437:
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
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
08      PHP
A2 0B    LDX #11
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 8,057: Line 9,452:
A0 0B    LDY #11
A0 0B    LDY #11
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 8,130: Line 9,518:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|17 bytes
 
|-
 
|<pre>68      PLA
=== 68 cycles ===
48      PHA
{| class="wikitable testtable"
68  ... PLA      &times; 15</pre>||Clobbers A, S, and Z&N
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #41
!colspan="2"|19 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>A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 14
10 EE    BPL *-16</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|23 bytes
A0 0D    LDY #13
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 0D   LDX #13
E6 xx   INC @zptemp
CA      DEX
36 36    ROL $36,X \ &times; 5
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|7 bytes
|<pre>FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>38      SEC
|<pre>FE 00 03 INC $0300,X
A9 0D   LDA #13
36 36   ROL $36,X \ &times; 5
E9 01   SBC #1
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>FE 00 04 INC $0400,X
A2 0C   LDX #12
36 36   ROL $36,X \ &times; 5
CA      DEX
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 05 INC $0500,X
A0 0C   LDY #12
36 36   ROL $36,X \ &times; 5
88      DEY
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>FE 00 06 INC $0600,X
A9      LDA #34
36 36    ROL $36,X \ &times; 5
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 07 INC $0700,X
A9      LDA #34
36 36    ROL $36,X \ &times; 5
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>00 00    BRK 0
!colspan="2"|24 bytes
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>EA      NOP
|<pre>C5 C5    CMP $C5
48      PHA
26 26    ROL $26
A9 0A   LDA #$0A ;hides 'ASL A'
66 26   ROR $26
48      PHA
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>24 24   BIT $24
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|<pre>04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|25 bytes
|-
|-
!colspan="2"|8 bytes
|<pre>4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>E6 xx    INC @zptemp
!colspan="2"|26 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|9 bytes
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|34 bytes
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
10 FB    BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>18   ... CLC     &times; 32
18       CLC
90 00   BCC *+2</pre>||Clobbers C
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
10 FB   BPL *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>B8  ... CLV      &times; 32
48      PHA
50 00    BVC *+2</pre>||Clobbers V
A9      LDA #27
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>85 xx    STA @zptemp
EA  ... NOP      &times; 32</pre>||Requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>04 04   NOP $04
08      PHP
EA  ... NOP      &times; 32</pre>||Requires support for unofficial opcodes
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
30 FC    BMI *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|35 bytes
|-
|-
|<pre>08      PHP
|<pre>4C xx xx JMP *+3
48      PHA
EA  ... NOP      &times; 32</pre>||Not relocatable code
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 69 cycles ===
=== 68 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A9      LDA #41
EA      NOP
30 FC    BMI *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0A    LDX #10 ;hides 'ASL A'
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers A, X, Z&N, and C
|-
|<pre>A9      LDA #42
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
|<pre>EA       NOP
A2 0D    LDX #13
A2 0D    LDX #13
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 0D    LDY #13
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>38      SEC
08      PHP
A9 0D   LDA #13
28      PLP
E9 01    SBC #1
18      CLC
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>08      PHP
A2 0D   LDX #13
A2 0C   LDX #12
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 88   LDX #136 ;hides 'DEY'
A0 0C   LDY #12
CA       DEX
88       DEY
30 FC   BMI *-2
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #35
A9      LDA #34
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #35
A9      LDA #34
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>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>EA      NOP
48      PHA
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"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>00 00   BRK 0
|<pre>E6 xx   INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
A0 88    LDY #136 ;hides 'DEY'
28      PLP
30 FD   BMI *-1
10 FB   BPL *-3
28       PLP</pre>||Clobbers Y; requires dummy interrupt handler; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9      LDA #27
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
04 04    NOP $04
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|<pre>EA      NOP
68  ... PLA      &times; 2
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</pre>||Clobbers A, S, Z&N, and C
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|10 bytes
 
 
=== 70 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #43
|<pre>EA  ... NOP      &times; 3
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>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</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
!colspan="2"|17 bytes
|-
|<pre>68  ... PLA      &times; 17</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|20 bytes
|-
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
68      PLA      \ &times; 8
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|23 bytes
|-
|<pre>EA      NOP
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|34 bytes
|-
|<pre>EA  ... NOP      &times; 34</pre>||No requirements
|-
|}
 
 
=== 69 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
EA      NOP
30 FC    BMI *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0A    LDX #10 ;hides 'ASL A'
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers A, X, Z&N, and C
|-
|<pre>A9      LDA #42
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>68       PLA
|<pre>48       PHA
A0 0D    LDY #13
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 0D    LDX #13
A2 0D    LDX #13
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A0 0D    LDY #13
08      PHP
88       DEY
28      PLP
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
18       CLC
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A6 A6    LDX $A6
A2 0D    LDX #13
A2 0D    LDX #13
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>08      PHP
A2 88    LDX #136 ;hides 'DEY'
CA      DEX
30 FC    BMI *-2
28      PLP</pre>||Clobbers X, and Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #36
A9      LDA #35
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #36
A9      LDA #35
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
!colspan="2"|8 bytes
68      PLA
|-
|<pre>F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
85 xx    STA @zptemp
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|-
!colspan="2"|8 bytes
|<pre>00 00   BRK 0
|-
|<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
08      PHP
08      PHP
A0 0C   LDY #12
A0 88   LDY #136 ;hides 'DEY'
88      DEY
30 FD   BMI *-1
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
68       PLA
A2 0C    LDX #12
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
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</pre>||Clobbers A, S, Z&N, and C; and requires @zptemp
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
68      PLA
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</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 2A   LDA #$2A ;hides 'ROL A'
04 04   NOP $04
36 36   ROL $36,X
D0 FB   BNE *-3
76 36    ROR $36,X
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
!colspan="2"|18 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
00 00    BRK 0
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
68  ... PLA      &times; 15</pre>||Clobbers A, S, and Z&N
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
!colspan="2"|20 bytes
|-
|-
!colspan="2"|9 bytes
|<pre>EA      NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 14
10 EE    BPL *-16</pre>||Clobbers A, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|24 bytes
38      SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 C5    CMP $C5
A9 0A   LDA #$0A ;hides 'ASL A'
36 36   ROL $36,X
4C xx xx JMP *+3
76 36   ROR $36,X
D0 FA   BNE *-4
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
|-
|-
|<pre>08      PHP
|<pre>24 24   BIT $24
38      SEC
36 36   ROL $36,X
A9 0C   LDA #12
76 36   ROR $36,X
E9 01   SBC #1
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>E6 xx    INC @zptemp
48      PHA
26 26    ROL $26
A9      LDA #29
66 26    ROR $26
20 xx xx JSR delay_a_25_clocks
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>EA       NOP
48      PHA
FE 00 03 INC $0300,X
A9 0A   LDA #$0A ;hides 'ASL A'
36 36   ROL $36,X \ &times; 5
08      PHP
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
28      PLP
10 FB   BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
E6 xx    INC @zptemp
FE 00 05 INC $0500,X
48      PHA
36 36   ROL $36,X \ &times; 5
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
0A      ASL A ;first loop only
30 FC   BMI *-2
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
FE 00 06 INC $0600,X
A9 2A    LDA #$2A ;hides 'ROL A'
36 36   ROL $36,X \ &times; 5
20 xx xx JSR @rts14
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
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
00 00... BRK 0    &times; 2
10 F8   BPL *-6
68      PLA</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
FE 00 07 INC $0700,X
08      PHP
36 36   ROL $36,X \ &times; 5
48      PHA
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
30 FC   BMI *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>04 04    NOP $04
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
!colspan="2"|25 bytes
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>4C xx xx JMP *+3
 
36 36    ROL $36,X
 
76 36    ROR $36,X
=== 71 cycles ===
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A2 0E    LDX #14
!colspan="2"|26 bytes
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0E   LDY #14
|<pre>36 36   ROL $36,X \ &times; 2
88      DEY
76 36    ROR $36,X /
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|35 bytes
|-
|<pre>18  ... CLC      &times; 33
90 00   BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 33
50 00    BVC *+2</pre>||Clobbers V
|-
|<pre>85 xx    STA @zptemp
EA  ... NOP      &times; 33</pre>||Requires @zptemp
|-
|<pre>04 04    NOP $04
EA  ... NOP      &times; 33</pre>||Requires support for unofficial opcodes
|-
!colspan="2"|36 bytes
|-
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 33</pre>||Not relocatable code
|-
|}
 
 
=== 70 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #44
|<pre>A9      LDA #43
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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 0A   LDA #$0A ;hides 'ASL A'
|<pre>68      PLA
EA       NOP
A2 0D   LDX #13
18       CLC
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68       PLA
A0 0D    LDY #13
88       DEY
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 0D    LDX #13
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 0D    LDY #13
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #37
A9      LDA #36
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #37
A9      LDA #36
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
68      PLA
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"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08       PHP
|<pre>EA      NOP
A0 09   LDY #9
38       SEC
EA      NOP
A9 0D   LDA #13
88      DEY
E9 01    SBC #1
D0 FA   BNE *-4
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A2 09   LDX #9
08      PHP
EA      NOP
A2 0C   LDX #12
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>EA      NOP
08      PHP
A0 0C    LDY #12
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 0A   LDA #$0A ;hides 'ASL A'
2A      ROL A ;first loop only
85 xx    STA @zptemp
EA  ... NOP      &times; 2
D0 FB   BNE *-3
B0 FA   BCS *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>68       PLA
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
48      PHA
2A      ROL A ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
85 xx    STA @zptemp
B0 FA   BCS *-4
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #30
85 xx   STA @zptemp
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>20 xx xx JSR @rts15
|-
|<pre>08      PHP
48      PHA
18      CLC
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</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 72 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #45
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
|<pre>48      PHA
A0 88   LDY #136 ;hides 'DEY'
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
04 04    NOP $04
30 FC   BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>68      PLA
A2 0A    LDX #10 ;hides 'ASL A'
48      PHA
CA      DEX
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FC   BNE *-2</pre>||Clobbers A, X, S, Z&N, and C; and writes in stack
04 04    NOP $04
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>A4 A4   LDY $A4
|<pre>EA      NOP
A0 88   LDY #136 ;hides 'DEY'
00 00   BRK 0
EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
30 FC    BMI *-2</pre>||Clobbers Y, and Z&N
18       CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A6 A6    LDX $A6
!colspan="2"|9 bytes
A2 0A    LDX #10 ;hides 'ASL A'
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers A, X, Z&N, and C
|-
|-
|<pre>A2 0D   LDX #13
|<pre>48      PHA
CA      DEX
38      SEC
A9 0C   LDA #12
E9 01    SBC #1
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #38
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
4C xx xx JMP *+3
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9       LDA #38
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 0C    LDA #12
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
E9 01    SBC #1
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>68      PLA
48      PHA
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>48   ... PHA     &times; 2
|<pre>08      PHP
A2 0D    LDX #13
48       PHA
CA       DEX
A9      LDA #29
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; 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
|-
|-
!colspan="2"|8 bytes
|<pre>68      PLA
48      PHA
68  ... PLA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|10 bytes
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>00 00    BRK 0
|<pre>EA  ... NOP      &times; 2
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</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
10 FB    BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>A5 A5    LDA $A5
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|11 bytes
|-
|<pre>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</pre>||Requires @zptemp; and writes in stack
|-
|<pre>08      PHP
48      PHA
48      PHA
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
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
|<pre>48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
00 00... BRK 0    &times; 2
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
48      PHA
08      PHP
08      PHP
A2 88   LDX #136 ;hides 'DEY'
48      PHA
CA       DEX
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
30 FC    BMI *-2
28      PLP</pre>||Clobbers X, Y, and S; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>98       TYA
|<pre>08       PHP
48      PHA
48      PHA
A0 0C   LDY #12
18      CLC
88       DEY
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB   BNE *-3
EA  ... NOP      &times; 2
18       CLC
10 FA   BPL *-4
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
28       PLP</pre>||Writes in stack
|-
!colspan="2"|18 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A0 08   LDY #8
68  ... PLA      &times; 17</pre>||Clobbers A, S, and Z&N
C5 C5    CMP $C5
|-
!colspan="2"|20 bytes
|-
|<pre>68      PLA      \ &times; 10
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|24 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|35 bytes
|-
|<pre>EA  ... NOP      &times; 35</pre>||No requirements
|-
|}
 
 
=== 71 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 0E    LDX #14
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>A0 0E   LDY #14
88      DEY
88      DEY
D0 F9   BNE *-5
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>A9      LDA #44
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>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #37
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 #37
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
|<pre>08      PHP
A2 08   LDX #8
A2 09   LDX #9
C5 C5    CMP $C5
EA      NOP
CA      DEX
CA      DEX
D0 F9   BNE *-5
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 09    LDY #9
EA      NOP
88      DEY
D0 FC    BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18      CLC
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 0A   LDA #$0A ;hides 'ASL A'
2A      ROL A ;first loop only
85 xx    STA @zptemp
EA  ... NOP      &times; 2
D0 FB   BNE *-3
B0 FA   BCS *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
18      CLC
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 0A   LDA #$0A ;hides 'ASL A'
2A      ROL A ;first loop only
85 xx    STA @zptemp
EA  ... NOP      &times; 2
D0 FB   BNE *-3
B0 FA   BCS *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #31
A9      LDA #30
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
!colspan="2"|10 bytes
|-
|<pre>08      PHP
48      PHA
18      CLC
18      CLC
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
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA
28      PLP</pre>||Writes in stack
|-
!colspan="2"|18 bytes
|-
|<pre>68      PLA
48      PHA
68  ... PLA      &times; 16</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|21 bytes
|-
|-
|<pre>08      PHP
|<pre>36 36    ROL $36,X
18      CLC
76 36    ROR $36,X
A9 0A   LDA #$0A ;hides 'ASL A'
A9 09   LDA #$09 ;hides 'ORA #$EA'
04 04    NOP $04
EA      NOP ;first loop only
D0 FB   BNE *-3
EA  ... NOP     &times; 12
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
10 F0   BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|24 bytes
|-
|-
|<pre>EA      NOP
|<pre>E6 xx   INC @zptemp
48      PHA
36 36   ROL $36,X
38      SEC
76 36   ROR $36,X
A9 0C   LDA #12
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
E9 01   SBC #1
D0 F9   BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|25 bytes
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
C5 C5   CMP $C5
38      SEC
36 36   ROL $36,X
A9 0C   LDA #12
76 36   ROR $36,X
E9 01   SBC #1
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9 2A   LDA #$2A ;hides 'ROL A'
24 24   BIT $24
20 xx xx JSR @rts15
36 36    ROL $36,X
18      CLC
76 36   ROR $36,X
10 F9   BPL *-5
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 02 INC $0200,X
48      PHA
26 26    ROL $26
38      SEC
66 26   ROR $26
A9 EB   LDA #$EB ;hides 'SBC #$1A'
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
1A      NOP ;first loop only
B0 FC    BCS *-2
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>00 00... BRK 0    &times; 2
|<pre>FE 00 03 INC $0300,X
48      PHA
26 26    ROL $26
A9 0A    LDA #$0A ;hides 'ASL A'
66 26    ROR $26
D0 FD    BNE *-1
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>FE 00 04 INC $0400,X
08      PHP
26 26   ROL $26
48      PHA
66 26   ROR $26
A9 0A   LDA #$0A ;hides 'ASL A'
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
18      CLC
D0 FC   BNE *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>08       PHP
|<pre>FE 00 06 INC $0600,X
28       PLP
26 26    ROL $26
08      PHP
66 26    ROR $26
48       PHA
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|-
0A      ASL A ;first loop only
|<pre>FE 00 07 INC $0700,X
30 FC   BMI *-2
26 26    ROL $26
68      PLA
66 26    ROR $26
28      PLP</pre>||Writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>EA       NOP
04 04    NOP $04
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|26 bytes
|-
|<pre>EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|27 bytes
|-
|<pre>EA       NOP
36 36   ROL $36,X \ &times; 2
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|36 bytes
|-
|<pre>18  ... CLC      &times; 34
90 00   BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 34
50 00    BVC *+2</pre>||Clobbers V
|-
|<pre>85 xx    STA @zptemp
EA  ... NOP      &times; 34</pre>||Requires @zptemp
|-
|<pre>04 04    NOP $04
EA  ... NOP      &times; 34</pre>||Requires support for unofficial opcodes
|-
!colspan="2"|37 bytes
|-
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 34</pre>||Not relocatable code
|-
|-
|}
|}




=== 73 cycles ===
=== 72 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #46
|<pre>A9      LDA #45
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>EA      NOP
|<pre>48      PHA
A2 0E   LDX #14
A0 88    LDY #136 ;hides 'DEY'
EA      NOP
30 FC    BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 0A   LDX #10 ;hides 'ASL A'
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FC    BNE *-2</pre>||Clobbers A, X, S, Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>18      CLC
|<pre>A4 A4    LDY $A4
A9 0A   LDA #$0A ;hides 'ASL A'
A0 88   LDY #136 ;hides 'DEY'
EA      NOP
EA      NOP
18      CLC
30 FC   BMI *-2</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>18      CLC
|<pre>A6 A6    LDX $A6
A9 0A    LDA #$0A ;hides 'ASL A'
A2 0A    LDX #10 ;hides 'ASL A'
08      PHP
CA       DEX
28       PLP
D0 FC   BNE *-2</pre>||Clobbers A, X, Z&N, and C
90 FB   BCC *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A2 0D    LDX #13
A0 0D    LDY #13
CA      DEX
88      DEY
D0 FD   BNE *-1
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
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
|<pre>48      PHA
A9      LDA #39
A9      LDA #38
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #39
A9      LDA #38
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      &times; 2
A2 0D    LDX #13
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
A9      LDA #32
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A2 0D    LDX #13
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
08      PHP
D0 FB    BNE *-3
28      PLP
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; 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
|<pre>68       PLA
08       PHP
38       SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 0D   LDA #13
85 xx   STA @zptemp
E9 01   SBC #1
D0 FB    BNE *-3
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
28      PLP</pre>||Clobbers A, and S; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
48      PHA
D0 FB   BNE *-3
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
A2 88   LDX #136 ;hides 'DEY'
04 04    NOP $04
CA      DEX
D0 FB   BNE *-3
30 FC   BMI *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers X, Y, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
!colspan="2"|10 bytes
|<pre>EA  ... NOP      &times; 2
38      SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08       PHP
|<pre>98       TYA
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A0 0C   LDY #12
08       PHP
88       DEY
28      PLP
D0 FD   BNE *-1
10 FB   BPL *-3
68      PLA
68      PLA
28       PLP</pre>||Writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|}
|<pre>08      PHP
 
A2 08    LDX #8
 
C5 C5    CMP $C5
=== 74 cycles ===
CA      DEX
{| class="wikitable testtable"
D0 FB    BNE *-3
!colspan="2"|5 bytes
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9       LDA #47
|<pre>08       PHP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A0 08   LDY #8
|-
C5 C5   CMP $C5
!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
A0 0E    LDY #14
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|7 bytes
|-
|<pre>A6 A6    LDX $A6
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #40
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 #40
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
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
85 xx    STA @zptemp
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>EA      NOP
|-
68      PLA
|<pre>A5 A5    LDA $A5
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
85 xx    STA @zptemp
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
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
24 24    BIT $24
28      PLP
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
BA       TSX
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
85 xx   STA @zptemp
D0 FC   BNE *-2
9A      TXS
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>08      PHP
A2 0C    LDX #12
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #33
A9      LDA #31
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
Line 9,003: Line 10,554:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
18       CLC
A2 09   LDX #9
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
04 04    NOP $04
CA      DEX
D0 FB   BNE *-3
D0 FA   BNE *-4
68       PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
08      PHP
68      PLA
A0 09    LDY #9
48       PHA
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>68      PLA
08       PHP
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</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
28      PLP</pre>||Clobbers A, S, and Z&N; requires @zptemp; and writes in stack
|-
|-
|<pre>68       PLA
|<pre>08       PHP
08       PHP
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, S, and Z&N; 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"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
4C xx xx JMP *+3
90 FA    BCC *-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; writes in stack; and not relocatable code
|-
|<pre>08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
90 FA    BCC *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 08   LDX #8
38      SEC
C5 C5   CMP $C5
A9 0C   LDA #12
CA      DEX
E9 01   SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
A0 08    LDY #8
C5 C5    CMP $C5
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3
68      PLA
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>08      PHP
E6 xx    INC @zptemp
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
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>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
18      CLC
18      CLC
D0 FC   BNE *-2
10 F9   BPL *-5
68      PLA
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
Line 9,095: Line 10,622:
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
|<pre>00 00... BRK 0    &times; 2
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
08      PHP
48      PHA
48      PHA
Line 9,104: Line 10,636:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
68      PLA
48      PHA
68  ... PLA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
Line 9,117: Line 10,656:
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>A5 A5    LDA $A5
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
36 36    ROL $36,X
76 36    ROR $36,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|18 bytes
|-
|<pre>68  ... PLA      &times; 18</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|21 bytes
|-
|<pre>EA      NOP
68      PLA      \ &times; 10
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|24 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|36 bytes
|-
|<pre>EA  ... NOP      &times; 36</pre>||No requirements
|-
|-
|}
|}




=== 75 cycles ===
=== 73 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #48
|<pre>A9      LDA #46
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>68       PLA
|<pre>EA       NOP
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 0E    LDX #14
A2 0E    LDX #14
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA       NOP
|-
|<pre>EA   ... NOP     &times; 2
A0 0E    LDY #14
A0 0E    LDY #14
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>38      SEC
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>48      PHA
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
|-
|<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
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 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>68      PLA
!colspan="2"|7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|8 bytes
|<pre>18      CLC
|-
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 9,182: Line 10,718:
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08      PHP
A2 0D    LDX #13
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 0D    LDY #13
A0 0D    LDY #13
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38       SEC
A9       LDA #39
A9 0D    LDA #13
20 xx xx JSR delay_a_25_clocks
E9 01    SBC #1
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38       SEC
A9       LDA #39
A9 0D    LDA #13
20 xx xx JSR delay_a_25_clocks
E9 01    SBC #1
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
D0 F9    BNE *-5
|-
28      PLP</pre>||Clobbers A; and writes in stack
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #34
A9      LDA #32
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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>00 00    BRK 0
|<pre>48   ... PHA     &times; 2
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
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>48      PHA
|-
08      PHP
|<pre>E6 xx    INC @zptemp
48      PHA
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, and S; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48  ... PHA      &times; 2
48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
04 04    NOP $04
Line 9,242: Line 10,768:
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
|-
|-
!colspan="2"|11 bytes
|<pre>48      PHA
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 9,254: Line 10,786:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|19 bytes
 
 
=== 76 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A2 0F    LDX #15
|<pre>EA      NOP
CA       DEX
68      PLA
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
48       PHA
68  ... PLA      &times; 16</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>A0 0F    LDY #15
!colspan="2"|21 bytes
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9       LDA #49
|<pre>68      PLA      \ &times; 2
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
!colspan="2"|25 bytes
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
|<pre>EA      NOP
E6 xx    INC @zptemp
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>FE 00 02 INC $0200,X
A0 88   LDY #136 ;hides 'DEY'
36 36   ROL $36,X
EA      NOP
76 36   ROR $36,X
30 FC   BMI *-2
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 03 INC $0300,X
A2 0A   LDX #10 ;hides 'ASL A'
36 36   ROL $36,X
CA      DEX
76 36    ROR $36,X
D0 FC   BNE *-2
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36   ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 06 INC $0600,X
A9      LDA #42
36 36    ROL $36,X
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 07 INC $0700,X
A9      LDA #42
36 36    ROL $36,X
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>00 00    BRK 0
!colspan="2"|26 bytes
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"|8 bytes
|<pre>C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>E6 xx   INC @zptemp
|<pre>24 24   BIT $24
A9 0A   LDA #$0A ;hides 'ASL A'
26 26   ROL $26
EA      NOP
66 26    ROR $26
18      CLC
36 36    ROL $36,X \ &times; 5
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
38      SEC
26 26    ROL $26
A9 69   LDA #$69 ;hides 'ADC #$5A'
66 26   ROR $26
5A      NOP ;first loop only
36 36    ROL $36,X \ &times; 5
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>00 00    BRK 0
!colspan="2"|27 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
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
|-
|-
|<pre>EA      NOP
|<pre>4C xx xx JMP *+3
48      PHA
26 26    ROL $26
A9 0A   LDA #$0A ;hides 'ASL A'
66 26    ROR $26
EA      NOP
36 36   ROL $36,X \ &times; 5
18      CLC
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|28 bytes
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
|<pre>EA  ... NOP      &times; 2
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|37 bytes
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>18   ... CLC     &times; 35
A9 0A    LDA #$0A ;hides 'ASL A'
90 00   BCC *+2</pre>||Clobbers C
08      PHP
28      PLP
18       CLC
10 FA   BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>B8  ... CLV      &times; 35
A6 A6   LDX $A6
50 00   BVC *+2</pre>||Clobbers V
A2 0D    LDX #13
|-
CA      DEX
|<pre>85 xx   STA @zptemp
D0 FB   BNE *-3
EA  ... NOP      &times; 35</pre>||Requires @zptemp
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>04 04    NOP $04
48      PHA
EA  ... NOP      &times; 35</pre>||Requires support for unofficial opcodes
A9      LDA #35
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"|38 bytes
|-
|-
|<pre>08      PHP
|<pre>4C xx xx JMP *+3
28      PLP
EA  ... NOP      &times; 35</pre>||Not relocatable code
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 77 cycles ===
=== 74 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #50
|<pre>A9      LDA #47
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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"|6 bytes
|-
|-
|<pre>A2 0E    LDX #14
|<pre>48      PHA
A2 0E    LDX #14
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #43
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 #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
A0 0E    LDY #14
A0 0E    LDY #14
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|7 bytes
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>A6 A6   LDX $A6
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A2 0E    LDX #14
A2 0E    LDX #14
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>A4 A4    LDY $A4
A0 0E    LDY #14
A0 0E    LDY #14
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9       LDA #40
20 xx xx JSR @rts14
20 xx xx JSR delay_a_25_clocks
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08       PHP
38       SEC
A9       LDA #40
A9 69    LDA #$69 ;hides 'ADC #$5A'
20 xx xx JSR delay_a_25_clocks
5A       NOP ;first loop only
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 9,454: Line 10,944:
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
|-
|-
!colspan="2"|9 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>8C       TXA
|<pre>A5 A5    LDA $A5
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A2 0D   LDX #13
EA      NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
BA       TSX
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
D0 FC    BNE *-2
9A      TXS
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>08      PHP
A2 0C   LDX #12
CA      DEX
CA      DEX
D0 FB    BNE *-3
D0 FD    BNE *-1
68      PLA
F6 xx    INC @zptemp,X
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
F6 F6    INC $F6,X
90 FB    BCC *-3
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
08      PHP
18      CLC
A2 0D   LDX #13
A9 0A   LDA #$0A ;hides 'ASL A'
CA      DEX
F6 F6    INC $F6,X
D0 FB    BNE *-3
90 FB    BCC *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
08      PHP
A0 06   LDY #6
A0 0D   LDY #13
F6 F6    INC $F6,X
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #36
A9      LDA #33
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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>48      PHA
08      PHP
A2 09    LDX #9
EA      NOP
CA      DEX
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48      PHA
48      PHA
08       PHP
38       SEC
A0 09   LDY #9
A9 0D   LDA #13
EA      NOP
E9 01    SBC #1
88      DEY
D0 F9   BNE *-5
D0 FC   BNE *-2
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>68       PLA
08      PHP
08      PHP
38      SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
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
28      PLP</pre>||Clobbers A, S, and Z&N; requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>68      PLA
48      PHA
08      PHP
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>08      PHP
48      PHA
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
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA       NOP
!colspan="2"|10 bytes
00 00    BRK 0
|-
48       PHA
|<pre>48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
EA  ... NOP      &times; 3
D0 FC   BNE *-2
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; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48       PHA
18       CLC
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 0C   LDA #12
EA  ... NOP      &times; 3
E9 01    SBC #1
90 FA   BCC *-4
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>EA       NOP
 
08      PHP
 
A2 08   LDX #8
=== 78 cycles ===
C5 C5    CMP $C5
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9       LDA #51
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 0B   LDX #11
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A0 0B    LDY #11
|<pre>EA      NOP
EA      NOP
08      PHP
88      DEY
A0 08   LDY #8
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
C5 C5   CMP $C5
|-
|<pre>18      CLC
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
|-
|<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
A0 0E    LDY #14
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|11 bytes
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #44
98       TYA
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
A0 0B    LDY #11
88      DEY
D0 FD    BNE *-1
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #44
E6 xx   INC @zptemp
20 xx xx JSR delay_a_25_clocks
48      PHA
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
D0 FB   BNE *-3
D0 FC   BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA
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 FC    BCS *-2
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
48      PHA
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
28      PLP
08      PHP
48      PHA
48      PHA
A9       LDA #37
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR delay_a_25_clocks
0A      ASL A ;first loop only
30 FC    BMI *-2
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|19 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 18</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|21 bytes
|-
|-
|<pre>08       PHP
|<pre>68       PLA
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 09   LDA #$09 ;hides 'ORA #$EA'
2A       ROL A ;first loop only
EA       NOP ;first loop only
EA  ... NOP      &times; 2
EA  ... NOP      &times; 14
B0 FA   BCS *-4
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
68       PLA
|-
28      PLP</pre>||Writes in stack
!colspan="2"|25 bytes
|-
|<pre>EA       NOP
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|37 bytes
|-
|<pre>EA  ... NOP      &times; 37</pre>||No requirements
|-
|-
|}
|}




=== 79 cycles ===
=== 75 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #52
|<pre>A9      LDA #48
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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'
48      PHA
30 FC    BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 88   LDY #136 ;hides 'DEY'
|<pre>68      PLA
C5 C5    CMP $C5
A2 0E   LDX #14
30 FB   BMI *-3</pre>||Clobbers Y, Z&N, and C
CA      DEX
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 88   LDY #136 ;hides 'DEY'
|<pre>68      PLA
24 24   BIT $24
A0 0E   LDY #14
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and V
88      DEY
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
!colspan="2"|7 bytes
A5 A5    LDA $A5
30 FB    BMI *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>EA  ... NOP      &times; 2
A6 A6   LDX $A6
A2 0E   LDX #14
30 FB   BMI *-3</pre>||Clobbers X, Y, and Z&N
CA      DEX
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>EA  ... NOP     &times; 2
85 xx    STA @zptemp
A0 0E   LDY #14
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|<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
|-
|<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>48      PHA
A2 0F    LDX #15
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
50 00    BVC *+2
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>A6 A6    LDX $A6
A2 0F    LDX #15
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 0F   LDY #15
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #45
A9      LDA #41
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #45
A9      LDA #41
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>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
04 04    NOP $04
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA  ... NOP      &times; 2
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</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
08      PHP
08      PHP
A0 88   LDY #136 ;hides 'DEY'
A2 0D   LDX #13
EA       NOP
CA       DEX
30 FC   BMI *-2
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
08      PHP
08      PHP
A2 0A   LDX #10 ;hides 'ASL A'
A0 0D   LDY #13
CA       DEX
88       DEY
D0 FC   BNE *-2
D0 FD   BNE *-1
28      PLP</pre>||Clobbers A, X, and S; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A4 A4   LDY $A4
38      SEC
A0 88   LDY #136 ;hides 'DEY'
A9 0D   LDA #13
EA      NOP
E9 01   SBC #1
30 FC   BMI *-2
D0 FB   BNE *-3
28       PLP</pre>||Clobbers Y; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 A6    LDX $A6
38       SEC
A2 0A    LDX #10 ;hides 'ASL A'
A9 0D    LDA #13
CA       DEX
E9 01    SBC #1
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>08      PHP
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #38
A9      LDA #34
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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     &times; 2
|<pre>00 00    BRK 0
08      PHP
48       PHA
A2 0D   LDX #13
A9 0A   LDA #$0A ;hides 'ASL A'
CA       DEX
18       CLC
D0 FB   BNE *-3
D0 FC   BNE *-2
28       PLP</pre>||Clobbers X, and S; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>E6 xx    INC @zptemp
8C      TXA
48      PHA
48      PHA
A2 0D   LDX #13
A9 0A   LDA #$0A ;hides 'ASL A'
CA      DEX
85 xx    STA @zptemp
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP     &times; 3
|<pre>EA       NOP
08      PHP
48   ... PHA     &times; 2
A2 0D   LDX #13
A9 0A   LDA #$0A ;hides 'ASL A'
CA      DEX
04 04    NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers X; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>00 00    BRK 0
|<pre>08      PHP
48      PHA
48      PHA
18      CLC
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
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|<pre>00 00    BRK 0
!colspan="2"|19 bytes
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48  ... PHA     &times; 2
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
08      PHP
68   ... PLA     &times; 17</pre>||Clobbers A, S, and Z&N
28      PLP
18      CLC
10 FA    BPL *-4
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|22 bytes
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
10 FA    BPL *-4
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
68      PLA      \ &times; 9
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|26 bytes
98      TYA
48      PHA
A0 0C    LDY #12
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>C5 C5    CMP $C5
08      PHP
36 36    ROL $36,X \ &times; 6
38      SEC
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
A9 0D   LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>24 24    BIT $24
48      PHA
36 36   ROL $36,X \ &times; 6
18      CLC
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
A9 0A   LDA #$0A ;hides 'ASL A'
85 xx   STA @zptemp
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>E6 xx    INC @zptemp
48      PHA
26 26    ROL $26
18      CLC
66 26    ROR $26
A9 0A   LDA #$0A ;hides 'ASL A'
36 36   ROL $36,X \ &times; 5
04 04   NOP $04
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
FE 00 03 INC $0300,X
48      PHA
36 36   ROL $36,X
38      SEC
76 36   ROR $36,X
A9 0C   LDA #12
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
E9 01   SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>EA      NOP
 
FE 00 04 INC $0400,X
 
36 36    ROL $36,X
=== 80 cycles ===
76 36    ROR $36,X
{| class="wikitable testtable"
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #53
|<pre>EA       NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
!colspan="2"|6 bytes
|<pre>EA      NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>A2 88    LDX #136 ;hides 'DEY'
|<pre>EA      NOP
EA      NOP
FE 00 07 INC $0700,X
CA      DEX
36 36    ROL $36,X
30 FB   BMI *-3</pre>||Clobbers X, Y, and Z&N
76 36   ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>68      PLA
|<pre>04 04    NOP $04
A9 E9   LDA #$E9 ;hides 'SBC #$08'
36 36   ROL $36,X \ &times; 6
08      PHP ;first loop only
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>68      PLA
!colspan="2"|27 bytes
A0 0F    LDY #15
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>4C xx xx JMP *+3
A2 0F   LDX #15
36 36   ROL $36,X \ &times; 6
CA      DEX
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|29 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
A0 0F   LDY #15
36 36    ROL $36,X \ &times; 2
88      DEY
76 36   ROR $36,X /
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|38 bytes
|-
|<pre>18  ... CLC      &times; 36
90 00   BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 36
50 00    BVC *+2</pre>||Clobbers V
|-
|<pre>85 xx    STA @zptemp
EA  ... NOP      &times; 36</pre>||Requires @zptemp
|-
|<pre>04 04    NOP $04
EA  ... NOP      &times; 36</pre>||Requires support for unofficial opcodes
|-
!colspan="2"|39 bytes
|-
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 36</pre>||Not relocatable code
|-
|}
 
 
=== 76 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A2 0F    LDX #15
A2 0F    LDX #15
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>A0 0F    LDY #15
A9       LDA #46
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FD    BNE *-1</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
|<pre>A9      LDA #49
A9      LDA #46
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires 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
|-
|-
|<pre>38      SEC
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$08'
A9 EB   LDA #$EB ;hides 'SBC #$1A'
08       PHP ;first loop only
1A       NOP ;first loop only
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
EA      NOP
B0 FB   BCS *-3</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>38       SEC
|<pre>08       PHP
A9 0B   LDA #11
A0 88   LDY #136 ;hides 'DEY'
EA      NOP
EA      NOP
E9 01   SBC #1
30 FC   BMI *-2
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A0 0E    LDY #14
88      DEY
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
|<pre>08      PHP
08      PHP
A2 0A   LDX #10 ;hides 'ASL A'
A2 0E   LDX #14
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38       SEC
A9       LDA #42
A9 69    LDA #$69 ;hides 'ADC #$5A'
20 xx xx JSR delay_a_25_clocks
5A      NOP ;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
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38       SEC
A9       LDA #42
A9 69    LDA #$69 ;hides 'ADC #$5A'
20 xx xx JSR delay_a_25_clocks
5A      NOP ;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>68      PLA
|<pre>00 00    BRK 0
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; 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"|9 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>E6 xx    INC @zptemp
18      CLC
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</pre>||Clobbers A, Z&N, and C; and requires @zptemp
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>04 04    NOP $04
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
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
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
18       CLC
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</pre>||Clobbers A, S, Z&N, and C; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48      PHA
48      PHA
08       PHP
A9       LDA #39
A2 0D    LDX #13
20 xx xx JSR delay_a_25_clocks
CA      DEX
68      PLA
D0 FD    BNE *-1
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
48       PHA
28       PLP
18      CLC
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
EA      NOP
D0 FB    BNE *-3
18      CLC
68      PLA
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
28      PLP</pre>||Clobbers S; requires @zptemp; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
18      CLC
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 0D    LDX #13
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #35
04 04    NOP $04
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,039: Line 11,504:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
18       CLC
28      PLP
D0 FC   BNE *-2
10 FB   BPL *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|19 bytes
 
 
=== 81 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A2 10    LDX #16
|<pre>68  ... PLA      &times; 19</pre>||Clobbers A, S, and Z&N
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 10    LDY #16
!colspan="2"|22 bytes
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9       LDA #54
|<pre>EA      NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68      PLA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 14
10 EE    BPL *-16</pre>||Clobbers A, and Z&N
|-
!colspan="2"|26 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|38 bytes
|-
|<pre>EA  ... NOP      &times; 38</pre>||No requirements
|-
|-
!colspan="2"|6 bytes
|}
 
 
=== 77 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9       LDA #50
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA
30 FB    BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 69   LDA #$69 ;hides 'ADC #$18'
|<pre>A2 0E   LDX #14
18       CLC ;first loop only
CA       DEX
E6 xx    INC @zptemp
D0 FD    BNE *-1
90 FA   BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>F6 F6    INC $F6,X
A0 0E    LDY #14
88      DEY
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #47
A9      LDA #43
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #47
A9      LDA #43
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>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|<pre>A2 0A   LDX #10 ;hides 'ASL A'
0A       ASL A ;first loop only
CA       DEX
04 04   NOP $04
D0 FC   BNE *-2
30 FA   BMI *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
03 xx   SLO (@ptrtemp,X)</pre>||Clobbers A, X, Z&N, and C; and requires @ptrtemp, and support for unofficial opcodes
|-
|-
|<pre>18      CLC
|<pre>A0 0A    LDY #10 ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
88       DEY
48      PHA
D0 FC   BNE *-2
18       CLC
13 xx    SLO (@ptrtemp),Y</pre>||Clobbers A, Y, Z&N, and C; and requires @ptrtemp, and support for unofficial opcodes
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>48  ... PHA      &times; 2
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
50 00    BVC *+2
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<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
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
A2 0E    LDX #14
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers X, S, and Z&N; 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
A0 0E    LDY #14
A0 0E    LDY #14
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>EA      NOP
68      PLA
A2 0E    LDX #14
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>18      CLC
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
68       PLA
EA      NOP
08      PHP
28      PLP
18      CLC
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>08       PHP
A4 A4    LDY $A4
A0 0E    LDY #14
A0 0E    LDY #14
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
28       PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>68      PLA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 3
A6 A6    LDX $A6
A2 0E    LDX #14
A2 0E    LDX #14
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 3
48      PHA
A0 0E    LDY #14
A9      LDA #40
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
68       PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>F6 F6    INC $F6,X
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</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
68       PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
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 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
08       PHP
68       PLA
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</pre>||Clobbers A, S, Z&N, and C
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>EA  ... NOP      &times; 3
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</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>98       TYA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
24 24    BIT $24
28      PLP
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
48      PHA
18      CLC
A0 0D   LDY #13
A9 0A   LDA #$0A ;hides 'ASL A'
88      DEY
EA  ... NOP      &times; 3
D0 FD   BNE *-1
90 FA   BCC *-4
68      PLA
68      PLA
28       PLP</pre>||Writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|}
|<pre>EA  ... NOP      &times; 2
 
08       PHP
 
A2 0D   LDX #13
=== 82 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #55
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
A0 88    LDY #136 ;hides 'DEY'
48       PHA
30 FC    BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A2 09   LDX #9
68      PLA
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1
|-
28      PLP</pre>||Clobbers X; and writes in stack
!colspan="2"|7 bytes
|-
|<pre>A2 09    LDX #9
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|<pre>A0 09    LDY #9
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #48
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 #48
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 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
|-
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 FB    BCS *-3</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 0E    LDX #14
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
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 0E   LDY #14
A0 0D   LDY #13
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #41
A9      LDA #36
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
48      PHA
48      PHA
38      SEC
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$5A'
A9 0D   LDA #13
5A      NOP ;first loop only
E9 01    SBC #1
D0 FC   BNE *-2
D0 FB   BNE *-3
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; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
38      SEC
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$5A'
A9 0D   LDA #13
5A      NOP ;first loop only
E9 01    SBC #1
D0 FC   BNE *-2
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>20 xx xx JSR @rts15
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>EA       NOP
08       PHP
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
D0 FB   BNE *-3
D0 FC   BNE *-2
28       PLP</pre>||Clobbers A; and writes in stack
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 10,347: Line 11,732:
48      PHA
48      PHA
38      SEC
38      SEC
A9 0D   LDA #13
A9 0C   LDA #12
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|20 bytes
 
|-
 
|<pre>EA      NOP
=== 83 cycles ===
68      PLA
{| class="wikitable testtable"
48      PHA
!colspan="2"|5 bytes
68  ... PLA      &times; 17</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|22 bytes
|-
|<pre>68      PLA      \ &times; 11
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
|<pre>A9      LDA #56
!colspan="2"|26 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>E6 xx    INC @zptemp
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>18      CLC
!colspan="2"|27 bytes
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 10   LDX #16
C5 C5   CMP $C5
CA      DEX
36 36    ROL $36,X \ &times; 6
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 10   LDY #16
24 24   BIT $24
88      DEY
36 36    ROL $36,X \ &times; 6
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
!colspan="2"|7 bytes
|<pre>FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>38      SEC
|<pre>FE 00 03 INC $0300,X
A9 10   LDA #16
26 26   ROL $26
E9 01   SBC #1
66 26   ROR $26
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
36 36   ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 04 INC $0400,X
A0 0F   LDY #15
26 26   ROL $26
88      DEY
66 26    ROR $26
D0 FB   BNE *-3
36 36   ROL $36,X \ &times; 5
28      PLP</pre>||Clobbers Y; and writes in stack
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 05 INC $0500,X
A2 0F   LDX #15
26 26   ROL $26
CA      DEX
66 26    ROR $26
D0 FB   BNE *-3
36 36    ROL $36,X \ &times; 5
28      PLP</pre>||Clobbers X; and writes in stack
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 07 INC $0700,X
A9      LDA #49
26 26    ROL $26
20 xx xx JSR delay_a_25_clocks
66 26    ROR $26
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A9      LDA #49
04 04    NOP $04
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 6
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>68      PLA
!colspan="2"|28 bytes
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
|-
|-
!colspan="2"|9 bytes
|<pre>EA      NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>EA  ... NOP      &times; 2
!colspan="2"|30 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>26 26   ROL $26  \ &times; 2
A9 0A   LDA #$0A ;hides 'ASL A'
66 26    ROR $26  /
EA      NOP
36 36    ROL $36,X
18      CLC
76 36   ROR $36,X
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>08      PHP
!colspan="2"|39 bytes
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>18   ... CLC     &times; 37
A9 0A    LDA #$0A ;hides 'ASL A'
90 00   BCC *+2</pre>||Clobbers C
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     &times; 2
|<pre>B8   ... CLV     &times; 37
A9 2A    LDA #$2A ;hides 'ROL A'
50 00    BVC *+2</pre>||Clobbers V
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     &times; 2
|<pre>85 xx    STA @zptemp
38      SEC
EA   ... NOP     &times; 37</pre>||Requires @zptemp
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>04 04   NOP $04
08      PHP
EA  ... NOP     &times; 37</pre>||Requires support for unofficial opcodes
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
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"|40 bytes
|-
|-
|<pre>36 36    ROL $36,X
|<pre>4C xx xx JMP *+3
76 36    ROR $36,X
EA   ... NOP     &times; 37</pre>||Not relocatable code
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>E6 xx    INC @zptemp
|}
48       PHA
 
A9 0A   LDA #$0A ;hides 'ASL A'
 
=== 78 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #51
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 0B   LDX #11
EA      NOP
CA       DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|<pre>A0 0B   LDY #11
EA      NOP
EA      NOP
18      CLC
88      DEY
D0 FB    BNE *-3
D0 FC    BNE *-2</pre>||Clobbers Y, and Z&N
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>18      CLC
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
|-
|<pre>38      SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 0E    LDX #14
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 0E    LDY #14
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; 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
|-
|-
|<pre>08      PHP
|<pre>08      PHP
E6 xx   INC @zptemp
A9      LDA #44
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 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 @zptemp; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>04 04    NOP $04
|<pre>68      PLA
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;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
|-
|<pre>04 04    NOP $04
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>00 00    BRK 0
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
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
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
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</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
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
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9       LDA #37
08       PHP
20 xx xx JSR delay_a_25_clocks
28      PLP
68      PLA
18      CLC
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
10 FA    BPL *-4
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA  ... NOP      &times; 2
B0 FA    BCS *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|20 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 19</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|23 bytes
|-
|<pre>68      PLA
48      PHA
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
!colspan="2"|26 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|39 bytes
|-
|<pre>EA  ... NOP      &times; 39</pre>||No requirements
|-
|-
|}
|}




=== 84 cycles ===
=== 79 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #57
|<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
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'
48      PHA
30 FC    BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>48      PHA
|<pre>A0 88    LDY #136 ;hides 'DEY'
A0 10   LDY #16
C5 C5    CMP $C5
88      DEY
30 FB    BMI *-3</pre>||Clobbers Y, Z&N, and C
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<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'
A5 A5    LDA $A5
30 FB    BMI *-3</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
A6 A6    LDX $A6
30 FB    BMI *-3</pre>||Clobbers X, Y, and Z&N
|-
|<pre>A0 88   LDY #136 ;hides 'DEY'
85 xx    STA @zptemp
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|<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
|-
|<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>48      PHA
|<pre>48      PHA
A2 10   LDX #16
A2 0F   LDX #15
CA      DEX
CA      DEX
D0 FB   BNE *-3</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
50 00    BVC *+2
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
A2 10   LDX #16
A2 0F   LDX #15
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
A0 10   LDY #16
A0 0F   LDY #15
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
85 xx   STA @zptemp
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #50
A9      LDA #45
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #50
A9      LDA #45
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; 2
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$08'
04 04    NOP $04
08       PHP ;first loop only
18       CLC
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; 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
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
08      PHP
E6 xx    INC @zptemp
28      PLP
28      PLP
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
18      CLC
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>00 00    BRK 0
|<pre>68  ... PLA      &times; 2
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</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>48      PHA
08      PHP
A0 88    LDY #136 ;hides 'DEY'
EA      NOP
30 FC    BMI *-2
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
48  ... PHA      &times; 4
08      PHP
10 F9   BPL *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
A2 0A    LDX #10 ;hides 'ASL A'
CA      DEX
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
24 24   BIT $24
EA  ... NOP      &times; 4
28      PLP
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
18       CLC
|-
10 F8   BPL *-6</pre>||Clobbers A, Z&N, and C; and writes in stack
|<pre>08      PHP
A4 A4   LDY $A4
A0 88    LDY #136 ;hides 'DEY'
EA      NOP
30 FC    BMI *-2
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08       PHP
A6 A6    LDX $A6
A2 0A    LDX #10 ;hides 'ASL A'
CA      DEX
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0E   LDX #14
A2 0D   LDX #13
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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
Line 10,629: Line 12,119:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #43
A9      LDA #38
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
Line 10,636: Line 12,126:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A0 0E    LDY #14
A2 0D   LDX #13
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 0E   LDX #14
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>68      PLA
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0E   LDX #14
A0 0D   LDY #13
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A0 0E    LDY #14
A2 0D   LDX #13
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A2 0E   LDX #14
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>00 00   BRK 0
18      CLC
A9 2A   LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 69   LDA #$69 ;hides 'ADC #$5A'
08      PHP
5A       NOP ;first loop only
28       PLP
D0 FC   BNE *-2
10 FB   BPL *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; 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
|<pre>00 00    BRK 0
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
38       SEC
28       PLP
A9 69    LDA #$69 ;hides 'ADC #$5A'
10 FB   BPL *-3
5A      NOP ;first loop only
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; 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      &times; 3
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28      PLP
18      CLC
18      CLC
D0 FB   BNE *-3
10 FA   BPL *-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>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28      PLP
18      CLC
18      CLC
D0 FB   BNE *-3
10 FA   BPL *-4
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 10,729: Line 12,185:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0D   LDX #13
A0 0C   LDY #12
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
8C      TXA
08      PHP
48       PHA
38       SEC
A2 0D    LDX #13
A9 0D    LDA #13
CA      DEX
E9 01    SBC #1
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
AA      TAX
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'
85 xx    STA @zptemp
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>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</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 10,754: Line 12,226:
48      PHA
48      PHA
38      SEC
38      SEC
A9 0D   LDA #13
A9 0C   LDA #12
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|20 bytes
 
 
=== 85 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #58
|<pre>68       PLA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA
68  ... PLA      &times; 18</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|23 bytes
|-
|-
|<pre>A2 0C    LDX #12
|<pre>EA      NOP
EA      NOP
68       PLA      \ &times; 11
CA       DEX
48      PHA      /</pre>||Clobbers A, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0C    LDY #12
!colspan="2"|27 bytes
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA      NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>FE 00 02 INC $0200,X
2A      ROL A ;first loop only
36 36    ROL $36,X \ &times; 6
08      PHP
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
28      PLP
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>FE 00 03 INC $0300,X
A9      LDA #51
36 36    ROL $36,X \ &times; 6
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 04 INC $0400,X
A9      LDA #51
36 36    ROL $36,X \ &times; 6
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>18      CLC
|<pre>FE 00 06 INC $0600,X
A9 0A   LDA #$0A ;hides 'ASL A'
36 36   ROL $36,X \ &times; 6
EA      NOP
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
08      PHP
28      PLP
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 07 INC $0700,X
A0 0B   LDY #11
36 36   ROL $36,X \ &times; 6
EA      NOP
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
88      DEY
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|28 bytes
A2 0B    LDX #11
EA      NOP
CA      DEX
D0 FA    BNE *-4
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>24 24    BIT $24
38      SEC
26 26    ROL $26
A9 0F   LDA #15
66 26   ROR $26
E9 01   SBC #1
36 36   ROL $36,X
D0 F9   BNE *-5
76 36   ROR $36,X
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|<pre>04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|29 bytes
|-
|<pre>4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|30 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|40 bytes
|-
|<pre>18  ... CLC      &times; 38
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 38
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>08      PHP
|<pre>85 xx    STA @zptemp
38       SEC
EA  ... NOP      &times; 38</pre>||Requires @zptemp
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>04 04    NOP $04
48      PHA
EA  ... NOP      &times; 38</pre>||Requires support for unofficial opcodes
A9      LDA #44
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"|41 bytes
|-
|-
|<pre>08      PHP
|<pre>4C xx xx JMP *+3
48      PHA
EA   ... NOP     &times; 38</pre>||Not relocatable code
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18      CLC
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 86 cycles ===
=== 80 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A0 11   LDY #17
|<pre>A9      LDA #53
88       DEY
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 Y, and Z&N
|-
!colspan="2"|6 bytes
|-
|<pre>A2 88   LDX #136 ;hides 'DEY'
EA      NOP
CA       DEX
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>A2 11   LDX #17
|<pre>68      PLA
A2 0F   LDX #15
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A9       LDA #59
|<pre>68       PLA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A0 0F    LDY #15
88      DEY
D0 FD    BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
A9      LDA #52
A2 0F    LDX #15
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 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A9      LDA #52
A0 0F    LDY #15
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, 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
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
|<pre>38       SEC
18      CLC
A9 EB   LDA #$EB ;hides 'SBC #$1A'
A9 69   LDA #$69 ;hides 'ADC #$F8'
1A       NOP ;first loop only
F8       SED ;first loop only
EA      NOP
10 FC   BPL *-2</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
B0 FB   BCS *-3</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>38       SEC
18       CLC
A9 0B   LDA #11
A9 69   LDA #$69 ;hides 'ADC #$F8'
EA       NOP
F8       SED ;first loop only
E9 01    SBC #1
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A2 0E    LDX #14
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A0 88   LDY #136 ;hides 'DEY'
08      PHP
C5 C5    CMP $C5
A0 0E   LDY #14
30 FB   BMI *-3
88      DEY
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
20 xx xx JSR @rts12
A9 69   LDA #$69 ;hides 'ADC #$5A'
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
5A      NOP ;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
|-
|-
|<pre>00 00    BRK 0
|<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 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; 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
|<pre>68      PLA
68      PLA
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
18      CLC
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
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
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
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
EA       NOP
50 00    BVC *+2
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
EA       NOP
50 00    BVC *+2
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 A6    LDX $A6
18       CLC
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
EA      NOP
18      CLC
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
68       PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #45
A9      LDA #39
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
!colspan="2"|11 bytes
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
|-
!colspan="2"|10 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
08      PHP
28      PLP
18      CLC
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
48      PHA
8C      TXA
A9 0A   LDA #$0A ;hides 'ASL A'
48      PHA
85 xx    STA @zptemp
A2 0D   LDX #13
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX
28       PLP</pre>||Clobbers S; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>48      PHA
08      PHP
08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
04 04    NOP $04
28      PLP
D0 FB    BNE *-3
10 FB    BPL *-3
68      PLA
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|-
|<pre>48       PHA
|<pre>08       PHP
28      PLP
08      PHP
08      PHP
48      PHA
48      PHA
Line 11,016: Line 12,498:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
10 FB   BPL *-3
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|20 bytes
|-
|<pre>68  ... PLA      &times; 20</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|23 bytes
|-
|<pre>68      PLA      \ &times; 3
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
!colspan="2"|27 bytes
|-
|<pre>EA      NOP
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|40 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 40</pre>||No requirements
08      PHP
48      PHA
38      SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 87 cycles ===
=== 81 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #60
|<pre>A2 10    LDX #16
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>A0 10    LDY #16
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #54
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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 0A   LDA #$0A ;hides 'ASL A'
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
48   ... PHA     &times; 2
0A      ASL A ;first loop only
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
48       PHA
|-
30 FB    BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|<pre>A0 F8    LDY #248 ;hides 'SED'
68      PLA
C8      INY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, Z&N, and D
|-
|<pre>A2 F8    LDX #248 ;hides 'SED'
68      PLA
E8      INX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, Z&N, and D
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>A9 69   LDA #$69 ;hides 'ADC #$18'
EA  ... NOP      &times; 2
18      CLC ;first loop only
18      CLC
E6 xx    INC @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C
90 FA    BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|<pre>EA      NOP
A2 0C    LDX #12
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 0C    LDY #12
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #53
A9      LDA #47
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #53
A9      LDA #47
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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
04 04    NOP $04
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>18      CLC
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
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08       PHP
|<pre>18       CLC
A2 88   LDX #136 ;hides 'DEY'
A9 0A   LDA #$0A ;hides 'ASL A'
EA       NOP
B8       CLV
CA      DEX
50 00    BVC *+2
30 FB   BMI *-3
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers X, and Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>8C       TXA
|<pre>18       CLC
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A2 0F   LDX #15
20 xx xx JSR @rts15
CA      DEX
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
D0 FB   BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP     &times; 2
|<pre>18      CLC
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A0 0F   LDY #15
04 04    NOP $04
88       DEY
18      CLC
D0 FB   BNE *-3
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>EA  ... NOP      &times; 2
A9 2A   LDA #$2A ;hides 'ROL A'
08      PHP
EA       NOP
A2 0F   LDX #15
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
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48      PHA
48      PHA
08       PHP
A9       LDA #46
A0 0E    LDY #14
20 xx xx JSR delay_a_25_clocks
88      DEY
68      PLA
D0 FD    BNE *-1
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>18       CLC
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 EB   LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
EA      NOP
B0 FB    BCS *-3
08      PHP
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP
18      CLC
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>48       PHA
|<pre>08       PHP
38      SEC
A6 A6    LDX $A6
A9 0B   LDA #11
A2 0E   LDX #14
EA       NOP
CA       DEX
E9 01    SBC #1
D0 FD   BNE *-1
D0 F8   BNE *-6
28       PLP</pre>||Clobbers X; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38      SEC
A4 A4    LDY $A4
A9 0B   LDA #11
A0 0E   LDY #14
EA       NOP
88       DEY
E9 01    SBC #1
D0 FD   BNE *-1
D0 F8   BNE *-6
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
38       SEC
A9       LDA #40
A9 69    LDA #$69 ;hides 'ADC #$5A'
20 xx xx JSR delay_a_25_clocks
5A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>48   ... PHA     &times; 2
|-
|<pre>08      PHP
48       PHA
18      CLC
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
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 88 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #61
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>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 11   LDX #17
68  ... PLA      &times; 2
CA       DEX
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
EA      NOP
18       CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>EA       NOP
|<pre>48      PHA
A0 11   LDY #17
08       PHP
88       DEY
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
EA       NOP
18      CLC
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>38       SEC
|<pre>C5 C5    CMP $C5
A9 11   LDA #17
48       PHA
E9 01    SBC #1
A9 0A   LDA #$0A ;hides 'ASL A'
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
EA      NOP
18      CLC
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>26 26    ROL $26
A0 10   LDY #16
66 26    ROR $26
88       DEY
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB    BNE *-3
EA      NOP
28      PLP</pre>||Clobbers Y; and writes in stack
18       CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 10   LDX #16
A5 A5   LDA $A5
CA       DEX
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18       CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|11 bytes
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
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9       LDA #54
48      PHA
20 xx xx JSR delay_a_25_clocks
18      CLC
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
F6 F6    INC $F6,X
90 FB    BCC *-3
68      PLA
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>68       PLA
|<pre>08       PHP
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
EA  ... NOP      &times; 3
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
90 FA    BCC *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|21 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9 69    LDA #$69 ;hides 'ADC #$18'
68      PLA
18       CLC ;first loop only
48       PHA
E6 xx    INC @zptemp
68   ... PLA     &times; 18</pre>||Clobbers A, S, and Z&N
90 FA    BCC *-4
68       PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|23 bytes
A9 69    LDA #$69 ;hides 'ADC #$18'
18      CLC ;first loop only
E6 xx    INC @zptemp
90 FA    BCC *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>68      PLA      \ &times; 2
A9 0A   LDA #$0A ;hides 'ASL A'
48      PHA      /
20 xx xx JSR @rts12
A9 09   LDA #$09 ;hides 'ORA #$EA'
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
EA      NOP ;first loop only
EA  ... NOP      &times; 14
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
|-
|-
|<pre>08      PHP
!colspan="2"|28 bytes
48      PHA
A9      LDA #47
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>C5 C5    CMP $C5
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
36 36   ROL $36,X \ &times; 2
0A      ASL A ;first loop only
76 36   ROR $36,X /
04 04   NOP $04
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
30 FA    BMI *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>24 24    BIT $24
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
36 36   ROL $36,X \ &times; 2
0A      ASL A ;first loop only
76 36   ROR $36,X /
04 04   NOP $04
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
30 FA    BMI *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>E6 xx    INC @zptemp
A9 0A   LDA #$0A ;hides 'ASL A'
26 26   ROL $26
48      PHA
66 26    ROR $26
18      CLC
36 36    ROL $36,X
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
76 36   ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|10 bytes
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
18      CLC
FE 00 03 INC $0300,X
A9 0A   LDA #$0A ;hides 'ASL A'
36 36   ROL $36,X \ &times; 6
B8      CLV
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
50 00   BVC *+2
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
18      CLC
FE 00 04 INC $0400,X
A9 0A   LDA #$0A ;hides 'ASL A'
36 36   ROL $36,X \ &times; 6
B8      CLV
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
50 00   BVC *+2
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
18      CLC
FE 00 05 INC $0500,X
A9 0A   LDA #$0A ;hides 'ASL A'
36 36   ROL $36,X \ &times; 6
85 xx   STA @zptemp
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
18      CLC
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
18      CLC
FE 00 06 INC $0600,X
A9 2A   LDA #$2A ;hides 'ROL A'
36 36   ROL $36,X \ &times; 6
20 xx xx JSR @rts15
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
90 FA   BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
18      CLC
FE 00 07 INC $0700,X
A9 0A   LDA #$0A ;hides 'ASL A'
36 36    ROL $36,X \ &times; 6
04 04    NOP $04
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
18      CLC
|-
D0 FA   BNE *-4
|<pre>04 04    NOP $04
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
36 36    ROL $36,X \ &times; 2
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|29 bytes
|-
|<pre>4C xx xx JMP *+3
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|30 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|41 bytes
|-
|-
|<pre>48      PHA
|<pre>18   ... CLC     &times; 39
18       CLC
90 00    BCC *+2</pre>||Clobbers C
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
|<pre>B8  ... CLV      &times; 39
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>48      PHA
|<pre>85 xx   STA @zptemp
18      CLC
EA   ... NOP     &times; 39</pre>||Requires @zptemp
A9 0A   LDA #$0A ;hides 'ASL A'
EA       NOP
08      PHP
28      PLP
18      CLC
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>04 04   NOP $04
08      PHP
EA   ... NOP     &times; 39</pre>||Requires support for unofficial opcodes
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
EA       NOP
18      CLC
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|42 bytes
|-
|-
|<pre>08      PHP
|<pre>4C xx xx JMP *+3
C5 C5    CMP $C5
EA   ... NOP     &times; 39</pre>||Not relocatable code
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18      CLC
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 89 cycles ===
=== 82 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #62
|<pre>A9      LDA #55
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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'
68      PLA
30 FC    BMI *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>48      PHA
EA  ... NOP      &times; 2
A0 88    LDY #136 ;hides 'DEY'
30 FB   BMI *-3</pre>||Clobbers Y, and Z&N
48      PHA
30 FC   BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 0A   LDX #10 ;hides 'ASL A'
|<pre>A2 09   LDX #9
EA       NOP
68       PLA
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, Z&N, and C
D0 FC   BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>A0 09   LDY #9
00 00    BRK 0
68      PLA
10 FB   BPL *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
88      DEY
D0 FC   BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 0B    LDX #11
!colspan="2"|7 bytes
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>A2 09   LDX #9
|-
EA  ... NOP      &times; 2
|<pre>A6 A6    LDX $A6
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 09    LDY #9
EA  ... NOP      &times; 2
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #55
A9      LDA #48
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #55
A9      LDA #48
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>18       CLC
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA     &times; 2
48       PHA
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
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>18       CLC
|<pre>EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
38       SEC
EA   ... NOP     &times; 2
A9 EB   LDA #$EB ;hides 'SBC #$1A'
18       CLC
1A      NOP ;first loop only
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C
EA       NOP
B0 FB    BCS *-3</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>68      PLA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>EA  ... NOP      &times; 2
A2 09   LDX #9
38      SEC
EA  ... NOP      &times; 2
A9 0F    LDA #15
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>98      TYA
48       PHA
A0 0E   LDY #14
88      DEY
D0 FD    BNE *-1
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
CA      DEX
CA      DEX
D0 F9   BNE *-5
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A0 09    LDY #9
08      PHP
EA  ... NOP      &times; 2
A0 0E    LDY #14
88      DEY
88      DEY
D0 F9   BNE *-5
D0 FD   BNE *-1
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'
85 xx    STA @zptemp
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #48
A9      LDA #41
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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>8C      TXA
48      PHA
A2 0B    LDX #11
EA      NOP
CA      DEX
D0 FA    BNE *-4
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
38      SEC
38      SEC
A9 EB   LDA #$EB ;hides 'SBC #$1A'
A9 69   LDA #$69 ;hides 'ADC #$5A'
1A       NOP ;first loop only
5A       NOP ;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
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>04 04    NOP $04
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>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
38      SEC
38      SEC
A9 EB   LDA #$EB ;hides 'SBC #$1A'
A9 69   LDA #$69 ;hides 'ADC #$5A'
1A       NOP ;first loop only
5A       NOP ;first loop only
EA      NOP
D0 FC   BNE *-2
B0 FB   BCS *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>68   ... PLA     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
EA       NOP
50 00    BVC *+2
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
EA       NOP
50 00    BVC *+2
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>EA   ... NOP     &times; 2
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
EA      NOP
18      CLC
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>EA   ... NOP     &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
EA      NOP
18      CLC
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
68       PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48       PHA
|<pre>08       PHP
8C      TXA
48      PHA
48      PHA
A2 0E   LDX #14
38      SEC
CA      DEX
A9 0D   LDA #13
E9 01    SBC #1
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX
28       PLP</pre>||Writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
!colspan="2"|21 bytes
08      PHP
38      SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
68   ... PLA     &times; 20</pre>||Clobbers A, S, and Z&N
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;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"|24 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>36 36    ROL $36,X
08      PHP
76 36    ROR $36,X
48      PHA
68      PLA      \ &times; 10
A9 0A   LDA #$0A ;hides 'ASL A'
48      PHA       /</pre>||Clobbers A, and Z&N
EA      NOP
|-
18      CLC
!colspan="2"|28 bytes
D0 FB   BNE *-3
|-
68      PLA
|<pre>26 26   ROL $26
28      PLP</pre>||Writes in stack
66 26    ROR $26
36 36    ROL $36,X \ &times; 6
76 36   ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|41 bytes
|-
|<pre>EA  ... NOP      &times; 41</pre>||No requirements
|-
|-
|}
|}




=== 90 cycles ===
=== 83 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #63
|<pre>A9      LDA #56
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>68       PLA
|<pre>18       CLC
A0 11   LDY #17
A9 69   LDA #$69 ;hides 'ADC #$F8'
88       DEY
F8       SED ;first loop only
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>68       PLA
|<pre>EA       NOP
A2 11   LDX #17
A2 10   LDX #16
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 10    LDY #16
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>38      SEC
38      SEC
A9 10   LDA #16
A9 69   LDA #$69 ;hides 'ADC #$F8'
E9 01    SBC #1
F8      SED ;first loop only
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
A2 11   LDX #17
A2 0F   LDX #15
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
A0 11   LDY #17
A0 0F   LDY #15
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #56
A9      LDA #49
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #56
A9      LDA #49
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
|<pre>68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA     &times; 2
48       PHA
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
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>48       PHA
|<pre>68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18      CLC
18      CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and requires @zptemp
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
F8      SED ;first loop only
10 FC    BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 10    LDY #16
88      DEY
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 10    LDX #16
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 10   LDA #16
85 xx   STA @zptemp
E9 01   SBC #1
18      CLC
D0 F9   BNE *-5
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>20 xx xx JSR @rts12
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #49
A9      LDA #42
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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"|11 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
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</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>18  ... CLC      &times; 2
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
00 00    BRK 0
D0 FB   BNE *-3
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>68   ... PLA     &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
EA      NOP
18      CLC
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48  ... PHA     &times; 2
18   ... CLC     &times; 2
38      SEC
A9 2A   LDA #$2A ;hides 'ROL A'
A9 69   LDA #$69 ;hides 'ADC #$5A'
EA       NOP
5A       NOP ;first loop only
00 00    BRK 0
D0 FC   BNE *-2
90 FA   BCC *-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, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
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 FC    BNE *-2
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>36 36    ROL $36,X
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
76 36    ROR $36,X
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|<pre>E6 xx    INC @zptemp
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 11,718: Line 13,179:
18      CLC
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
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
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>04 04    NOP $04
|<pre>04 04    NOP $04
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
Line 11,737: Line 13,195:
5A      NOP ;first loop only
5A      NOP ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>04 04    NOP $04
48      PHA
08      PHP
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>00 00    BRK 0
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
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
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
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
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
08      PHP
08      PHP
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
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
10 FA    BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|21 bytes
 
 
=== 91 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A2 12    LDX #18
|<pre>68      PLA
CA       DEX
48       PHA
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
68  ... PLA      &times; 19</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>A0 12    LDY #18
!colspan="2"|24 bytes
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9       LDA #64
|<pre>EA      NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68      PLA      \ &times; 2
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 14
10 EE    BPL *-16</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|28 bytes
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|<pre>E6 xx   INC @zptemp
0A      ASL A ;first loop only
36 36    ROL $36,X \ &times; 2
EA  ... NOP      &times; 2
76 36    ROR $36,X /
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
!colspan="2"|29 bytes
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
|<pre>EA       NOP
A9      LDA #57
C5 C5    CMP $C5
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 2
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
24 24   BIT $24
00 00   BRK 0
36 36    ROL $36,X \ &times; 2
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|-
|<pre>68      PLA
|<pre>FE 00 02 INC $0200,X
A9 0A   LDA #$0A ;hides 'ASL A'
26 26   ROL $26
48  ... PHA      &times; 2
66 26    ROR $26
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
!colspan="2"|8 bytes
|<pre>FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 04 INC $0400,X
08      PHP
26 26    ROL $26
A2 10   LDX #16
66 26   ROR $26
CA      DEX
36 36    ROL $36,X
D0 FB   BNE *-3
76 36   ROR $36,X
28      PLP</pre>||Clobbers X, and S; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 05 INC $0500,X
08      PHP
26 26    ROL $26
A0 10   LDY #16
66 26   ROR $26
88      DEY
36 36    ROL $36,X
D0 FB   BNE *-3
76 36   ROR $36,X
28      PLP</pre>||Clobbers Y, and S; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
!colspan="2"|9 bytes
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>18      CLC
|<pre>FE 00 07 INC $0700,X
A9 0A    LDA #$0A ;hides 'ASL A'
26 26    ROL $26
26 26    ROL $26
66 26    ROR $26
66 26    ROR $26
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C
36 36   ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>EA      NOP
04 04    NOP $04
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|30 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A6 A6   LDX $A6
4C xx xx JMP *+3
A2 10   LDX #16
36 36   ROL $36,X \ &times; 2
CA      DEX
76 36   ROR $36,X /
D0 FB    BNE *-3
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|31 bytes
A4 A4    LDY $A4
A0 10    LDY #16
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
36 36   ROL $36,X \ &times; 3
20 xx xx JSR @rts12
76 36   ROR $36,X /
10 FA   BPL *-4
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|42 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>18  ... CLC      &times; 40
48      PHA
90 00    BCC *+2</pre>||Clobbers C
A9      LDA #50
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>B8  ... CLV      &times; 40
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>48      PHA
|<pre>85 xx    STA @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 40</pre>||Requires @zptemp
08      PHP
E6 xx    INC @zptemp
28      PLP
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>04 04   NOP $04
A9 0A   LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 40</pre>||Requires support for unofficial opcodes
08      PHP
E6 xx    INC @zptemp
28      PLP
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>00 00    BRK 0
!colspan="2"|43 bytes
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; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>4C xx xx JMP *+3
08      PHP
EA  ... NOP      &times; 40</pre>||Not relocatable code
A9 0A    LDA #$0A ;hides 'ASL A'
|-
EA       NOP
|}
18       CLC
 
D0 FB   BNE *-3
 
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
=== 84 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9       LDA #57
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 10    LDX #16
CA       DEX
D0 FD   BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|-
|<pre>68      PLA
|<pre>A6 A6    LDX $A6
8C      TXA
A2 10   LDX #16
48      PHA
A2 0F   LDX #15
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
68       PLA
|-
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|<pre>A4 A4    LDY $A4
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR @rts12
0A      ASL A ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
04 04    NOP $04
30 FA    BMI *-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
08      PHP
A9      LDA #50
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
04 04    NOP $04
|-
30 FA   BMI *-4
|<pre>08      PHP
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
A9      LDA #50
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
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"|11 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 24   BIT $24
E6 xx   INC @zptemp
28      PLP
28      PLP
18      CLC
10 F9   BPL *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
10 F8   BPL *-6
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
EA       NOP
24 24    BIT $24
28      PLP
18      CLC
18      CLC
10 F8   BPL *-6
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 4
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>68      PLA
48       PHA
38      SEC
8C       TXA
A9 EB    LDA #$EB ;hides 'SBC #$1A'
48       PHA
1A      NOP ;first loop only
EA      NOP
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|9 bytes
|-
|<pre>38      SEC
A9 09    LDA #9
EA  ... NOP      &times; 2
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 24    BIT $24
28      PLP
18       CLC
10 F8    BPL *-6</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<pre>08       PHP
A2 0E    LDX #14
A2 0E    LDX #14
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
68       PLA
F6 xx    INC @zptemp,X
AA       TAX
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
68       PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>08       PHP
F6 F6    INC $F6,X
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
28       PLP</pre>||Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
18       CLC
A9       LDA #43
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR @rts14
90 FA    BCC *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>08      PHP
A2 0A    LDX #10 ;hides 'ASL A'
CA      DEX
D0 FC    BNE *-2
03 xx    SLO (@ptrtemp,X)
28      PLP</pre>||Clobbers A, and X; requires @ptrtemp, and support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
A0 0A    LDY #10 ;hides 'ASL A'
88      DEY
D0 FC    BNE *-2
13 xx    SLO (@ptrtemp),Y
28      PLP</pre>||Clobbers A, and Y; requires @ptrtemp, and support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A2 0E    LDX #14
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 0E    LDY #14
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>68      PLA
08      PHP
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 FC    BNE *-2
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
EA   ... NOP     &times; 5
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18      CLC
18      CLC
D0 FB   BNE *-3
10 F7   BPL *-7</pre>||Clobbers A, Z&N, and C
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>EA      NOP
|-
98       TYA
|<pre>08       PHP
48      PHA
48      PHA
8C      TXA
A0 0E   LDY #14
48      PHA
88       DEY
A2 0D   LDX #13
D0 FD   BNE *-1
CA       DEX
D0 FB   BNE *-3
68      PLA
68      PLA
AA       TAX
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>EA  ... NOP      &times; 3
 
08      PHP
 
A2 0E    LDX #14
=== 92 cycles ===
CA      DEX
{| class="wikitable testtable"
D0 FD    BNE *-1
!colspan="2"|5 bytes
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9       LDA #65
|<pre>EA  ... NOP      &times; 3
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
08       PHP
A0 0E    LDY #14
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|6 bytes
|<pre>F6 F6    INC $F6,X
|-
48      PHA
|<pre>A0 0D   LDY #13
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
88       DEY
18       CLC
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>A2 0D   LDX #13
|<pre>08      PHP
F6 F6   INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
CA       DEX
18       CLC
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3
|-
28      PLP</pre>||Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #58
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 2A    LDA #$2A ;hides 'ROL A'
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
20 xx xx JSR @rts14
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9       LDA #58
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 2A    LDA #$2A ;hides 'ROL A'
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
20 xx xx JSR @rts14
90 FA    BCC *-4
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>68       PLA
|<pre>EA  ... NOP      &times; 2
48       PHA
38      SEC
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 FC    BPL *-2</pre>||Clobbers A, S, Z&N, C, V, and D
D0 FC    BNE *-2
|-
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|<pre>48      PHA
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
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
38      SEC
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 FC    BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 3
A2 0C   LDX #12
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
CA       DEX
18       CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
28       PLP</pre>||Clobbers X; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48  ... PHA      &times; 2
A0 0C   LDY #12
08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
88       DEY
18       CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
!colspan="2"|11 bytes
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
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
98      TYA
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A0 0D   LDY #13
48  ... PHA      &times; 2
88      DEY
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FD   BNE *-1
|-
68       PLA
!colspan="2"|9 bytes
A8       TAY
|-
68      PLA</pre>||Clobbers Z&N; 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>EA      NOP
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
98      TYA
48      PHA
48      PHA
A9       LDA #51
A0 0D    LDY #13
20 xx xx JSR delay_a_25_clocks
88       DEY
D0 FD    BNE *-1
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
A8      TAY
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
08      PHP
28      PLP
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 0F   LDA #15
A9 0D   LDA #13
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|21 bytes
|-
|<pre>68  ... PLA      &times; 21</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|24 bytes
|-
|<pre>68      PLA      \ &times; 12
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|28 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>EA  ... NOP      &times; 42</pre>||No requirements
|-
|-
|}
|}




=== 93 cycles ===
=== 85 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #66
|<pre>A9      LDA #58
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>EA      NOP
|<pre>A2 0C   LDX #12
A2 12   LDX #18
EA      NOP
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A0 0C   LDY #12
A0 12   LDY #18
EA      NOP
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>38       SEC
|<pre>EA       NOP
A9 12   LDA #18
18      CLC
E9 01    SBC #1
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
F8      SED ;first loop only
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>08      PHP
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A0 11   LDY #17
2A       ROL A ;first loop only
88      DEY
08      PHP
D0 FB    BNE *-3
28       PLP
28       PLP</pre>||Clobbers Y; and writes in stack
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A2 11    LDX #17
CA       DEX
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #59
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
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      LDA #59
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
28      PLP</pre>||Clobbers A; 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
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
00 00   BRK 0
A9 10   LDA #16
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
E9 01   SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
EA      NOP
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
08      PHP
28      PLP
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>08      PHP
A2 0B    LDX #11
EA      NOP
CA      DEX
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48       PHA
A0 0B    LDY #11
A9       LDA #52
EA       NOP
20 xx xx JSR delay_a_25_clocks
88       DEY
68      PLA
D0 FC    BNE *-2
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|9 bytes
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA</pre>||Clobbers S, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
38       SEC
18      CLC
A9 0F   LDA #15
A9 69   LDA #$69 ;hides 'ADC #$F8'
E9 01    SBC #1
F8      SED ;first loop only
D0 FB   BNE *-3
10 FC   BPL *-2
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>08      PHP
|-
38      SEC
|<pre>24 24   BIT $24
A9 0F    LDA #15
48       PHA
E9 01    SBC #1
18      CLC
D0 FB    BNE *-3
A9 69   LDA #$69 ;hides 'ADC #$F8'
28      PLP</pre>||Clobbers A; and writes in stack
F8       SED ;first loop only
|-
10 FC   BPL *-2
|<pre>18      CLC
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
E6 xx    INC @zptemp
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<pre>18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 02 INC $0200,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $200-$2FF
|-
|<pre>18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
FE 00 03 INC $0300,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $300-$3FF
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 04 INC $0400,X
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $400-$4FF
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
FE 00 05 INC $0500,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $500-$5FF
|-
|-
|<pre>08      PHP
|<pre>18      CLC
A5 A5    LDA $A5
A9 0A   LDA #$0A ;hides 'ASL A'
18      CLC
EA       NOP
A9 69   LDA #$69 ;hides 'ADC #$F8'
FE 00 06 INC $0600,X
F8       SED ;first loop only
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $600-$6FF
10 FC   BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
EA      NOP
10 FA   BPL *-4
FE 00 07 INC $0700,X
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $700-$7FF
|-
|-
|<pre>00 00    BRK 0
|<pre>08      PHP
48      PHA
48      PHA
38       SEC
A9       LDA #44
A9 69    LDA #$69 ;hides 'ADC #$5A'
20 xx xx JSR delay_a_25_clocks
5A      NOP ;first loop only
68      PLA
D0 FC    BNE *-2
28      PLP</pre>||Requires delay_a_25_clocks; 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>EA      NOP
38       SEC
68       PLA
A9 10   LDA #16
A9 0A   LDA #$0A ;hides 'ASL A'
E9 01   SBC #1
04 04   NOP $04
D0 F9   BNE *-5
18      CLC
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
EA       NOP
50 00    BVC *+2
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>68      PLA      \ &times; 2
 
48      PHA      /
 
A9 0A    LDA #$0A ;hides 'ASL A'
=== 94 cycles ===
EA      NOP
{| class="wikitable testtable"
18      CLC
!colspan="2"|5 bytes
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A9      LDA #67
!colspan="2"|22 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
68      PLA
48      PHA
68  ... PLA      &times; 19</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|25 bytes
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>68      PLA      \ &times; 2
A0 12   LDY #18
48      PHA       /
88       DEY
36 36    ROL $36,X
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
76 36    ROR $36,X
A9 09   LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA  ... NOP      &times; 12
10 F0   BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|29 bytes
|-
|-
|<pre>A6 A6   LDX $A6
|<pre>EA      NOP
A2 12   LDX #18
E6 xx    INC @zptemp
CA      DEX
36 36   ROL $36,X \ &times; 2
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>A4 A4   LDY $A4
|<pre>FE 00 02 INC $0200,X
A0 12   LDY #18
36 36   ROL $36,X \ &times; 2
88      DEY
76 36   ROR $36,X /
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>FE 00 03 INC $0300,X
20 xx xx JSR @rts14
36 36   ROL $36,X \ &times; 2
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 04 INC $0400,X
A9      LDA #60
36 36    ROL $36,X \ &times; 2
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 05 INC $0500,X
A9      LDA #60
36 36    ROL $36,X \ &times; 2
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
!colspan="2"|8 bytes
|<pre>FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>FE 00 07 INC $0700,X
08      PHP      \ &times; 2
36 36   ROL $36,X \ &times; 2
28      PLP      /
76 36    ROR $36,X /
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|9 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>48      PHA
|<pre>C5 C5    CMP $C5
A9 0A   LDA #$0A ;hides 'ASL A'
26 26    ROL $26
EA  ... NOP      &times; 2
66 26   ROR $26
18      CLC
36 36    ROL $36,X \ &times; 6
D0 FA   BNE *-4
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>24 24    BIT $24
A9 0A   LDA #$0A ;hides 'ASL A'
26 26   ROL $26
EA  ... NOP      &times; 2
66 26    ROR $26
18      CLC
36 36    ROL $36,X \ &times; 6
D0 FA   BNE *-4
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>04 04    NOP $04
08      PHP
26 26    ROL $26
A2 0C   LDX #12
66 26   ROR $26
EA      NOP
36 36    ROL $36,X \ &times; 6
CA      DEX
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
!colspan="2"|31 bytes
08      PHP
|-
A0 0C   LDY #12
|<pre>4C xx xx JMP *+3
EA       NOP
26 26    ROL $26
88      DEY
66 26    ROR $26
D0 FA   BNE *-4
36 36   ROL $36,X \ &times; 6
28      PLP</pre>||Clobbers Y; and writes in stack
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|32 bytes
|-
|<pre>EA   ... NOP     &times; 2
36 36    ROL $36,X \ &times; 3
76 36   ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|43 bytes
|-
|-
|<pre>08      PHP
|<pre>18  ... CLC      &times; 41
48      PHA
90 00    BCC *+2</pre>||Clobbers C
A9      LDA #53
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>B8  ... CLV      &times; 41
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>48      PHA
|<pre>85 xx   STA @zptemp
8C      TXA
EA  ... NOP      &times; 41</pre>||Requires @zptemp
48      PHA
A2 0F   LDX #15
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>04 04   NOP $04
48      PHA
EA  ... NOP     &times; 41</pre>||Requires support for unofficial opcodes
38      SEC
A9 EB   LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|44 bytes
|-
|-
|<pre>08      PHP
|<pre>4C xx xx JMP *+3
48      PHA
EA   ... NOP     &times; 41</pre>||Not relocatable code
38      SEC
A9 0B    LDA #11
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 95 cycles ===
=== 86 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #68
|<pre>A2 11    LDX #17
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
CA       DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|6 bytes
|<pre>A0 11   LDY #17
|-
|<pre>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>68      PLA
A0 12   LDY #18
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68       PLA
|<pre>A9       LDA #59
A2 12    LDX #18
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>48      PHA
A2 12    LDX #18
A9      LDA #52
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>EA  ... NOP      &times; 2
|<pre>08      PHP
A0 12    LDY #18
A9      LDA #52
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
28       PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #61
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 FC    BPL *-2</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|<pre>08      PHP
A9      LDA #61
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
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>A5 A5    LDA $A5
38       SEC
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 FC    BPL *-2
10 FC    BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
C5 C5    CMP $C5
30 FB    BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>18      CLC
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>00 00    BRK 0
38      SEC
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 FC    BPL *-2
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48       PHA
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>EA       NOP
|<pre>48       PHA
08      PHP
08      PHP
A2 11   LDX #17
A2 0F   LDX #15
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 11    LDY #17
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<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>A5 A5    LDA $A5
38      SEC
38      SEC
A9 11   LDA #17
A9 10   LDA #16
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #54
B8      CLV
20 xx xx JSR delay_a_25_clocks
50 00    BVC *+2
68      PLA
D0 FA    BNE *-4
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A6 A6    LDX $A6
A9 69   LDA #$69 ;hides 'ADC #$18'
A2 0F    LDX #15
18      CLC ;first loop only
CA      DEX
E6 xx    INC @zptemp
D0 FD    BNE *-1
90 FA    BCC *-4
28      PLP</pre>||Clobbers X; and writes in stack
68      PLA
|-
28      PLP</pre>||Requires @zptemp; and writes in stack
|<pre>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>EA  ... NOP      &times; 2
|<pre>68      PLA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
85 xx   STA @zptemp
10 FA    BPL *-4
18      CLC
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #45
0A      ASL A ;first loop only
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'
04 04    NOP $04
04 04    NOP $04
30 FA    BMI *-4
18      CLC
68      PLA
D0 FA    BNE *-4
28      PLP</pre>||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     &times; 2
|<pre>68      PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
!colspan="2"|10 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
90 FA   BCC *-4
18      CLC
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
10 F9   BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>08       PHP
|<pre>68       PLA
48      PHA
48      PHA
68  ... PLA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|11 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
EA  ... NOP      &times; 5
50 00    BVC *+2
18       CLC
D0 FA   BNE *-4
10 F7   BPL *-7</pre>||Clobbers A, Z&N, and C
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|12 bytes
 
 
=== 96 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A2 13    LDX #19
|<pre>EA      NOP
CA       DEX
48       PHA
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
98      TYA
|-
48      PHA
|<pre>A0 13   LDY #19
A0 0D   LDY #13
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>A9      LDA #69
|<pre>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</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>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</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
38      SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
!colspan="2"|22 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 21</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|25 bytes
|-
|<pre>EA      NOP
68      PLA      \ &times; 12
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|29 bytes
|-
|<pre>EA      NOP
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|43 bytes
|-
|<pre>EA  ... NOP      &times; 43</pre>||No requirements
|-
|}
 
 
=== 87 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #60
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>A2 F8    LDX #248 ;hides 'SED'
68      PLA
E8      INX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, Z&N, and D
|-
|<pre>A0 F8    LDY #248 ;hides 'SED'
68      PLA
C8      INY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, Z&N, and D
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C
|-
|<pre>EA      NOP
A2 0C    LDX #12
EA      NOP
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 0C    LDY #12
EA      NOP
88      DEY
D0 FC    BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #62
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
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      LDA #62
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
Line 12,571: Line 14,232:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
A2 88    LDX #136 ;hides 'DEY'
EA  ... NOP      &times; 2
30 FB    BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 0A    LDX #10 ;hides 'ASL A'
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 FB    BNE *-3
30 FB    BMI *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers X, and Y; and writes in stack
|-
|-
|<pre>18      CLC
!colspan="2"|9 bytes
A9 0A    LDA #$0A ;hides 'ASL 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>48      PHA
|<pre>98      TYA
A9 0A   LDA #$0A ;hides 'ASL A'
48      PHA
00 00    BRK 0
A0 0F   LDY #15
10 FB   BPL *-3
88      DEY
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FD   BNE *-1
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; 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
|-
|<pre>48      PHA
08      PHP
08      PHP
A2 11   LDX #17
A2 0F   LDX #15
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>EA  ... NOP      &times; 2
|-
08      PHP
|<pre>18      CLC
A0 0F   LDY #15
A9 0A    LDA #$0A ;hides 'ASL A'
88       DEY
08      PHP      \ &times; 2
D0 FD   BNE *-1
28      PLP      /
28      PLP</pre>||Clobbers Y; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A2 0B   LDX #11
24 24    BIT $24
CA       DEX
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #55
A9      LDA #46
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 FB    BCS *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18       CLC
38       SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 0B   LDA #11
EA   ... NOP     &times; 2
EA       NOP
18      CLC
E9 01    SBC #1
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, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
18       CLC
38       SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 0B   LDA #11
EA   ... NOP     &times; 2
EA       NOP
18      CLC
E9 01    SBC #1
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>08      PHP
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 0B    LDX #11
EA      NOP
CA      DEX
D0 FA    BNE *-4
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 EB   LDA #$EB ;hides 'SBC #$1A'
A9 69   LDA #$69 ;hides 'ADC #$5A'
1A       NOP ;first loop only
5A       NOP ;first loop only
EA      NOP
D0 FC   BNE *-2
B0 FB   BCS *-3
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
!colspan="2"|11 bytes
08      PHP
|-
|<pre>08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
EA       NOP
50 00    BVC *+2
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|22 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>68       PLA
08       PHP
48      PHA
48      PHA
38      SEC
68   ... PLA     &times; 20</pre>||Clobbers A, S, and Z&N
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|25 bytes
 
 
=== 97 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #70
|<pre>68      PLA      \ &times; 4
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>A0 0C   LDY #12
|<pre>C5 C5   CMP $C5
48      PHA
36 36    ROL $36,X \ &times; 7
88      DEY
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
D0 FA   BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 0C   LDX #12
|<pre>24 24   BIT $24
48      PHA
36 36    ROL $36,X \ &times; 7
CA      DEX
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>E6 xx    INC @zptemp
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
FE 00 02 INC $0200,X
08      PHP
36 36   ROL $36,X \ &times; 2
28      PLP
76 36    ROR $36,X /
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>A0 08   LDY #8
|<pre>EA      NOP
08       PHP
FE 00 03 INC $0300,X
28       PLP
36 36    ROL $36,X \ &times; 2
88       DEY
76 36   ROR $36,X /
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA       NOP
FE 00 06 INC $0600,X
36 36   ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>04 04    NOP $04
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 08    LDX #8
!colspan="2"|31 bytes
08      PHP
28      PLP
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>4C xx xx JMP *+3
A9      LDA #63
36 36    ROL $36,X \ &times; 7
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|33 bytes
A9      LDA #63
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>EA  ... NOP      &times; 3
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|44 bytes
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>18  ... CLC      &times; 42
08      PHP
90 00   BCC *+2</pre>||Clobbers C
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC   BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>B8   ... CLV     &times; 42
08      PHP
50 00   BVC *+2</pre>||Clobbers V
A2 11    LDX #17
CA      DEX
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>85 xx    STA @zptemp
08      PHP
EA  ... NOP      &times; 42</pre>||Requires @zptemp
A0 11    LDY #17
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>04 04    NOP $04
48      PHA
EA  ... NOP      &times; 42</pre>||Requires support for unofficial opcodes
A9      LDA #56
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"|45 bytes
|-
|-
|<pre>08      PHP
|<pre>4C xx xx JMP *+3
48      PHA
EA  ... NOP      &times; 42</pre>||Not relocatable code
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 98 cycles ===
=== 88 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #71
|<pre>A9      LDA #61
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>EA      NOP
|<pre>38      SEC
A2 13   LDX #19
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|<pre>EA      NOP
A2 11   LDX #17
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 13   LDY #19
A0 11   LDY #17
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 13   LDA #19
A9 11   LDA #17
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 10    LDX #16
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 12   LDY #18
A0 10   LDY #16
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #64
A9      LDA #54
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #64
A9      LDA #54
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>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 69   LDA #$69 ;hides 'ADC #$18'
08       PHP
18       CLC ;first loop only
28      PLP
E6 xx    INC @zptemp
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
90 FA   BCC *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>08      PHP
A9 69    LDA #$69 ;hides 'ADC #$18'
18      CLC ;first loop only
E6 xx    INC @zptemp
90 FA    BCC *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
20 xx xx JSR @rts12
28      PLP
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; 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
48      PHA
A9      LDA #47
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
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
04 04    NOP $04
30 FA    BMI *-4
30 FA    BMI *-4
68      PLA</pre>||Clobbers Z&N, C, and V; 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
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
04 04    NOP $04
30 FA    BMI *-4
30 FA    BMI *-4
28      PLP</pre>||Clobbers A; 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 #57
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
|-
|-
|<pre>48      PHA
|<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
B8      CLV
10 FB   BPL *-3
50 00    BVC *+2
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FA   BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
50 00    BVC *+2
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
26 26   ROL $26
85 xx   STA @zptemp
66 26    ROR $26
18      CLC
90 F9   BCC *-5
D0 FA   BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
68      PLA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
85 xx   STA @zptemp
10 FA    BPL *-4
18      CLC
68      PLA
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>48      PHA
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>08       PHP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
04 04    NOP $04
E6 xx   INC @zptemp
18       CLC
28       PLP
D0 FA   BNE *-4
10 F9    BPL *-5
68       PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>00 00    BRK 0
08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
04 04    NOP $04
18      CLC
18      CLC
D0 FB   BNE *-3
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
18       CLC
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
EA       NOP
0A       ASL A ;first loop only
00 00   BRK 0
04 04   NOP $04
90 FA    BCC *-4
30 FA    BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
08      PHP
24 24    BIT $24
28      PLP
28      PLP
18      CLC
18      CLC
10 F8   BPL *-6
10 F9   BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
68      PLA
68      PLA
28       PLP</pre>||Writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|}
|<pre>A5 A5    LDA $A5
 
18      CLC
 
A9 0A    LDA #$0A ;hides 'ASL A'
=== 99 cycles ===
EA      NOP
{| class="wikitable testtable"
FE 00 02 INC $0200,X
!colspan="2"|5 bytes
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $200-$2FF
|-
|-
|<pre>A9       LDA #72
|<pre>A5 A5    LDA $A5
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
FE 00 03 INC $0300,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $300-$3FF
|-
|-
!colspan="2"|6 bytes
|<pre>A5 A5    LDA $A5
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
FE 00 04 INC $0400,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $400-$4FF
|-
|-
|<pre>A2 0E   LDX #14
|<pre>A5 A5   LDA $A5
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
CA      DEX
FE 00 05 INC $0500,X
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $500-$5FF
|-
|-
|<pre>A0 0E   LDY #14
|<pre>A5 A5   LDA $A5
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
88      DEY
FE 00 06 INC $0600,X
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $600-$6FF
|-
|-
!colspan="2"|7 bytes
|<pre>A5 A5    LDA $A5
|-
18      CLC
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
EA      NOP
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
FE 00 07 INC $0700,X
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; and requires writable $700-$7FF
|-
|-
|<pre>48      PHA
|<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'
00 00    BRK 0
18      CLC
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28       PLP
48       PHA
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
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>08      PHP
A0 0D    LDY #13
EA      NOP
EA      NOP
88       DEY
18       CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A2 0D   LDX #13
68      PLA
48      PHA
68  ... PLA      &times; 2
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
CA       DEX
18       CLC
D0 FA   BNE *-4
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 C5    CMP $C5
48      PHA
48      PHA
A9       LDA #58
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
EA      NOP
18      CLC
D0 FB    BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
08       PHP
48       PHA
38      SEC
26 26    ROL $26
A9 69   LDA #$69 ;hides 'ADC #$F8'
66 26    ROR $26
F8       SED ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
10 FC   BPL *-2
EA      NOP
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
18       CLC
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|22 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>68  ... PLA      &times; 22</pre>||Clobbers A, S, and Z&N
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
28      PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|25 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>68      PLA      \ &times; 3
48      PHA
48      PHA      /
38       SEC
A9 09   LDA #$09 ;hides 'ORA #$EA'
A9 69   LDA #$69 ;hides 'ADC #$F8'
EA       NOP ;first loop only
F8       SED ;first loop only
EA  ... NOP      &times; 14
10 FC   BPL *-2
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
!colspan="2"|30 bytes
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>26 26    ROL $26
A9 2A   LDA #$2A ;hides 'ROL A'
66 26   ROR $26
00 00... BRK 0   &times; 2
36 36   ROL $36,X \ &times; 2
10 F9   BPL *-5
76 36   ROR $36,X /
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|44 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 44</pre>||No requirements
08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 100 cycles ===
=== 89 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #73
|<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
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'
68      PLA
30 FC    BMI *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
EA  ... NOP      &times; 2
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0A    LDX #10 ;hides 'ASL A'
EA      NOP
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, Z&N, and C
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
68       PLA
48       PHA
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 0B    LDY #11
68      PLA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A6 A6    LDX $A6
A2 13   LDX #19
A2 11   LDX #17
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A9 69    LDA #$69 ;hides 'ADC #$18'
A0 13    LDY #19
18       CLC ;first loop only
88       DEY
F6 F6    INC $F6,X
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
90 FA   BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #66
A9      LDA #55
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #66
A9      LDA #55
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
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>EA       NOP
|<pre>18       CLC
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 13   LDA #19
EA  ... NOP      &times; 2
E9 01    SBC #1
18      CLC
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A2 09   LDX #9
A2 12   LDX #18
EA  ... NOP      &times; 2
CA      DEX
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A0 09   LDY #9
A0 12   LDY #18
EA  ... NOP      &times; 2
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
48      PHA
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
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 12    LDA #18
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 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #59
A9      LDA #48
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
Line 13,200: Line 14,824:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>98      TYA
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A0 0B   LDY #11
00 00    BRK 0
EA      NOP
10 FB   BPL *-3
88      DEY
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FC   BNE *-2
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>EA       NOP
|-
|<pre>48      PHA
08       PHP
48      PHA
48      PHA
18      CLC
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
A9 EB   LDA #$EB ;hides 'SBC #$1A'
F8      SED ;first loop only
1A       NOP ;first loop only
10 FC    BPL *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
24 24    BIT $24
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 101 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A0 14    LDY #20
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 14    LDX #20
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A9      LDA #74
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 #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
|-
|<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
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA      NOP
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
B0 FB    BCS *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|<pre>EA      NOP
0A       ASL A ;first loop only
08      PHP
38      SEC
A9 EB   LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA      NOP
EA      NOP
48      PHA
B0 FB   BCS *-3
30 FA   BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
50 00    BVC *+2
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>38       SEC
|<pre>48       PHA
A9 0E    LDA #14
08       PHP
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
B8      CLV
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
50 00    BVC *+2
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00   BRK 0
85 xx   STA @zptemp
18      CLC
18      CLC
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
04 04    NOP $04
28       PLP
18       CLC
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FA   BNE *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
98       TYA
A0 12   LDY #18
48      PHA
A0 0E   LDY #14
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28       PLP</pre>||Clobbers Y, and S; and writes in stack
68       PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 12   LDX #18
38      SEC
CA      DEX
A9 0F   LDA #15
E9 01    SBC #1
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>EA       NOP
|-
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 12    LDY #18
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; 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
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|<pre>08      PHP
48      PHA
48      PHA
A9       LDA #60
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP      \ &times; 2
28      PLP      /
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP     &times; 2
EA       NOP
18      CLC
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|23 bytes
 
 
=== 102 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #75
|<pre>EA       NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68      PLA
48      PHA
68  ... PLA      &times; 20</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|26 bytes
|-
|-
|<pre>A2 13   LDX #19
|<pre>36 36   ROL $36,X
CA      DEX
76 36   ROR $36,X
D0 FB   BNE *-3
68      PLA      \ &times; 11
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|30 bytes
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
|<pre>E6 xx    INC @zptemp
A9      LDA #68
36 36    ROL $36,X \ &times; 7
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|31 bytes
A0 13    LDY #19
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
A2 13   LDX #19
C5 C5    CMP $C5
CA      DEX
36 36    ROL $36,X \ &times; 7
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|8 bytes
|<pre>EA      NOP
24 24    BIT $24
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>48      PHA
|<pre>FE 00 02 INC $0200,X
A9 0A   LDA #$0A ;hides 'ASL A'
26 26   ROL $26
08      PHP
66 26    ROR $26
28      PLP
36 36    ROL $36,X \ &times; 6
D0 FB   BNE *-3
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 03 INC $0300,X
A9 0A   LDA #$0A ;hides 'ASL A'
26 26   ROL $26
08      PHP
66 26    ROR $26
28      PLP
36 36    ROL $36,X \ &times; 6
D0 FB   BNE *-3
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>A6 A6   LDX $A6
|<pre>FE 00 04 INC $0400,X
A2 0E   LDX #14
26 26   ROL $26
EA      NOP
66 26   ROR $26
CA      DEX
36 36    ROL $36,X \ &times; 6
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>A4 A4   LDY $A4
|<pre>FE 00 05 INC $0500,X
A0 0E   LDY #14
26 26   ROL $26
EA      NOP
66 26   ROR $26
88      DEY
36 36    ROL $36,X \ &times; 6
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
!colspan="2"|9 bytes
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>FE 00 07 INC $0700,X
08      PHP
26 26    ROL $26
A0 12   LDY #18
66 26   ROR $26
88      DEY
36 36    ROL $36,X \ &times; 6
D0 FB   BNE *-3
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>EA       NOP
08      PHP
04 04    NOP $04
A2 12   LDX #18
36 36    ROL $36,X \ &times; 7
CA      DEX
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
!colspan="2"|32 bytes
48      PHA
|-
A9      LDA #61
|<pre>EA       NOP
20 xx xx JSR delay_a_25_clocks
4C xx xx JMP *+3
68      PLA
36 36    ROL $36,X \ &times; 7
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|34 bytes
|-
|<pre>26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|45 bytes
|-
|<pre>18  ... CLC      &times; 43
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 43
50 00    BVC *+2</pre>||Clobbers V
|-
|<pre>85 xx   STA @zptemp
EA  ... NOP      &times; 43</pre>||Requires @zptemp
|-
|<pre>04 04    NOP $04
EA  ... NOP      &times; 43</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|10 bytes
!colspan="2"|46 bytes
|-
|-
|<pre>08      PHP
|<pre>4C xx xx JMP *+3
48      PHA
EA  ... NOP      &times; 43</pre>||Not relocatable code
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 103 cycles ===
=== 90 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #76
|<pre>A9      LDA #63
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>EA       NOP
|<pre>68       PLA
A2 14   LDX #20
A2 11   LDX #17
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>68       PLA
A0 14   LDY #20
A0 11   LDY #17
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08      PHP ;first loop only
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>38      SEC
|<pre>EA      NOP
A9 14   LDA #20
38      SEC
E9 01    SBC #1
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
F8      SED ;first loop only
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A2 13   LDX #19
A2 11   LDX #17
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A0 13   LDY #19
A0 11   LDY #17
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #69
A9      LDA #56
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #69
A9      LDA #56
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>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
48  ... PHA      &times; 2
18      CLC
D0 FB   BNE *-3</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
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
EA  ... NOP      &times; 3
18      CLC
18      CLC
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|<pre>EA      NOP
38      SEC
A9 11    LDA #17
E9 01    SBC #1
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 10    LDX #16
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 10    LDY #16
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 10    LDA #16
E9 01    SBC #1
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #62
A9      LDA #49
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
!colspan="2"|11 bytes
|-
|-
|<pre>98      TYA
|<pre>EA  ... NOP      &times; 2
48      PHA
48      PHA
A0 0D   LDY #13
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
85 xx    STA @zptemp
88       DEY
18       CLC
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>20 xx xx JSR @rts12
18      CLC
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
EA       NOP
10 FA    BPL *-4
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>08      PHP
18      CLC
18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB   BNE *-3
20 xx xx JSR @rts14
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
10 FA    BPL *-4
28       PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
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
18  ... CLC      &times; 2
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
00 00    BRK 0
00 00    BRK 0
10 FB   BPL *-3
90 FA   BCC *-4
68      PLA
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 12    LDA #18
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
08      PHP
08      PHP
48      PHA
38      SEC
38      SEC
A9 12   LDA #18
A9 69   LDA #$69 ;hides 'ADC #$5A'
E9 01    SBC #1
5A      NOP ;first loop only
D0 F9   BNE *-5
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB   BNE *-3
08      PHP      \ &times; 2
28      PLP      /
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
E6 xx    INC @zptemp
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
D0 FB    BNE *-3
68      PLA
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 FC    BNE *-2
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
48      PHA
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP      \ &times; 2
EA       NOP
28      PLP       /
18       CLC
10 F9   BPL *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
C5 C5    CMP $C5
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP     &times; 2
EA       NOP
18      CLC
18      CLC
D0 FA   BNE *-4
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|23 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 22</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|26 bytes
|-
|<pre>EA      NOP
68      PLA      \ &times; 3
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 14
10 EE    BPL *-16</pre>||Clobbers A, and Z&N
|-
!colspan="2"|30 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|45 bytes
|-
|<pre>EA  ... NOP      &times; 45</pre>||No requirements
|-
|-
|}
|}




=== 104 cycles ===
=== 91 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #77
|<pre>A2 12    LDX #18
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
CA       DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|6 bytes
|<pre>A0 12    LDY #18
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48       PHA
|<pre>A9       LDA #64
A0 14    LDY #20
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 14    LDX #20
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
|-
|-
|<pre>A6 A6   LDX $A6
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A2 14    LDX #20
0A       ASL A ;first loop only
CA       DEX
EA  ... NOP      &times; 2
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
30 FA   BMI *-4</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>A4 A4    LDY $A4
A0 14    LDY #20
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #70
A9      LDA #57
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #70
A9      LDA #57
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>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
10 FA   BPL *-4</pre>||Clobbers A, S, 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>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
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>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>68      PLA
20 xx xx JSR @rts14
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
18      CLC
10 F9   BPL *-5</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
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
85 xx    STA @zptemp
08      PHP
00 00    BRK 0
A2 10    LDX #16
10 F9   BPL *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
CA      DEX
|-
D0 FD   BNE *-1
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
28      PLP</pre>||Clobbers X, and S; and writes in stack
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
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
08      PHP
0A      ASL A ;first loop only
A0 10   LDY #16
EA      NOP
88       DEY
48       PHA
D0 FD   BNE *-1
30 FA   BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
26 26    ROL $26
28      PLP
66 26    ROR $26
D0 FB   BNE *-3
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
18      CLC
A6 A6   LDX $A6
A9 0A   LDA #$0A ;hides 'ASL A'
A2 10   LDX #16
08      PHP
28      PLP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A2 08   LDX #8
08      PHP
28      PLP
CA      DEX
CA      DEX
D0 F9   BNE *-5
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 08   LDY #8
A4 A4    LDY $A4
08      PHP
A0 10   LDY #16
28      PLP
88      DEY
88      DEY
D0 F9   BNE *-5
D0 FD   BNE *-1
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'
20 xx xx JSR @rts12
10 FA    BPL *-4
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
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #63
A9      LDA #50
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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"|11 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
48      PHA
E6 xx   INC @zptemp
38      SEC
28       PLP
A9 69   LDA #$69 ;hides 'ADC #$F8'
10 F9   BPL *-5
F8       SED ;first loop only
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
10 FC   BPL *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>08      PHP
 
A9 0A    LDA #$0A ;hides 'ASL A'
 
08      PHP
=== 105 cycles ===
E6 xx    INC @zptemp
{| class="wikitable testtable"
28      PLP
!colspan="2"|5 bytes
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>A9       LDA #78
|<pre>00 00    BRK 0
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|6 bytes
|<pre>00 00    BRK 0
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A2 0D    LDX #13
|<pre>68       PLA
48       PHA
98       TYA
CA       DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 0D    LDY #13
48      PHA
48      PHA
A0 0F    LDY #15
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>48   ... PHA     &times; 2
|-
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|<pre>EA   ... NOP     &times; 2
0A       ASL A ;first loop only
A0 14   LDY #20
04 04   NOP $04
88       DEY
30 FA   BMI *-4
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
68       PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA  ... NOP     &times; 2
A2 14   LDX #20
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #71
08      PHP
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
04 04    NOP $04
30 FA    BMI *-4
28       PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|11 bytes
A9      LDA #71
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>48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
24 24    BIT $24
28      PLP
18      CLC
18      CLC
A9 69   LDA #$69 ;hides 'ADC #$08'
10 F8   BPL *-6
08       PHP ;first loop only
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>08       PHP
|-
|<pre>EA       NOP
38      SEC
38      SEC
A9 14   LDA #20
A9 09   LDA #9
EA  ... NOP      &times; 2
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
!colspan="2"|12 bytes
08      PHP
A2 13    LDX #19
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
A0 13   LDY #19
98      TYA
48      PHA
A0 0E   LDY #14
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28       PLP</pre>||Clobbers Y; and writes in stack
68       PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>08       PHP
F6 F6    INC $F6,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
EA      NOP
18      CLC
18      CLC
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FB   BNE *-3
|-
68       PLA
!colspan="2"|9 bytes
28       PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>48       PHA
38      SEC
A9 13    LDA #19
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
38       SEC
48       PHA
A9 13   LDA #19
18      CLC
E9 01    SBC #1
A9 2A   LDA #$2A ;hides 'ROL A'
D0 F9   BNE *-5
20 xx xx JSR @rts14
28      PLP</pre>||Clobbers A; and writes in stack
90 FA   BCC *-4
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
48      PHA
A9       LDA #64
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; 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
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
EA       NOP
28       PLP
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
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
98       TYA
08       PHP
28      PLP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A0 0D   LDY #13
0A       ASL A ;first loop only
88       DEY
EA  ... NOP      &times; 2
D0 FD   BNE *-1
30 FA   BMI *-4
68      PLA
A8      TAY
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|23 bytes
 
 
=== 106 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A2 15    LDX #21
|<pre>68      PLA
CA       DEX
48       PHA
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
68  ... PLA      &times; 21</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>A0 15    LDY #21
!colspan="2"|26 bytes
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9       LDA #79
|<pre>68       PLA      \ &times; 13
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|31 bytes
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$08'
|<pre>EA      NOP
08      PHP ;first loop only
E6 xx    INC @zptemp
EA      NOP
36 36   ROL $36,X \ &times; 7
30 FB   BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|7 bytes
|<pre>FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 03 INC $0300,X
A9      LDA #72
36 36    ROL $36,X \ &times; 7
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 04 INC $0400,X
A9      LDA #72
36 36    ROL $36,X \ &times; 7
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 06 INC $0600,X
A2 0E   LDX #14
36 36   ROL $36,X \ &times; 7
EA      NOP
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
CA      DEX
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 07 INC $0700,X
A0 0E   LDY #14
36 36   ROL $36,X \ &times; 7
EA      NOP
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
88      DEY
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|32 bytes
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
|-
|-
!colspan="2"|9 bytes
|<pre>C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
|<pre>A5 A5   LDA $A5
|<pre>24 24   BIT $24
38      SEC
26 26    ROL $26
A9 14   LDA #20
66 26   ROR $26
E9 01   SBC #1
36 36   ROL $36,X \ &times; 2
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|-
|<pre>48      PHA
|<pre>04 04    NOP $04
A9 0A   LDA #$0A ;hides 'ASL A'
26 26   ROL $26
20 xx xx JSR @rts15
66 26    ROR $26
10 FA   BPL *-4
36 36   ROL $36,X \ &times; 2
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
!colspan="2"|33 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>4C xx xx JMP *+3
A9 0A   LDA #$0A ;hides 'ASL A'
26 26   ROL $26
20 xx xx JSR @rts14
66 26    ROR $26
18      CLC
36 36    ROL $36,X \ &times; 2
10 F9   BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>08      PHP
!colspan="2"|34 bytes
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
|<pre>26 26    ROL $26
A9 0A   LDA #$0A ;hides 'ASL A'
66 26   ROR $26
00 00   BRK 0
36 36   ROL $36,X \ &times; 3
18      CLC
76 36   ROR $36,X /
10 FA   BPL *-4
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|46 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18      CLC
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>18  ... CLC      &times; 44
08      PHP
90 00   BCC *+2</pre>||Clobbers C
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>B8  ... CLV      &times; 44
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>85 xx    STA @zptemp
48      PHA
EA  ... NOP      &times; 44</pre>||Requires @zptemp
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>EA  ... NOP      &times; 2
|<pre>04 04    NOP $04
08      PHP
EA  ... NOP      &times; 44</pre>||Requires support for unofficial opcodes
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|47 bytes
|-
|-
|<pre>48      PHA
|<pre>4C xx xx JMP *+3
08      PHP
EA  ... NOP      &times; 44</pre>||Not relocatable code
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68      PLA
28      PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|12 bytes
|}
|-
 
|<pre>EA  ... NOP      &times; 2
 
08      PHP
=== 92 cycles ===
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 107 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #80
|<pre>A9      LDA #65
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>A2 18   LDX #24 ;hides 'CLC'
|<pre>A2 0D   LDX #13
CA   ... DEX     &times; 2
EA      NOP
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
CA       DEX
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 18   LDY #24 ;hides 'CLC'
|<pre>A0 0D   LDY #13
88   ... DEY     &times; 2
EA      NOP
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
88       DEY
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #73
A9      LDA #58
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #73
A9      LDA #58
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
|<pre>68      PLA
18       CLC
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$08'
A9 69    LDA #$69 ;hides 'ADC #$F8'
08       PHP ;first loop only
F8       SED ;first loop only
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, C, V, and D
|-
|-
!colspan="2"|8 bytes
|<pre>48       PHA
|-
|<pre>68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
00 00    BRK 0
18      CLC
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>8C      TXA
|<pre>EA  ... NOP      &times; 2
48       PHA
38       SEC
A2 13   LDX #19
A9 69   LDA #$69 ;hides 'ADC #$F8'
CA       DEX
F8       SED ;first loop only
D0 FB   BNE *-3
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
08      PHP
A2 0C   LDX #12
A2 13   LDX #19
EA      NOP
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
08      PHP
A0 0C   LDY #12
A0 13   LDY #19
EA      NOP
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
48      PHA
2A      ROL A ;first loop only
A9       LDA #66
EA       NOP
20 xx xx JSR delay_a_25_clocks
F6 F6    INC $F6,X
68       PLA
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<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
|-
|-
|<pre>EA       NOP
|<pre>68       PLA
48      PHA
38      SEC
38      SEC
A9 13   LDA #19
A9 11   LDA #17
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
08      PHP
08      PHP
28      PLP
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
38      SEC
38      SEC
A9 13   LDA #19
A9 11   LDA #17
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #51
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'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
D0 FB   BNE *-3
90 FA   BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48  ... PHA      &times; 2
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
EA  ... NOP      &times; 2
28       PLP
18       CLC
D0 FB   BNE *-3
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 14,160: Line 15,767:
48      PHA
48      PHA
38      SEC
38      SEC
A9 12   LDA #18
A9 0F   LDA #15
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|23 bytes
|-
|<pre>68  ... PLA      &times; 23</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|27 bytes
|-
|<pre>68      PLA      \ &times; 3
48      PHA      /
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
!colspan="2"|31 bytes
|-
|<pre>EA      NOP
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|46 bytes
|-
|<pre>EA  ... NOP      &times; 46</pre>||No requirements
|-
|-
|}
|}




=== 108 cycles ===
=== 93 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #81
|<pre>A9      LDA #66
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
Line 14,179: Line 15,812:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 15   LDX #21
A2 12   LDX #18
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 15   LDY #21
A0 12   LDY #18
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 15   LDA #21
A9 12   LDA #18
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 14   LDX #20
A2 11   LDX #17
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 14   LDY #20
A0 11   LDY #17
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #74
A9      LDA #59
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #74
A9      LDA #59
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
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
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>00 00    BRK 0
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3</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'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
48  ... PHA      &times; 2
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; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #67
A9      LDA #52
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
|<pre>48   ... PHA     &times; 2
38       SEC
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$5A'
A9 69    LDA #$69 ;hides 'ADC #$F8'
5A       NOP ;first loop only
F8       SED ;first loop only
EA      NOP
10 FC   BPL *-2
D0 FB   BNE *-3
68      PLA</pre>||Clobbers S, Z&N, C, V, and D; 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
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48       PHA
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA     &times; 2
EA   ... NOP     &times; 2
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
|-
!colspan="2"|10 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38       SEC
08       PHP
A9 0E   LDA #14
18      CLC
EA       NOP
A9 69   LDA #$69 ;hides 'ADC #$F8'
E9 01   SBC #1
F8       SED ;first loop only
D0 F8    BNE *-6
10 FC   BPL *-2
68       PLA</pre>||Clobbers 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"|10 bytes
38      SEC
A9 0E    LDA #14
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>24 24    BIT $24
48      PHA
18      CLC
18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 69   LDA #$69 ;hides 'ADC #$F8'
20 xx xx JSR @rts15
F8      SED ;first loop only
10 FA   BPL *-4
10 FC   BPL *-2
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|<pre>18  ... CLC      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
26 26    ROL $26
66 26    ROR $26
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
|-
|<pre>08      PHP
A5 A5    LDA $A5
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<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
20 xx xx JSR @rts12
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
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; 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 FC    BNE *-2
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; 3
|<pre>48  ... PHA      &times; 2
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
08      PHP
A9 10   LDA #16
28      PLP
E9 01    SBC #1
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, C, and V; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>EA  ... NOP      &times; 3
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
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
B8      CLV
10 FA    BPL *-4
50 00    BVC *+2
D0 FA    BNE *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|24 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
68      PLA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
68  ... PLA      &times; 21</pre>||Clobbers A, S, and Z&N
08      PHP      \ &times; 2
28      PLP      /
10 F9    BPL *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|27 bytes
 
 
=== 109 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #82
|<pre>EA       NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68      PLA      \ &times; 13
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|32 bytes
|-
|-
|<pre>48      PHA
|<pre>C5 C5    CMP $C5
A2 15   LDX #21
36 36   ROL $36,X \ &times; 3
CA      DEX
76 36    ROR $36,X /
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>24 24    BIT $24
A0 15   LDY #21
36 36    ROL $36,X \ &times; 3
88      DEY
76 36    ROR $36,X /
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|<pre>E6 xx    INC @zptemp
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA      NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA      NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA      NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>04 04    NOP $04
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|33 bytes
|-
|<pre>4C xx xx JMP *+3
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|34 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|47 bytes
|-
|<pre>18  ... CLC      &times; 45
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 45
50 00    BVC *+2</pre>||Clobbers V
|-
|<pre>85 xx    STA @zptemp
EA  ... NOP      &times; 45</pre>||Requires @zptemp
|-
|<pre>04 04    NOP $04
EA  ... NOP      &times; 45</pre>||Requires support for unofficial opcodes
|-
!colspan="2"|48 bytes
|-
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 45</pre>||Not relocatable code
|-
|}
 
 
=== 94 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #67
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 12    LDX #18
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 12   LDY #18
88      DEY
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 A6    LDX $A6
|<pre>A6 A6    LDX $A6
A2 15   LDX #21
A2 12   LDX #18
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
A0 15   LDY #21
A0 12   LDY #18
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL 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>48      PHA
|<pre>48      PHA
A9      LDA #75
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
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      LDA #75
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>18      CLC
!colspan="2"|8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$08'
A9 0D   LDA #13
08      PHP ;first loop only
EA      NOP
EA      NOP
30 FB   BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
E9 01   SBC #1
|-
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
!colspan="2"|8 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
08      PHP       \ &times; 2
18       CLC
28       PLP       /
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; and writes in stack
|-
|<pre>18       CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
EA       NOP
69 01    ADC #1
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
|<pre>48       PHA
A2 13   LDX #19
A9 0A   LDA #$0A ;hides 'ASL A'
CA       DEX
EA  ... NOP      &times; 2
D0 FB   BNE *-3
18       CLC
F6 xx    INC @zptemp,X
D0 FA   BNE *-4
28       PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
EA  ... NOP      &times; 2
28       PLP
18       CLC
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<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
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA     &times; 2
EA   ... NOP     &times; 2
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
08      PHP
08      PHP
A2 13   LDX #19
A2 0C   LDX #12
EA      NOP
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
08      PHP
08      PHP
A0 13   LDY #19
A0 0C   LDY #12
EA      NOP
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9       LDA #53
08      PHP
20 xx xx JSR delay_a_25_clocks
28      PLP
D0 FB    BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|}
!colspan="2"|11 bytes
 
 
=== 110 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #83
|<pre>48      PHA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
98      TYA
48      PHA
A0 0F    LDY #15
88      DEY
D0 FD    BNE *-1
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 0B    LDA #11
EA      NOP
E9 01    SBC #1
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
!colspan="2"|24 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 23</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|27 bytes
|-
|<pre>68      PLA      \ &times; 5
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
!colspan="2"|32 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|47 bytes
|-
|<pre>EA  ... NOP      &times; 47</pre>||No requirements
|-
|}
 
 
=== 95 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #68
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 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>68      PLA
|<pre>68      PLA
A0 15   LDY #21
A2 12   LDX #18
88       DEY
CA       DEX
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 15   LDX #21
A0 12   LDY #18
CA       DEX
88       DEY
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A2 15   LDX #21
A2 12   LDX #18
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A0 15   LDY #21
A0 12   LDY #18
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #76
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
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      LDA #76
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08      PHP ;first loop only
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
|<pre>48       PHA
38      SEC
38      SEC
A9 15   LDA #21
A9 69   LDA #$69 ;hides 'ADC #$F8'
E9 01   SBC #1
F8      SED ;first loop only
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
10 FC   BPL *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
90 00    BCC *+2
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 14   LDY #20
A2 11   LDX #17
88       DEY
CA       DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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 14   LDX #20
A0 11   LDY #17
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 14,528: Line 16,315:
|<pre>48      PHA
|<pre>48      PHA
38      SEC
38      SEC
A9 14   LDA #20
A9 11   LDA #17
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
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
38      SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #69
A9      LDA #54
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
!colspan="2"|11 bytes
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
18      CLC
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
48      PHA
A0 0D   LDY #13
A9 69   LDA #$69 ;hides 'ADC #$18'
EA       NOP
18       CLC ;first loop only
88      DEY
E6 xx    INC @zptemp
D0 FA    BNE *-4
90 FA    BCC *-4
68      PLA
68      PLA
A8       TAY
28       PLP</pre>||Requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
48      PHA
48      PHA
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 @rts12
10 FA    BPL *-4
10 FA    BPL *-4
68      PLA
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28      PLP
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
00 00   BRK 0
0A      ASL A ;first loop only
10 FB   BPL *-3
04 04   NOP $04
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08       PHP
18       CLC
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
EA      NOP
A9 12   LDA #18
08      PHP
E9 01    SBC #1
28      PLP
D0 F9   BNE *-5
90 FA   BCC *-4
68      PLA
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,604: Line 16,369:
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP      \ &times; 2
B8       CLV
28      PLP      /
50 00    BVC *+2
10 F9   BPL *-5
D0 FA   BNE *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|24 bytes
 
 
=== 111 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>68      PLA
0A       ASL A ;first loop only
48       PHA
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
68  ... PLA      &times; 22</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>A0 16    LDY #22
!colspan="2"|27 bytes
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 16   LDX #22
|<pre>68      PLA      \ &times; 4
CA       DEX
48      PHA      /
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
A9 09   LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA  ... NOP      &times; 14
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|32 bytes
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>E6 xx   INC @zptemp
08      PHP
36 36    ROL $36,X \ &times; 3
28      PLP
76 36    ROR $36,X /
18      CLC
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|33 bytes
A9      LDA #77
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>EA       NOP
A9      LDA #77
C5 C5    CMP $C5
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 3
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|8 bytes
|<pre>EA      NOP
24 24    BIT $24
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|-
|<pre>48      PHA
|<pre>FE 00 02 INC $0200,X
08      PHP
26 26    ROL $26
A0 14   LDY #20
66 26   ROR $26
88      DEY
36 36    ROL $36,X \ &times; 2
D0 FB   BNE *-3
76 36   ROR $36,X /
28      PLP</pre>||Clobbers Y, and S; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 03 INC $0300,X
08      PHP
26 26    ROL $26
A2 14   LDX #20
66 26   ROR $26
CA      DEX
36 36    ROL $36,X \ &times; 2
D0 FB   BNE *-3
76 36   ROR $36,X /
28      PLP</pre>||Clobbers X, and S; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
!colspan="2"|9 bytes
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 2
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 05 INC $0500,X
A4 A4   LDY $A4
26 26   ROL $26
A0 14   LDY #20
66 26   ROR $26
88      DEY
36 36    ROL $36,X \ &times; 2
D0 FB   BNE *-3
76 36   ROR $36,X /
28      PLP</pre>||Clobbers Y; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 06 INC $0600,X
A6 A6   LDX $A6
26 26   ROL $26
A2 14   LDX #20
66 26   ROR $26
CA      DEX
36 36    ROL $36,X \ &times; 2
D0 FB   BNE *-3
76 36   ROR $36,X /
28      PLP</pre>||Clobbers X; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 07 INC $0700,X
48      PHA
26 26    ROL $26
A9      LDA #70
66 26    ROR $26
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 2
68      PLA
76 36    ROR $36,X /
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|10 bytes
|<pre>EA      NOP
04 04    NOP $04
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
!colspan="2"|34 bytes
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>EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
20 xx xx JSR @rts14
36 36   ROL $36,X \ &times; 3
18      CLC
76 36   ROR $36,X /
10 F9   BPL *-5
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|35 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
00 00    BRK 0
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
36 36   ROL $36,X \ &times; 4
85 xx   STA @zptemp
76 36   ROR $36,X /
00 00    BRK 0
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
!colspan="2"|48 bytes
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>08      PHP
|<pre>18  ... CLC      &times; 46
A9 0A    LDA #$0A ;hides 'ASL A'
90 00    BCC *+2</pre>||Clobbers C
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>68      PLA
|<pre>B8  ... CLV      &times; 46
8C      TXA
50 00   BVC *+2</pre>||Clobbers V
48      PHA
A2 13   LDX #19
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>85 xx    STA @zptemp
38      SEC
EA   ... NOP     &times; 46</pre>||Requires @zptemp
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>04 04   NOP $04
08      PHP
EA  ... NOP     &times; 46</pre>||Requires support for unofficial opcodes
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|49 bytes
|-
|-
|<pre>08      PHP
|<pre>4C xx xx JMP *+3
48      PHA
EA  ... NOP      &times; 46</pre>||Not relocatable code
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 112 cycles ===
=== 96 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #85
|<pre>A2 13    LDX #19
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>A0 13    LDY #19
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #69
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
|-
|<pre>A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #78
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
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      LDA #78
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|8 bytes
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>08      PHP
A2 15    LDX #21
A0 88    LDY #136 ;hides 'DEY'
CA      DEX
EA   ... NOP     &times; 2
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
30 FB    BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>08      PHP
|-
A2 0A   LDX #10 ;hides 'ASL A'
|<pre>EA  ... NOP      &times; 3
EA      NOP
A2 15   LDX #21
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>18       CLC
A0 15    LDY #21
A9 0A   LDA #$0A ;hides 'ASL A'
88      DEY
20 xx xx JSR @rts14
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>68       PLA
38      SEC
A9 15   LDA #21
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
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</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
10 FB    BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>98       TYA
|<pre>68  ... PLA      &times; 2
48      PHA
38      SEC
A0 14   LDY #20
A9 69    LDA #$69 ;hides 'ADC #$F8'
88      DEY
F8       SED ;first loop only
D0 FB    BNE *-3
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, C, V, and D
68       PLA
|-
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|<pre>48      PHA
38      SEC
A9 12   LDA #18
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
28       PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
38      SEC
A9 12    LDA #18
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08       PHP
|<pre>18       CLC
A0 0D   LDY #13
A9 0A   LDA #$0A ;hides 'ASL A'
C5 C5    CMP $C5
08       PHP      \ &times; 2
88       DEY
28      PLP      /
D0 F9    BNE *-5
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0D   LDX #13
A2 0B   LDX #11
C5 C5    CMP $C5
C5 C5    CMP $C5
CA      DEX
CA      DEX
D0 F9   BNE *-5
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 #$18'
18      CLC ;first loop only
F6 F6    INC $F6,X
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>08      PHP
A9 69    LDA #$69 ;hides 'ADC #$18'
18      CLC ;first loop only
F6 F6    INC $F6,X
90 FA    BCC *-4
28      PLP</pre>||Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #71
A9      LDA #55
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
Line 14,861: Line 16,617:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>48      PHA
18      CLC
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>EA      NOP
|<pre>EA      NOP
68      PLA
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 14   LDA #20
EA  ... NOP      &times; 2
E9 01    SBC #1
18      CLC
D0 F9   BNE *-5
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
18       CLC
38       SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 14   LDA #20
EA  ... NOP      &times; 2
E9 01    SBC #1
18      CLC
D0 F9   BNE *-5
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
98      TYA
48      PHA
48      PHA
38      SEC
A0 0B    LDY #11
A9 13    LDA #19
EA      NOP
88      DEY
D0 FC    BNE *-2
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; 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
EA      NOP
B0 FB    BCS *-3
68      PLA
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
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
38      SEC
A9 0F   LDA #15
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|24 bytes
|-
|<pre>68  ... PLA      &times; 24</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|28 bytes
|-
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
68      PLA      \ &times; 12
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|32 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|48 bytes
|-
|<pre>EA  ... NOP      &times; 48</pre>||No requirements
|-
|-
|}
|}




=== 113 cycles ===
=== 97 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #86
|<pre>A9      LDA #70
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>18      CLC
|<pre>A2 0C   LDX #12
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
48       PHA
0A      ASL A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>A2 10   LDX #16
EA       NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 10   LDY #16
|<pre>A0 0C   LDY #12
EA       NOP
48       PHA
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08       PHP
|<pre>18       CLC
A0 15   LDY #21
A9 0A   LDA #$0A ;hides 'ASL A'
88       DEY
08      PHP
D0 FB    BNE *-3
28       PLP
28      PLP</pre>||Clobbers Y; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A2 0C   LDX #12
A2 15   LDX #21
C5 C5    CMP $C5
CA      DEX
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and C
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A0 0C    LDY #12
A9      LDA #79
C5 C5    CMP $C5
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, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>A2 0C    LDX #12
A9      LDA #79
24 24    BIT $24
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, Z&N, and V
|-
|-
!colspan="2"|8 bytes
|<pre>A0 0C    LDY #12
24 24    BIT $24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>18      CLC
|<pre>A2 08   LDX #8
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
18       CLC
CA       DEX
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>A0 08    LDY #8
08      PHP
28      PLP
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A2 0C    LDX #12
48      PHA
A5 A5    LDA $A5
A9      LDA #72
CA       DEX
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
68       PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>A0 0C    LDY #12
A5 A5    LDA $A5
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>A2 0C   LDX #12
38      SEC
A4 A4   LDY $A4
A9 14   LDA #20
CA      DEX
E9 01   SBC #1
D0 FB   BNE *-3</pre>||Clobbers X, Y, and Z&N
D0 F9   BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A2 0C   LDX #12
08      PHP
85 xx   STA @zptemp
38      SEC
CA      DEX
A9 14   LDA #20
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N; and requires @zptemp
E9 01   SBC #1
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>A0 0C    LDY #12
85 xx    STA @zptemp
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>24 24    BIT $24
|<pre>48      PHA
48      PHA
A9       LDA #63
38       SEC
20 xx xx JSR delay_a_25_clocks
A9 14    LDA #20
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
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
A5 A5    LDA $A5
A9       LDA #63
38       SEC
20 xx xx JSR delay_a_25_clocks
A9 14    LDA #20
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A2 0C    LDX #12
48      PHA
04 04   NOP $04
A9 0A   LDA #$0A ;hides 'ASL A'
CA      DEX
20 xx xx JSR @rts15
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
10 FA   BPL *-4
68      PLA
28      PLP</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A0 0C    LDY #12
18      CLC
04 04   NOP $04
A9 0A   LDA #$0A ;hides 'ASL A'
88       DEY
20 xx xx JSR @rts14
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
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
!colspan="2"|8 bytes
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18      CLC
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA  ... NOP      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A2 12    LDX #18
EA  ... NOP      &times; 3
CA       DEX
18      CLC
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
D0 F9   BNE *-5
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>EA  ... NOP      &times; 3
A0 12   LDY #18
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A9 69   LDA #$69 ;hides 'ADC #$18'
08      PHP
18       CLC ;first loop only
48      PHA
EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
08       PHP
90 F9   BCC *-5</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
28       PLP
D0 FB   BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>A9 69    LDA #$69 ;hides 'ADC #$18'
 
18      CLC ;first loop only
 
FE 00 02 INC $0200,X
=== 114 cycles ===
90 F9    BCC *-5</pre>||Clobbers A, Z&N, C, and V; and requires writable $200-$2FF
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #87
|<pre>A9 69    LDA #$69 ;hides 'ADC #$18'
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
18      CLC ;first loop only
FE 00 03 INC $0300,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, C, and V; and requires writable $300-$3FF
|-
|-
!colspan="2"|6 bytes
|<pre>A9 69    LDA #$69 ;hides 'ADC #$18'
18      CLC ;first loop only
FE 00 04 INC $0400,X
90 F9    BCC *-5</pre>||Clobbers A, Z&N, C, and V; and requires writable $400-$4FF
|-
|-
|<pre>48      PHA
|<pre>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
FE 00 05 INC $0500,X
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, Z&N, C, and V; and requires writable $500-$5FF
|-
|-
|<pre>48      PHA
|<pre>A9 69   LDA #$69 ;hides 'ADC #$18'
A2 16   LDX #22
18       CLC ;first loop only
CA       DEX
FE 00 06 INC $0600,X
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, Z&N, C, and V; and requires writable $600-$6FF
|-
|-
|<pre>48      PHA
|<pre>A9 69   LDA #$69 ;hides 'ADC #$18'
A0 16   LDY #22
18       CLC ;first loop only
88       DEY
FE 00 07 INC $0700,X
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, Z&N, C, and V; and requires writable $700-$7FF
|-
|-
!colspan="2"|7 bytes
|<pre>68      PLA
38      SEC
A9 12    LDA #18
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>A5 A5    LDA $A5
!colspan="2"|9 bytes
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>A4 A4   LDY $A4
|<pre>EA      NOP
A0 16    LDY #22
48      PHA
88       DEY
38      SEC
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC   BPL *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>A6 A6   LDX $A6
|<pre>18      CLC
A2 16   LDX #22
A9 0A   LDA #$0A ;hides 'ASL A'
CA       DEX
18      CLC
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
90 00   BCC *+2
18       CLC
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9       LDA #80
08      PHP
20 xx xx JSR delay_a_25_clocks
38      SEC
68       PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA   ... NOP     &times; 2
A9      LDA #80
08      PHP
20 xx xx JSR delay_a_25_clocks
A2 11   LDX #17
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
CA       DEX
|-
D0 FD   BNE *-1
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 18    LDY #24 ;hides 'CLC'
88   ... DEY     &times; 2
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 18   LDX #24 ;hides 'CLC'
CA   ... DEX     &times; 2
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
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
A0 11    LDY #17
18       CLC
88       DEY
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FD   BNE *-1
|-
28      PLP</pre>||Clobbers Y; and writes in stack
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #73
A9      LDA #56
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
Line 15,130: Line 16,917:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
98      TYA
48      PHA
48      PHA
A0 14   LDY #20
18      CLC
88       DEY
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 FB   BNE *-3
F8       SED ;first loop only
10 FC   BPL *-2
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
28       PLP</pre>||Writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|25 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
8C       TXA
68       PLA
48      PHA
48      PHA
A2 13    LDX #19
68   ... PLA     &times; 22</pre>||Clobbers A, S, and Z&N
CA      DEX
|-
D0 FB    BNE *-3
!colspan="2"|28 bytes
68       PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>EA       NOP
08       PHP
68      PLA      \ &times; 4
38       SEC
48       PHA       /
A9 14   LDA #20
A9 09   LDA #$09 ;hides 'ORA #$EA'
E9 01    SBC #1
EA      NOP ;first loop only
D0 F9   BNE *-5
EA  ... NOP      &times; 14
28      PLP</pre>||Clobbers A; and writes in stack
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|12 bytes
!colspan="2"|33 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
E6 xx   INC @zptemp
48      PHA
36 36   ROL $36,X \ &times; 3
38      SEC
76 36   ROR $36,X /
A9 13   LDA #19
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
E9 01   SBC #1
D0 F9   BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>FE 00 02 INC $0200,X
 
36 36    ROL $36,X \ &times; 3
 
76 36    ROR $36,X /
=== 115 cycles ===
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #88
|<pre>FE 00 03 INC $0300,X
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
!colspan="2"|6 bytes
|<pre>FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>68      PLA
|<pre>FE 00 05 INC $0500,X
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
36 36   ROL $36,X \ &times; 3
0A      ASL A ;first loop only
76 36    ROR $36,X /
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>68      PLA
|<pre>FE 00 06 INC $0600,X
A2 16   LDX #22
36 36   ROL $36,X \ &times; 3
CA      DEX
76 36    ROR $36,X /
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>68      PLA
|<pre>FE 00 07 INC $0700,X
A0 16   LDY #22
36 36   ROL $36,X \ &times; 3
88      DEY
76 36    ROR $36,X /
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
!colspan="2"|7 bytes
!colspan="2"|34 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>C5 C5    CMP $C5
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
26 26   ROL $26
0A      ASL A ;first loop only
66 26    ROR $26
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
36 36    ROL $36,X \ &times; 7
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>24 24    BIT $24
A0 16   LDY #22
26 26    ROL $26
88      DEY
66 26    ROR $26
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
36 36    ROL $36,X \ &times; 7
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP     &times; 2
|<pre>04 04    NOP $04
A2 16   LDX #22
26 26    ROL $26
CA      DEX
66 26    ROR $26
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
36 36    ROL $36,X \ &times; 7
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
!colspan="2"|35 bytes
A9      LDA #81
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>4C xx xx JMP *+3
A9      LDA #81
26 26    ROL $26
20 xx xx JSR delay_a_25_clocks
66 26    ROR $26
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|8 bytes
!colspan="2"|36 bytes
|-
|<pre>EA  ... NOP      &times; 2
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|49 bytes
|-
|<pre>18  ... CLC      &times; 47
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 47
50 00    BVC *+2</pre>||Clobbers V
|-
|<pre>85 xx    STA @zptemp
EA  ... NOP      &times; 47</pre>||Requires @zptemp
|-
|<pre>04 04    NOP $04
EA  ... NOP      &times; 47</pre>||Requires support for unofficial opcodes
|-
|}
 
 
=== 98 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #71
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 13    LDX #19
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
A0 13    LDY #19
A2 15   LDX #21
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 12   LDX #18
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A0 12   LDY #18
A0 15   LDY #21
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9      LDA #64
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 #64
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
08      PHP
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; 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
|-
|-
|<pre>68      PLA
|<pre>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38      SEC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 15   LDA #21
0A      ASL A ;first loop only
E9 01    SBC #1
EA  ... NOP      &times; 2
D0 F9   BNE *-5
30 FA   BMI *-4
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
|<pre>08      PHP
38      SEC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 15   LDA #21
0A      ASL A ;first loop only
E9 01    SBC #1
EA  ... NOP      &times; 2
D0 F9   BNE *-5
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #74
A9      LDA #57
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
18      CLC
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
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>00 00   BRK 0
|<pre>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
90 00    BCC *+2
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
!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
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Requires @rts12; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
E6 xx    INC @zptemp
28      PLP
28      PLP
D0 FB   BNE *-3
10 F9   BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>00 00    BRK 0
|-
08      PHP
|<pre>08      PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
EA      NOP
18      CLC
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>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</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 0E   LDA #14
08       PHP
EA       NOP
24 24   BIT $24
E9 01   SBC #1
28      PLP
D0 F8    BNE *-6
18      CLC
10 F8    BPL *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|25 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 24</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|28 bytes
|-
|<pre>68      PLA      \ &times; 14
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|33 bytes
|-
|<pre>EA      NOP
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|49 bytes
|-
|<pre>EA  ... NOP      &times; 49</pre>||No requirements
|-
|-
|}
|}




=== 116 cycles ===
=== 99 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9       LDA #72
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|6 bytes
|-
|-
|<pre>A2 17   LDX #23
|<pre>A2 0E   LDX #14
EA      NOP
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 17   LDY #23
|<pre>A0 0E   LDY #14
EA      NOP
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>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>48      PHA
|<pre>48      PHA
A9      LDA #82
A9      LDA #65
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #82
A9      LDA #65
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>A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18      CLC
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
A2 15    LDX #21
28       PLP
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FB    BNE *-3
|-
28      PLP</pre>||Clobbers X, and S; and writes in stack
!colspan="2"|8 bytes
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
A0 15    LDY #21
28       PLP
88       DEY
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>08      PHP
A2 0D    LDX #13
EA      NOP
CA      DEX
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 A4    LDY $A4
A0 0D   LDY #13
A0 15   LDY #21
EA      NOP
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|9 bytes
A6 A6    LDX $A6
A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 0C   LDA #12
08      PHP
24 24    BIT $24
28      PLP
E9 01    SBC #1
18      CLC
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #75
A9      LDA #58
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
|<pre>68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 00    BCC *+2
00 00    BRK 0
90 FB   BCC *-3
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
18      CLC
18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, and C
00 00    BRK 0
90 FB    BCC *-3
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>68       PLA
48       PHA
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>48   ... PHA     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
08      PHP
28      PLP
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
00 00    BRK 0
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
10 FB   BPL *-3
28      PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA   ... NOP      &times; 2
A5 A5   LDA $A5
48      PHA
38       SEC
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
18      CLC
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
90 00   BCC *+2
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18      CLC
18      CLC
10 F9    BPL *-5
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
20 xx xx JSR @rts15
38      SEC
18       CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
10 F9   BPL *-5
F8       SED ;first loop only
28      PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
10 FC   BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18      CLC
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 F4   LDA #244 ;hides 'NOP zp,X'
2A      ROL A ;first loop only
EA      NOP
EA      NOP
69 01   ADC #1
F6 F6   INC $F6,X
D0 F9    BNE *-5
B0 F9    BCS *-5
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 @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
00 00... BRK 0    &times; 2
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|11 bytes
18      CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
EA      NOP
69 01    ADC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>68       PLA
|<pre>EA       NOP
98       TYA
08       PHP
48      PHA
48      PHA
A0 14   LDY #20
18      CLC
88       DEY
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 FB   BNE *-3
F8       SED ;first loop only
10 FC   BPL *-2
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
28       PLP</pre>||Writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|25 bytes
|-
|-
|<pre>98       TYA
|<pre>68       PLA
48      PHA
48      PHA
A0 0D    LDY #13
68   ... PLA     &times; 23</pre>||Clobbers A, S, and Z&N
A5 A5    LDA $A5
88      DEY
D0 F9    BNE *-5
68       PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
!colspan="2"|29 bytes
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; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>68      PLA      \ &times; 4
08       PHP
48      PHA       /
A9 0A   LDA #$0A ;hides 'ASL A'
36 36    ROL $36,X
08       PHP
76 36    ROR $36,X
28      PLP
A9 09   LDA #$09 ;hides 'ORA #$EA'
D0 FB   BNE *-3
EA       NOP ;first loop only
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
EA  ... NOP      &times; 12
10 F0   BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
|<pre>48  ... PHA      &times; 3
!colspan="2"|34 bytes
38      SEC
A9 14    LDA #20
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      &times; 2
|<pre>C5 C5    CMP $C5
08      PHP
36 36    ROL $36,X \ &times; 8
38      SEC
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
A9 14   LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>24 24    BIT $24
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>08      PHP
|<pre>E6 xx    INC @zptemp
28      PLP
26 26    ROL $26
08      PHP
66 26    ROR $26
48      PHA
36 36   ROL $36,X \ &times; 7
A9 0A   LDA #$0A ;hides 'ASL A'
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
08      PHP
28      PLP
D0 FB   BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>EA      NOP
 
FE 00 02 INC $0200,X
 
36 36    ROL $36,X \ &times; 3
=== 117 cycles ===
76 36    ROR $36,X /
{| class="wikitable testtable"
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #90
|<pre>EA       NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
!colspan="2"|7 bytes
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>A2 0D   LDX #13 ;hides 'ORA abs'
|<pre>EA      NOP
A5 00   LDA $0
FE 00 05 INC $0500,X
CA      DEX
36 36   ROL $36,X \ &times; 3
D0 FA    BNE *-4</pre>||Clobbers A, X, and Z&N
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>A0 0D   LDY #13 ;hides 'ORA abs'
|<pre>EA      NOP
A5 00   LDA $0
FE 00 06 INC $0600,X
88      DEY
36 36   ROL $36,X \ &times; 3
D0 FA    BNE *-4</pre>||Clobbers A, Y, and Z&N
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>A2 16    LDX #22
|<pre>EA      NOP
CA      DEX
FE 00 07 INC $0700,X
D0 FB   BNE *-3
36 36   ROL $36,X \ &times; 3
F6 xx   INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>04 04    NOP $04
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|35 bytes
|-
|<pre>4C xx xx JMP *+3
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|37 bytes
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 3
A9      LDA #83
36 36    ROL $36,X \ &times; 4
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>08      PHP
!colspan="2"|50 bytes
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>18   ... CLC     &times; 48
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
90 00   BCC *+2</pre>||Clobbers C
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     &times; 2
|<pre>B8   ... CLV     &times; 48
A0 16   LDY #22
50 00   BVC *+2</pre>||Clobbers V
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|}
A2 16    LDX #22
 
CA      DEX
 
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
=== 100 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
!colspan="2"|8 bytes
|<pre>A9      LDA #73
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      &times; 3
!colspan="2"|6 bytes
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>EA  ... NOP      &times; 3
|<pre>A2 0B   LDX #11
A2 16   LDX #22
68      PLA
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>A0 0B   LDY #11
A0 16   LDY #22
68      PLA
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>8C      TXA
|<pre>EA  ... NOP      &times; 2
48      PHA
A2 13   LDX #19
A2 15   LDX #21
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 13   LDY #19
A0 15   LDY #21
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>48      PHA
08       PHP
A9       LDA #66
A2 15    LDX #21
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
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9      LDA #66
A9      LDA #76
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Clobbers A; 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
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A2 12    LDX #18
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 12    LDY #18
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
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
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
38      SEC
A9 15   LDA #21
A9 12   LDA #18
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
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>EA      NOP
|<pre>08      PHP
08      PHP
38      SEC
38      SEC
A9 15   LDA #21
A9 12   LDA #18
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
38       SEC
A9       LDA #59
A9 14    LDA #20
20 xx xx JSR delay_a_25_clocks
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|}
!colspan="2"|10 bytes
 
 
=== 118 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #91
|<pre>E6 xx    INC @zptemp
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
90 00    BCC *+2
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|6 bytes
|<pre>EA  ... NOP      &times; 2
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>18      CLC
!colspan="2"|11 bytes
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>EA      NOP
|<pre>EA      NOP
A2 17   LDX #23
A5 A5   LDA $A5
CA       DEX
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
18       CLC
|-
90 00   BCC *+2
|<pre>EA      NOP
18       CLC
A0 17    LDY #23
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
88       DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>F6 F6   INC $F6,X
|-
48      PHA
|<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
|-
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
EA  ... NOP      &times; 2
28      PLP
18      CLC
18      CLC
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; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48      PHA
08      PHP
48      PHA
48      PHA
A9       LDA #77
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC    BPL *-2
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 24    BIT $24
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18      CLC
18      CLC
10 F9   BPL *-5
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FC   BPL *-2
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|25 bytes
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</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>68   ... PLA     &times; 25</pre>||Clobbers A, S, and Z&N
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</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|29 bytes
08      PHP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>EA      NOP
68      PLA      \ &times; 14
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|34 bytes
08      PHP
|-
28      PLP
|<pre>26 26    ROL $26
08      PHP
66 26    ROR $26
48      PHA
36 36    ROL $36,X \ &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
76 36    ROR $36,X /
08      PHP
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
28      PLP
|-
D0 FB    BNE *-3
!colspan="2"|50 bytes
68      PLA
|-
28      PLP</pre>||Writes in stack
|<pre>EA  ... NOP      &times; 50</pre>||No requirements
|-
|-
|}
|}




=== 119 cycles ===
=== 101 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #92
|<pre>A2 14    LDX #20
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
CA       DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|6 bytes
|<pre>A0 14    LDY #20
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A9       LDA #74
08       PHP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
28      PLP
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
A2 17    LDX #23
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
|-
|<pre>A5 A5    LDA $A5
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>A6 A6    LDX $A6
A2 17    LDX #23
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #85
A9      LDA #67
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #85
A9      LDA #67
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>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
48      PHA
48      PHA
08      PHP
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
28      PLP
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>38      SEC
A9 0E    LDA #14
EA      NOP
E9 01    SBC #1
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
24 24    BIT $24
28      PLP
28      PLP
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
!colspan="2"|9 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>08       PHP
|<pre>18       CLC
A2 15   LDX #21
A9 0A   LDA #$0A ;hides 'ASL A'
CA       DEX
00 00    BRK 0
D0 FB   BNE *-3
18       CLC
F6 xx    INC @zptemp,X
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; 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
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
A0 15    LDY #21
28       PLP
88       DEY
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
08      PHP
A2 15   LDX #21
A2 12   LDX #18
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>48      PHA
08      PHP
A0 12    LDY #18
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>EA      NOP
!colspan="2"|9 bytes
8C      TXA
48      PHA
A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
A2 15   LDX #21
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 12   LDX #18
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>08      PHP
08      PHP
A4 A4    LDY $A4
A0 15   LDY #21
A0 12   LDY #18
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
20 xx xx JSR @rts14
90 FB   BCC *-3
10 FA   BPL *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; 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
08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
20 xx xx JSR @rts14
90 FB   BCC *-3
10 FA   BPL *-4
28      PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #60
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"|10 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
08      PHP       \ &times; 2
A0 14    LDY #20
28       PLP       /
88       DEY
10 F9   BPL *-5
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
08      PHP
38      SEC
38      SEC
A9 15   LDA #21
A9 0D   LDA #13
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
90 00    BCC *+2
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
90 00    BCC *+2
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 14   LDA #20
EA  ... NOP      &times; 2
E9 01    SBC #1
18      CLC
D0 F9   BNE *-5
D0 FA   BNE *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>EA  ... NOP      &times; 3
 
A9 0A    LDA #$0A ;hides 'ASL A'
 
18      CLC
=== 120 cycles ===
90 00    BCC *+2
{| class="wikitable testtable"
18      CLC
!colspan="2"|5 bytes
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|26 bytes
|-
|-
|<pre>A9       LDA #93
|<pre>EA       NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68      PLA
48      PHA
68  ... PLA      &times; 23</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|29 bytes
|-
|-
|<pre>A2 11   LDX #17
|<pre>68      PLA      \ &times; 6
EA      NOP
48      PHA      /
CA      DEX
A9 09   LDA #$09 ;hides 'ORA #$EA'
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0   BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
|<pre>A0 11    LDY #17
!colspan="2"|34 bytes
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>E6 xx    INC @zptemp
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
36 36   ROL $36,X \ &times; 8
0A      ASL A ;first loop only
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
B0 FC   BCS *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|35 bytes
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>EA       NOP
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
C5 C5   CMP $C5
0A      ASL A ;first loop only
36 36    ROL $36,X \ &times; 8
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9      LDA #86
24 24    BIT $24
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 8
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>08      PHP
|<pre>FE 00 02 INC $0200,X
A9      LDA #86
26 26    ROL $26
20 xx xx JSR delay_a_25_clocks
66 26    ROR $26
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
!colspan="2"|8 bytes
|<pre>FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 7
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 04 INC $0400,X
18      CLC
26 26    ROL $26
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
66 26   ROR $26
0A      ASL A ;first loop only
36 36    ROL $36,X \ &times; 7
D0 FC   BNE *-2
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 05 INC $0500,X
18      CLC
26 26    ROL $26
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
66 26   ROR $26
0A      ASL A ;first loop only
36 36    ROL $36,X \ &times; 7
D0 FC   BNE *-2
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 06 INC $0600,X
A0 10   LDY #16
26 26   ROL $26
EA      NOP
66 26    ROR $26
88      DEY
36 36    ROL $36,X \ &times; 7
D0 FA   BNE *-4
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 07 INC $0700,X
A2 10   LDX #16
26 26   ROL $26
EA      NOP
66 26    ROR $26
CA      DEX
36 36    ROL $36,X \ &times; 7
D0 FA   BNE *-4
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>EA      NOP
04 04    NOP $04
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
!colspan="2"|36 bytes
48      PHA
A9      LDA #79
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
4C xx xx JMP *+3
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>48      PHA
!colspan="2"|38 bytes
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|51 bytes
08      PHP
48      PHA
38      SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>18  ... CLC      &times; 49
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>08      PHP
|<pre>B8  ... CLV      &times; 49
24 24   BIT $24
50 00   BVC *+2</pre>||Clobbers V
48      PHA
38      SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 121 cycles ===
=== 102 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A0 18    LDY #24
|<pre>A9      LDA #75
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 18    LDX #24
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A9      LDA #94
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|<pre>A2 13   LDX #19
0A       ASL A ;first loop only
CA       DEX
08      PHP
D0 FD    BNE *-1
28       PLP
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
30 FA   BMI *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
A0 13    LDY #19
88       DEY
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #87
A9      LDA #68
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #87
A9      LDA #68
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      &times; 2
A2 13    LDX #19
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>48  ... PHA      &times; 2
A9 0A   LDA #$0A ;hides 'ASL A'
A0 13   LDY #19
20 xx xx JSR @rts15
88      DEY
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
A2 0B   LDX #11
EA       NOP
68       PLA
00 00    BRK 0
CA      DEX
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A0 0B   LDY #11
0A       ASL A ;first loop only
68      PLA
D0 FC    BNE *-2
88       DEY
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|8 bytes
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
A0 16    LDY #22
28       PLP
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers Y, and S; 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'
08      PHP
08      PHP
A2 16    LDX #22
28       PLP
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<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
A5 A5    LDA $A5
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
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
|<pre>A6 A6    LDX $A6
A6 A6    LDX $A6
A2 0E   LDX #14
A2 16   LDX #22
EA      NOP
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A4 A4    LDY $A4
A4 A4    LDY $A4
A0 0E   LDY #14
A0 16   LDY #22
EA      NOP
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>38       SEC
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$1A'
A9       LDA #80
1A      NOP ;first loop only
20 xx xx JSR delay_a_25_clocks
EA  ... NOP      &times; 2
68      PLA
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>68      PLA
38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>EA  ... NOP      &times; 2
38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>EA  ... NOP      &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
A2 12    LDX #18
18       CLC
CA       DEX
D0 FA   BNE *-4
D0 FD   BNE *-1
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 12    LDY #18
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48      PHA
48      PHA
98       TYA
A9       LDA #61
48      PHA
20 xx xx JSR delay_a_25_clocks
A0 14    LDY #20
88      DEY
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 14   LDA #20
A9 69   LDA #$69 ;hides 'ADC #$F8'
E9 01    SBC #1
F8      SED ;first loop only
D0 F9   BNE *-5
10 FC   BPL *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
90 00    BCC *+2
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|26 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 25</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|29 bytes
|-
|<pre>68      PLA      \ &times; 5
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 14
10 EE    BPL *-16</pre>||Clobbers A, and Z&N
|-
!colspan="2"|34 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|51 bytes
|-
|<pre>EA  ... NOP      &times; 51</pre>||No requirements
|-
|-
|}
|}




=== 122 cycles ===
=== 103 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #95
|<pre>A9      LDA #76
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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"|6 bytes
|-
|<pre>EA      NOP
A2 14    LDX #20
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 14    LDY #20
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08      PHP ;first loop only
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|7 bytes
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 69   LDA #$69 ;hides 'ADC #$F8'
A9 14   LDA #20
F8      SED ;first loop only
E9 01    SBC #1
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
10 FB    BPL *-3</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
A2 11   LDX #17
A2 13   LDX #19
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
A0 11   LDY #17
A0 13   LDY #19
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #88
A9      LDA #69
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #88
A9      LDA #69
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      &times; 2
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
48  ... PHA      &times; 2
0A       ASL A ;first loop only
18       CLC
B0 FC   BCS *-2</pre>||Clobbers A, S, Z&N, C, and V; 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
|-
|-
|<pre>38      SEC
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
A9 11   LDA #17
EA   ... NOP     &times; 3
EA       NOP
18       CLC
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>68      PLA
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!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
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #81
A9      LDA #62
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
Line 16,307: Line 18,176:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>8C      TXA
48      PHA
A2 0D    LDX #13
EA      NOP
CA      DEX
D0 FC    BNE *-2
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,312: Line 18,190:
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 FA    BCC *-4
10 FA    BPL *-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
|-
|-
!colspan="2"|11 bytes
|<pre>08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
38      SEC
A9 15   LDA #21
A9 12   LDA #18
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>48      PHA
 
08      PHP
 
38      SEC
=== 123 cycles ===
A9 12    LDA #18
{| class="wikitable testtable"
E9 01    SBC #1
!colspan="2"|5 bytes
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>A9      LDA #96
!colspan="2"|11 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
A2 18    LDX #24
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 18    LDY #24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
18      CLC
0A       ASL A ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
B0 FC   BCS *-2
08      PHP       \ &times; 2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28      PLP      /
10 F9   BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A5 A5    LDA $A5
0A      ASL A ;first loop only
38      SEC
B0 FC   BCS *-2
A9 12   LDA #18
E9 01    SBC #1
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 17   LDY #23
48      PHA
88       DEY
A9 69   LDA #$69 ;hides 'ADC #$18'
D0 FB   BNE *-3
18       CLC ;first loop only
28      PLP</pre>||Clobbers Y; and writes in stack
F6 F6    INC $F6,X
90 FA   BCC *-4
68      PLA
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|12 bytes
A2 17    LDX #23
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9       LDA #82
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
18      CLC
D0 FA    BNE *-4
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|26 bytes
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>68      PLA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
68   ... PLA     &times; 24</pre>||Clobbers A, S, and Z&N
08      PHP
28      PLP
18      CLC
D0 FA    BNE *-4
68       PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|30 bytes
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>36 36    ROL $36,X
48  ... PHA      &times; 2
76 36   ROR $36,X
A9 0A   LDA #$0A ;hides 'ASL A'
68       PLA       \ &times; 13
08       PHP
48       PHA       /</pre>||Clobbers A, and Z&N
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|35 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
C5 C5   CMP $C5
E6 xx   INC @zptemp
48      PHA
36 36   ROL $36,X \ &times; 8
A9 0A   LDA #$0A ;hides 'ASL A'
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
08      PHP
28      PLP
18      CLC
D0 FA   BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 02 INC $0200,X
48      PHA
36 36   ROL $36,X \ &times; 8
A9 0A   LDA #$0A ;hides 'ASL A'
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
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>FE 00 03 INC $0300,X
48      PHA
36 36   ROL $36,X \ &times; 8
18      CLC
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
A9 F4   LDA #244 ;hides 'NOP zp,X'
EA      NOP
69 01   ADC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 05 INC $0500,X
98      TYA
36 36   ROL $36,X \ &times; 8
48      PHA
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
A0 0D   LDY #13
A5 A5   LDA $A5
88      DEY
D0 F9    BNE *-5
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>FE 00 06 INC $0600,X
08      PHP
36 36   ROL $36,X \ &times; 8
48      PHA
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB   BNE *-3
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>FE 00 07 INC $0700,X
08      PHP
36 36    ROL $36,X \ &times; 8
48      PHA
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
38      SEC
A9 14   LDA #20
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"|36 bytes
|-
|<pre>C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|<pre>24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|<pre>04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|37 bytes
|-
|<pre>4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|38 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|52 bytes
|-
|<pre>18  ... CLC      &times; 50
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA   ... NOP     &times; 3
|<pre>B8   ... CLV     &times; 50
08      PHP
50 00   BVC *+2</pre>||Clobbers V
48      PHA
38      SEC
A9 14   LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 124 cycles ===
=== 104 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|4 bytes
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #97
|<pre>A9      LDA #77
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
Line 16,506: Line 18,367:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 18   LDY #24
A2 14    LDX #20
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 14   LDY #20
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 A6    LDX $A6
A2 14    LDX #20
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>A4 A4    LDY $A4
A0 18   LDY #24
A0 14   LDY #20
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #90
A9      LDA #70
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #90
A9      LDA #70
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>00 00    BRK 0
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
48       PHA
0A       ASL A ;first loop only
00 00    BRK 0
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
10 FA   BPL *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>68  ... PLA      &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
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
38      SEC
20 xx xx JSR @rts14
A9 69   LDA #$69 ;hides 'ADC #$F8'
18       CLC
F8      SED ;first loop only
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
EA      NOP
|-
10 FB   BPL *-3</pre>||Clobbers A, Z&N, C, V, and D
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
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
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
04 04    NOP $04
28      PLP
00 00    BRK 0
00 00    BRK 0
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 support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
48      PHA
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
38       SEC
18       CLC
A9 11   LDA #17
A9 0A   LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
E9 01    SBC #1
28      PLP
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0D   LDX #13 ;hides 'ORA abs'
A2 0C   LDX #12
A5 00   LDA $0
C5 C5   CMP $C5
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0D   LDY #13 ;hides 'ORA abs'
A0 0C   LDY #12
A5 00   LDA $0
C5 C5   CMP $C5
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>F6 F6    INC $F6,X
A2 16   LDX #22
38       SEC
CA      DEX
A9 13   LDA #19
D0 FB    BNE *-3
E9 01    SBC #1
F6 xx    INC @zptemp,X
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #83
A9      LDA #63
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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      &times; 3
|<pre>04 04    NOP $04
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
38      SEC
0A       ASL A ;first loop only
A9 69   LDA #$69 ;hides 'ADC #$5A'
D0 FC   BNE *-2
5A       NOP ;first loop only
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
EA      NOP
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|10 bytes
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>A5 A5    LDA $A5
08       PHP
38       SEC
A0 16   LDY #22
A9 0E   LDA #14
88       DEY
EA       NOP
D0 FB   BNE *-3
E9 01    SBC #1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|11 bytes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
08      PHP
08      PHP
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA  ... NOP      &times; 3
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
38      SEC
0A       ASL A ;first loop only
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 FC    BNE *-2
F8       SED ;first loop only
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
10 FC    BPL *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
68       PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
F8      SED ;first loop only
EA      NOP
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|26 bytes
08      PHP
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 3
|<pre>68   ... PLA     &times; 26</pre>||Clobbers A, S, and Z&N
08      PHP
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
8C       TXA
68       PLA      \ &times; 5
48      PHA
48      PHA       /
A2 15   LDX #21
A9 09   LDA #$09 ;hides 'ORA #$EA'
CA       DEX
EA       NOP ;first loop only
D0 FB   BNE *-3
EA  ... NOP      &times; 14
68      PLA
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|35 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
36 36    ROL $36,X \ &times; 4
48      PHA
76 36    ROR $36,X /
38      SEC
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
A9 15    LDA #21
|-
E9 01    SBC #1
!colspan="2"|52 bytes
D0 F9    BNE *-5
|-
68      PLA
|<pre>EA  ... NOP      &times; 52</pre>||No requirements
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 125 cycles ===
=== 105 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #98
|<pre>A9      LDA #78
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>68       PLA
|<pre>A2 0D    LDX #13
A0 18   LDY #24
48      PHA
88      DEY
CA       DEX
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 0D   LDY #13
48      PHA
88      DEY
D0 FC   BNE *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 18   LDX #24
A2 14   LDX #20
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 14    LDY #20
88      DEY
D0 FD    BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A2 18   LDX #24
A2 14   LDX #20
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
A0 18   LDY #24
A0 14   LDY #20
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #91
A9      LDA #71
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #91
A9      LDA #71
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>EA      NOP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08      PHP ;first loop only
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
18       CLC
38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 14   LDA #20
0A      ASL A ;first loop only
E9 01    SBC #1
B0 FC   BCS *-2
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
18      CLC
08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A2 13   LDX #19
0A       ASL A ;first loop only
CA       DEX
B0 FC   BCS *-2
D0 FD   BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 17   LDY #23
A0 13   LDY #19
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A2 17   LDX #23
48  ... PHA      &times; 2
CA      DEX
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38       SEC
A9 13   LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers X; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
|<pre>08      PHP
38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #64
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
D0 FC    BNE *-2
68      PLA
68      PLA
28      PLP</pre>||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'
 
08      PHP
=== 126 cycles ===
28      PLP
{| class="wikitable testtable"
D0 FB    BNE *-3
!colspan="2"|5 bytes
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>A2 19    LDX #25
!colspan="2"|10 bytes
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 19   LDY #25
|<pre>C5 C5   CMP $C5
88       DEY
48      PHA
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
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>A9      LDA #99
!colspan="2"|11 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"|7 bytes
|-
|<pre>48      PHA
A9      LDA #92
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
A9       LDA #92
48       PHA
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 88    LDY #136 ;hides 'DEY'
08      PHP
28      PLP
30 FB    BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>20 xx xx JSR @rts15
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, Z&N, C, and V; requires @rts12, and @rts15; and writes in stack
EA  ... NOP      &times; 2
30 FA   BMI *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
!colspan="2"|27 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
00 00    BRK 0
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
48      PHA
0A      ASL A ;first loop only
68  ... PLA      &times; 24</pre>||Clobbers A, S, and Z&N
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
!colspan="2"|30 bytes
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>68       PLA       \ &times; 15
08       PHP
48       PHA       /</pre>||Clobbers A, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|36 bytes
08      PHP
A2 17    LDX #23
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>C5 C5    CMP $C5
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 24    BIT $24
|<pre>24 24    BIT $24
48      PHA
36 36   ROL $36,X \ &times; 4
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
76 36    ROR $36,X /
0A      ASL A ;first loop only
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
B0 FC    BCS *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>E6 xx    INC @zptemp
A5 A5   LDA $A5
26 26   ROL $26
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
66 26   ROR $26
0A      ASL A ;first loop only
36 36    ROL $36,X \ &times; 3
B0 FC   BCS *-2
76 36   ROR $36,X /
28      PLP</pre>||Clobbers A; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A6 A6    LDX $A6
FE 00 02 INC $0200,X
A2 17   LDX #23
36 36   ROL $36,X \ &times; 8
CA      DEX
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
FE 00 03 INC $0300,X
A9      LDA #85
36 36    ROL $36,X \ &times; 8
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
FE 00 05 INC $0500,X
08      PHP
36 36   ROL $36,X \ &times; 8
24 24   BIT $24
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
28      PLP
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>EA      NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
FE 00 07 INC $0700,X
8C      TXA
36 36    ROL $36,X \ &times; 8
48      PHA
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
A2 15   LDX #21
|-
CA      DEX
|<pre>04 04   NOP $04
D0 FB   BNE *-3
36 36    ROL $36,X \ &times; 4
68      PLA
76 36   ROR $36,X /
AA      TAX
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|37 bytes
|-
|<pre>4C xx xx JMP *+3
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|38 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|53 bytes
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</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>18  ... CLC      &times; 51
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>B8   ... CLV     &times; 51
08      PHP
50 00   BVC *+2</pre>||Clobbers V
48      PHA
38      SEC
A9 15   LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 127 cycles ===
=== 106 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #100
|<pre>A2 15    LDX #21
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>A0 15    LDY #21
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #79
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A2 12   LDX #18
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$08'
08      PHP ;first loop only
EA      NOP
EA      NOP
CA      DEX
30 FB   BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 12    LDY #18
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #93
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
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      LDA #93
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
00 00    BRK 0
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'
|<pre>08      PHP
A2 0E   LDX #14
EA      NOP
EA      NOP
08       PHP
CA       DEX
28      PLP
D0 FC   BNE *-2
18      CLC
28      PLP</pre>||Clobbers X; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 11   LDY #17
A0 0E   LDY #14
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>48       PHA
A2 11   LDX #17
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
48  ... PHA      &times; 2
CA       DEX
18       CLC
D0 FA    BNE *-4
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>68      PLA
|<pre>A5 A5    LDA $A5
08       PHP
38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 14   LDA #20
0A      ASL A ;first loop only
E9 01    SBC #1
B0 FC   BCS *-2
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08       PHP
48       PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR @rts15
0A      ASL A ;first loop only
10 FA   BPL *-4
B0 FC   BCS *-2
28       PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>18       CLC
08       PHP
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR @rts14
0A       ASL A ;first loop only
18       CLC
B0 FC   BCS *-2
10 F9   BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #86
A9      LDA #65
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18      CLC
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18      CLC
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|<pre>68      PLA
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
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
|-
|<pre>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
18      CLC
18      CLC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
0A       ASL A ;first loop only
|-
D0 FC    BNE *-2
|<pre>EA  ... NOP      &times; 2
08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>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</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|27 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 26</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|31 bytes
|-
|<pre>68      PLA      \ &times; 5
48      PHA      /
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
!colspan="2"|36 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|53 bytes
|-
|<pre>EA  ... NOP      &times; 53</pre>||No requirements
|-
|-
|}
|}




=== 128 cycles ===
=== 107 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #101
|<pre>A9      LDA #80
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>EA      NOP
|<pre>A2 18   LDX #24 ;hides 'CLC'
A2 19   LDX #25
CA   ... DEX     &times; 2
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
|<pre>A0 18   LDY #24 ;hides 'CLC'
A0 19   LDY #25
88   ... DEY     &times; 2
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
!colspan="2"|7 bytes
|-
|-
|<pre>38      SEC
|<pre>48      PHA
A9 19    LDA #25
A9      LDA #73
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A0 18    LDY #24
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 18    LDX #24
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9      LDA #94
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #94
A9      LDA #73
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
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08      PHP ;first loop only
90 FC    BCC *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>68      PLA
38      SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>68      PLA
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
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48       PHA
|<pre>38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 0D   LDA #13
0A       ASL A ;first loop only
24 24    BIT $24
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>98      TYA
48      PHA
A0 13    LDY #19
88      DEY
D0 FD    BNE *-1
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
28       PLP
A2 13    LDX #19
30 FA   BMI *-4
CA       DEX
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
D0 FD   BNE *-1
28       PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
08      PHP
08      PHP
28       PLP
A0 13    LDY #19
30 FA   BMI *-4
88       DEY
28      PLP</pre>||Clobbers A; and writes in stack
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #87
A9      LDA #66
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
18       CLC
48      PHA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
EA  ... NOP      &times; 3
90 FA   BCC *-4
18      CLC
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|<pre>EA      NOP
08      PHP
38      SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>E6 xx    INC @zptemp
18      CLC
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
00 00    BRK 0
28      PLP
90 FA   BCC *-4
D0 FB   BNE *-3
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 @zptemp; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA      NOP
48   ... PHA     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
48       PHA
28       PLP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
D0 FB   BNE *-3
0A      ASL A ;first loop only
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
D0 FC   BNE *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
24 24    BIT $24
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
38      SEC
0A      ASL A ;first loop only
A9 12   LDA #18
D0 FC   BNE *-2
E9 01    SBC #1
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|27 bytes
* From 128 cycles onwards, these tables quit considering RTI options.
 
 
=== 129 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #102
|<pre>68       PLA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA
68  ... PLA      &times; 25</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|31 bytes
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>EA      NOP
A2 E8    LDX #232 ;hides 'INX'
68      PLA      \ &times; 15
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N; and requires @zptemp
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
|<pre>A2 10    LDX #16
!colspan="2"|36 bytes
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 10   LDY #16
|<pre>E6 xx   INC @zptemp
48      PHA
36 36    ROL $36,X \ &times; 4
88      DEY
76 36    ROR $36,X /
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|7 bytes
!colspan="2"|37 bytes
|-
|-
|<pre>A6 A6   LDX $A6
|<pre>EA      NOP
A2 19   LDX #25
C5 C5   CMP $C5
CA      DEX
36 36   ROL $36,X \ &times; 4
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
|<pre>A4 A4   LDY $A4
|<pre>EA      NOP
A0 19   LDY #25
24 24   BIT $24
88      DEY
36 36   ROL $36,X \ &times; 4
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|-
|<pre>48      PHA
|<pre>FE 00 02 INC $0200,X
A9      LDA #95
26 26    ROL $26
20 xx xx JSR delay_a_25_clocks
66 26    ROR $26
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 03 INC $0300,X
A9      LDA #95
26 26    ROL $26
20 xx xx JSR delay_a_25_clocks
66 26    ROR $26
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
!colspan="2"|8 bytes
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>38      SEC
|<pre>FE 00 05 INC $0500,X
A9 12   LDA #18
26 26   ROL $26
EA      NOP
66 26    ROR $26
E9 01   SBC #1
36 36   ROL $36,X \ &times; 3
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
!colspan="2"|9 bytes
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 3
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 07 INC $0700,X
38      SEC
26 26    ROL $26
A9 69   LDA #$69 ;hides 'ADC #$F8'
66 26   ROR $26
F8      SED ;first loop only
36 36    ROL $36,X \ &times; 3
EA      NOP
76 36   ROR $36,X /
10 FB   BPL *-3
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
38      SEC
04 04    NOP $04
A9 69   LDA #$69 ;hides 'ADC #$F8'
36 36   ROL $36,X \ &times; 4
F8      SED ;first loop only
76 36    ROR $36,X /
EA      NOP
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
!colspan="2"|38 bytes
08      PHP
A2 11    LDX #17
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
4C xx xx JMP *+3
A0 11   LDY #17
36 36   ROL $36,X \ &times; 4
EA      NOP
76 36   ROR $36,X /
88      DEY
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|39 bytes
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
|-
|-
|<pre>48  ... PHA      &times; 3
|<pre>EA      NOP
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
36 36    ROL $36,X \ &times; 5
0A      ASL A ;first loop only
76 36   ROR $36,X /
B0 FC    BCS *-2
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|54 bytes
|-
|-
|<pre>48      PHA
|<pre>18  ... CLC      &times; 52
38      SEC
90 00   BCC *+2</pre>||Clobbers C
A9 11   LDA #17
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>B8  ... CLV      &times; 52
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>08      PHP
|}
48      PHA
 
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 FB    BPL *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|}


 
=== 108 cycles ===
=== 130 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #103
|<pre>A9      LDA #81
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>A2 E8   LDX #232 ;hides 'INX'
|<pre>EA      NOP
D0 FD    BNE *-1
A2 15   LDX #21
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA       NOP
A2 E8    LDX #232 ;hides 'INX'
A0 15   LDY #21
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>68       PLA
A0 19   LDY #25
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>38      SEC
A2 19   LDX #25
A9 15    LDA #21
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 14   LDX #20
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
A0 19   LDY #25
A0 14   LDY #20
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #96
A9      LDA #74
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #96
A9      LDA #74
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
Line 17,300: Line 19,264:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>00 00    BRK 0
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 19   LDA #25
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
08      PHP
A2 18    LDX #24
28      PLP
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 18    LDY #24
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,324: Line 19,274:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #67
0A      ASL A ;first loop only
20 xx xx JSR delay_a_25_clocks
B0 FC    BCS *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|}
|<pre>48      PHA
 
38      SEC
 
A9 69    LDA #$69 ;hides 'ADC #$5A'
=== 131 cycles ===
5A      NOP ;first loop only
{| class="wikitable testtable"
EA      NOP
!colspan="2"|5 bytes
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>A2 1A    LDX #26
|<pre>08      PHP
CA       DEX
38       SEC
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
A9 69   LDA #$69 ;hides 'ADC #$5A'
|-
5A      NOP ;first loop only
|<pre>A0 1A    LDY #26
EA       NOP
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>A9       LDA #104
|<pre>EA      NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA
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
|-
|-
!colspan="2"|6 bytes
!colspan="2"|10 bytes
|-
|<pre>08      PHP
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #97
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 0E    LDA #14
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
EA       NOP
E9 01    SBC #1
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #97
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 0E    LDA #14
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
EA       NOP
E9 01    SBC #1
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>18      CLC
|<pre>F6 F6   INC $F6,X
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
48      PHA
48      PHA
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>48      PHA
A9 69   LDA #$69 ;hides 'ADC #$F8'
18      CLC
F8       SED ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
00 00    BRK 0
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D; and requires @zptemp
18       CLC
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>48  ... PHA      &times; 3
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 0A   LDA #$0A ;hides 'ASL A'
0A       ASL A ;first loop only
08      PHP
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V; requires @rts12, and @rts15; and writes in stack
28       PLP
D0 FB   BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>18      CLC
!colspan="2"|11 bytes
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 04    NOP $04
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
|-
|<pre>38      SEC
|<pre>EA  ... NOP      &times; 3
A9 10    LDA #16
48      PHA
48      PHA
E9 01   SBC #1
A9 0A   LDA #$0A ;hides 'ASL A'
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
08      PHP
08      PHP
A0 18    LDY #24
28       PLP
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers Y, and S; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>EA       NOP
|-
A5 A5    LDA $A5
|<pre>38       SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 10   LDA #16
EA  ... NOP      &times; 3
24 24    BIT $24
18      CLC
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 A4    LDY $A4
48      PHA
A0 18   LDY #24
A9 0A   LDA #$0A ;hides 'ASL A'
88      DEY
20 xx xx JSR @rts14
D0 FB   BNE *-3
10 FA   BPL *-4
28      PLP</pre>||Clobbers Y; and writes in stack
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9       LDA #90
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
08      PHP      \ &times; 2
28      PLP      /
10 F9    BPL *-5
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|27 bytes
|-
|-
|<pre>68  ... PLA      &times; 2
|<pre>68  ... PLA      &times; 27</pre>||Clobbers A, S, and Z&N
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|31 bytes
|-
|-
|<pre>EA       NOP
|<pre>68      PLA       \ &times; 7
48      PHA
48      PHA      /
38       SEC
A9 09   LDA #$09 ;hides 'ORA #$EA'
A9 69   LDA #$69 ;hides 'ADC #$F8'
EA       NOP ;first loop only
F8       SED ;first loop only
EA   ... NOP     &times; 12
EA       NOP
10 F0   BPL *-14</pre>||Clobbers A, and Z&N
10 FB   BPL *-3
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA      NOP
!colspan="2"|36 bytes
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>36 36    ROL $36,X \ &times; 9
48  ... PHA      &times; 3
76 36   ROR $36,X /</pre>||Clobbers Z&N
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
|-
|-
!colspan="2"|11 bytes
!colspan="2"|54 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 54</pre>||No requirements
48      PHA
38      SEC
A9 11    LDA #17
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      &times; 2
|}
08      PHP
 
48      PHA
 
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
=== 109 cycles ===
0A      ASL A ;first loop only
{| class="wikitable testtable"
D0 FC    BNE *-2
!colspan="2"|5 bytes
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>A9      LDA #82
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
!colspan="2"|6 bytes
08      PHP
|-
48      PHA
|<pre>A0 88   LDY #136 ;hides 'DEY'
18      CLC
F6 F6    INC $F6,X
A9 69   LDA #$69 ;hides 'ADC #$F8'
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
F8      SED ;first loop only
EA      NOP
10 FB    BPL *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>48      PHA
 
A2 15    LDX #21
 
CA      DEX
=== 132 cycles ===
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #105
|<pre>48       PHA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A0 15    LDY #21
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
|<pre>A2 0C    LDX #12
68      PLA
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68   ... PLA     &times; 2
|<pre>A0 0C    LDY #12
A2 E8    LDX #232 ;hides 'INX'
68       PLA
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
88      DEY
D0 FC   BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>BA      TSX
|<pre>A6 A6    LDX $A6
68      PLA
A2 15   LDX #21
9A      TXS
CA      DEX
A2 E8   LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers 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>A4 A4   LDY $A4
CA       DEX
A0 15    LDY #21
D0 FB   BNE *-3
88       DEY
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #98
A9      LDA #75
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #98
A9      LDA #75
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      &times; 2
|<pre>18      CLC
A2 19   LDX #25
A9 0A   LDA #$0A ;hides 'ASL A'
CA      DEX
00 00    BRK 0
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
A0 19   LDY #25
A9 E9   LDA #$E9 ;hides 'SBC #$08'
88       DEY
08      PHP ;first loop only
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; 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      &times; 3
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A2 19    LDX #25
20 xx xx JSR @rts15
CA       DEX
18       CLC
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
10 F9   BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 3
|<pre>18      CLC
A0 19   LDY #25
A9 F4    LDA #244 ;hides 'NOP zp,X'
88      DEY
EA       NOP
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
69 01   ADC #1
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>68      PLA
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
48      PHA
A9 19   LDA #25
20 xx xx JSR @rts14
E9 01    SBC #1
10 F9    BPL *-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, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>08       PHP
48      PHA
A2 13   LDX #19
A2 18   LDX #24
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
68       PLA
F6 xx    INC @zptemp,X
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
28       PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<pre>F6 F6    INC $F6,X
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
A2 18   LDX #24
F6 F6   INC $F6,X
CA       DEX
28      PLP
D0 FB   BNE *-3
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
F6 F6    INC $F6,X
A0 13    LDY #19
88       DEY
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>20 xx xx JSR @rts14
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
A0 18    LDY #24
28       PLP
88       DEY
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #91
A9      LDA #68
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
68      PLA
38      SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|<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
08      PHP
A2 13    LDX #19
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 13    LDY #19
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 17,596: Line 19,574:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
08      PHP
0A       ASL A ;first loop only
28       PLP
B0 FC   BCS *-2
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|}
=== 133 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #106
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
|<pre>EA      NOP
A2 1A    LDX #26
38      SEC
CA      DEX
A9 0D   LDA #13
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
24 24    BIT $24
|-
|<pre>EA      NOP
A0 1A    LDY #26
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 1A   LDA #26
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
A0 19    LDY #25
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; 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
|-
|<pre>08      PHP
A9      LDA #99
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>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
20 xx xx JSR @rts15
E6 xx   INC @zptemp
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
F6 F6    INC $F6,X
90 F8   BCC *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
A9      LDA #92
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
EA  ... NOP      &times; 3
20 xx xx JSR @rts14
18       CLC
90 F9    BCC *-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
|-
|-
!colspan="2"|10 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>18      CLC
|<pre>EA  ... NOP      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
EA  ... NOP      &times; 3
20 xx xx JSR @rts12
18      CLC
90 F8   BCC *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|28 bytes
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>EA      NOP
68      PLA
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
68   ... PLA     &times; 25</pre>||Clobbers A, S, and Z&N
0A      ASL A ;first loop only
D0 FC    BNE *-2
68       PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
!colspan="2"|31 bytes
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>18       CLC
|<pre>68       PLA      \ &times; 6
A9 0A   LDA #$0A ;hides 'ASL A'
48      PHA      /
04 04    NOP $04
A9 09   LDA #$09 ;hides 'ORA #$EA'
20 xx xx JSR @rts14
EA      NOP ;first loop only
90 F8   BCC *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
EA  ... NOP      &times; 14
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|37 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</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>EA      NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>FE 00 02 INC $0200,X
24 24   BIT $24
36 36   ROL $36,X \ &times; 4
48      PHA
76 36   ROR $36,X /
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
0A      ASL A ;first loop only
B0 FC    BCS *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>FE 00 03 INC $0300,X
 
36 36    ROL $36,X \ &times; 4
 
76 36    ROR $36,X /
=== 134 cycles ===
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
{| class="wikitable testtable"
|-
!colspan="2"|5 bytes
|<pre>FE 00 04 INC $0400,X
|-
36 36    ROL $36,X \ &times; 4
|<pre>A9      LDA #107
76 36    ROR $36,X /
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
!colspan="2"|38 bytes
|-
|<pre>C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|<pre>24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|<pre>04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|39 bytes
|-
|<pre>4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|40 bytes
|-
|<pre>EA  ... NOP      &times; 2
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|55 bytes
|-
|<pre>18  ... CLC      &times; 53
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 53
50 00    BVC *+2</pre>||Clobbers V
|-
|}
 
 
=== 110 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #83
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>A2 13   LDX #19
|<pre>68      PLA
EA      NOP
A2 15   LDX #21
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 13   LDY #19
|<pre>68      PLA
EA      NOP
A0 15   LDY #21
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 15    LDX #21
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 15    LDY #21
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #100
A9      LDA #76
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #100
A9      LDA #76
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
|<pre>68       PLA
08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$08'
A2 E8   LDX #232 ;hides 'INX'
08      PHP ;first loop only
D0 FD   BNE *-1
EA      NOP
28      PLP</pre>||Clobbers X, and S; and writes in stack
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>08       PHP
|<pre>EA      NOP
A0 12   LDY #18
38       SEC
EA      NOP
A9 15   LDA #21
88      DEY
E9 01    SBC #1
D0 FA   BNE *-4
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A2 12   LDX #18
08      PHP
EA      NOP
A2 14   LDX #20
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FD   BNE *-1
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 #$2A'
|<pre>EA       NOP
2A      ROL A ;first loop only
08       PHP
20 xx xx JSR @rts14
A0 14   LDY #20
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V; requires @rts12, and @rts14; and writes in stack
88       DEY
|-
D0 FD   BNE *-1
|<pre>48       PHA
28      PLP</pre>||Clobbers Y; and writes in stack
18       CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
48       PHA
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$2A'
|<pre>48      PHA
2A      ROL A ;first loop only
38      SEC
08      PHP      \ &times; 2
A9 14   LDA #20
28      PLP      /
E9 01    SBC #1
B0 F8   BCS *-6</pre>||Clobbers A, Z&N, C, and V; and writes in stack
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>08      PHP
08      PHP
38       SEC
28       PLP
A9 14    LDA #20
20 xx xx JSR @rts15
E9 01   SBC #1
10 F8   BPL *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #93
A9      LDA #69
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
Line 17,816: Line 19,806:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA   ... NOP     &times; 3
08      PHP
28      PLP
18      CLC
18      CLC
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>68       PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA   ... NOP     &times; 3
08      PHP
28      PLP
18      CLC
18      CLC
D0 F9    BNE *-5
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>48      PHA
08       PHP
8C       TXA
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A2 0D   LDX #13
0A       ASL A ;first loop only
EA      NOP
B0 FC    BCS *-2
CA       DEX
D0 FC    BNE *-2
68      PLA
68      PLA
28       PLP</pre>||Writes in stack
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|}
|<pre>08      PHP
 
48      PHA
 
18      CLC
=== 135 cycles ===
A9 0A    LDA #$0A ;hides 'ASL A'
{| class="wikitable testtable"
20 xx xx JSR @rts14
!colspan="2"|5 bytes
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>A9      LDA #108
|<pre>08      PHP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 12    LDA #18
E9 01    SBC #1
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
10 F9    BPL *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
!colspan="2"|28 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 27</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|32 bytes
|-
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
68      PLA      \ &times; 14
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|37 bytes
|-
|<pre>EA      NOP
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|55 bytes
|-
|-
|<pre>68      PLA
|<pre>EA  ... NOP      &times; 55</pre>||No requirements
A2 1A    LDX #26
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|}
A0 1A    LDY #26
 
88      DEY
 
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
=== 111 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
!colspan="2"|7 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>EA  ... NOP      &times; 2
|<pre>A2 16   LDX #22
A2 1A   LDX #26
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A0 16   LDY #22
A0 1A   LDY #26
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
08      PHP
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
28      PLP
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #101
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
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      LDA #101
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
Line 17,893: Line 19,933:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>8C      TXA
|<pre>48      PHA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
08      PHP
A2 19   LDX #25
A2 14   LDX #20
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
08      PHP
08      PHP
A0 19   LDY #25
A0 14   LDY #20
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
18  ... CLC      &times; 2
A9 19   LDA #25
90 00   BCC *+2
E9 01   SBC #1
18      CLC
D0 F9   BNE *-5
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 14    LDX #20
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38      SEC
A4 A4    LDY $A4
A9 19   LDA #25
A0 14   LDY #20
E9 01    SBC #1
88      DEY
D0 F9   BNE *-5
D0 FD   BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #94
A9      LDA #70
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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"|11 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
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR @rts14
0A      ASL A ;first loop only
18       CLC
08      PHP
10 F9   BPL *-5
28       PLP
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
30 FA   BMI *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>48      PHA
 
A9 0A    LDA #$0A ;hides 'ASL A'
 
85 xx    STA @zptemp
=== 136 cycles ===
00 00    BRK 0
{| class="wikitable testtable"
10 F9    BPL *-5
!colspan="2"|5 bytes
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>A2 1B   LDX #27
|<pre>08      PHP
CA      DEX
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
85 xx   STA @zptemp
|-
00 00   BRK 0
|<pre>A0 1B   LDY #27
10 F9   BPL *-5
88      DEY
28       PLP</pre>||Clobbers A; requires @zptemp, and dummy interrupt handler; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9       LDA #109
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
|<pre>48      PHA
A9       LDA #102
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
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
|<pre>08      PHP
A9       LDA #102
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR delay_a_25_clocks
04 04    NOP $04
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
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>A9 E9   LDA #$E9 ;hides 'SBC #$08'
|<pre>68      PLA
08       PHP ;first loop only
98      TYA
EA  ... NOP      &times; 2
48      PHA
30 FA   BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
A0 13   LDY #19
|-
88       DEY
!colspan="2"|8 bytes
D0 FD   BNE *-1
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>48  ... PHA      &times; 2
A9 13   LDA #19
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
E6 xx    INC @zptemp
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 19    LDY #25
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28       PLP</pre>||Clobbers Y, and S; 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
|<pre>48      PHA
08      PHP
08      PHP
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 10    LDX #16
C5 C5    CMP $C5
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 10    LDY #16
C5 C5    CMP $C5
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #95
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
38      SEC
A9 12   LDA #18
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
EA      NOP
E9 01    SBC #1
D0 FB   BNE *-3
D0 F8   BNE *-6
28       PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 12    LDA #18
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 18,057: Line 20,050:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
38       SEC
18       CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
A9 0A   LDA #$0A ;hides 'ASL A'
F8       SED ;first loop only
08       PHP
EA       NOP
28       PLP
10 FB    BPL *-3
D0 FB    BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|28 bytes
 
 
=== 137 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #110
|<pre>68       PLA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA
68  ... PLA      &times; 26</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|32 bytes
|-
|-
|<pre>A2 11    LDX #17
|<pre>EA      NOP
48      PHA
68      PLA      \ &times; 6
CA       DEX
48      PHA       /
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA  ... NOP      &times; 14
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
|-
!colspan="2"|38 bytes
|-
|<pre>C5 C5    CMP $C5
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|<pre>24 24    BIT $24
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|<pre>E6 xx    INC @zptemp
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 8
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>EA      NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|<pre>EA      NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>EA      NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>EA      NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>04 04    NOP $04
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|39 bytes
|-
|-
|<pre>A0 11   LDY #17
|<pre>4C xx xx JMP *+3
48      PHA
36 36   ROL $36,X \ &times; 9
88      DEY
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
D0 FA   BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|41 bytes
|-
|-
|<pre>A2 11   LDX #17
|<pre>EA  ... NOP      &times; 3
C5 C5   CMP $C5
36 36   ROL $36,X \ &times; 5
CA      DEX
76 36   ROR $36,X /
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and C
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>A0 11    LDY #17
!colspan="2"|56 bytes
C5 C5    CMP $C5
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A2 11    LDX #17
|<pre>18  ... CLC      &times; 54
24 24    BIT $24
90 00   BCC *+2</pre>||Clobbers C
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A0 11    LDY #17
|<pre>B8  ... CLV      &times; 54
24 24    BIT $24
50 00   BVC *+2</pre>||Clobbers V
88      DEY
D0 F9   BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 11    LDY #17
|}
A5 A5    LDA $A5
 
88      DEY
 
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
=== 112 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A2 11    LDX #17
|<pre>A9      LDA #85
A5 A5    LDA $A5
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A2 11    LDX #17
!colspan="2"|7 bytes
A4 A4    LDY $A4
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A2 11   LDX #17
|<pre>A2 15   LDX #21
85 xx    STA @zptemp
CA      DEX
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 FD   BNE *-1
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 11   LDY #17
|<pre>F6 F6    INC $F6,X
85 xx    STA @zptemp
A0 15   LDY #21
88      DEY
88      DEY
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #103
A9      LDA #78
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #103
A9      LDA #78
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>A0 11   LDY #17
|<pre>48  ... PHA      &times; 2
04 04    NOP $04
A2 15    LDX #21
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 15   LDY #21
88      DEY
88      DEY
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 11   LDX #17
|<pre>EA      NOP
04 04    NOP $04
68      PLA
A2 15   LDX #21
CA      DEX
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>EA      NOP
68      PLA
A0 15    LDY #21
88      DEY
D0 FD    BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A4 A4    LDY $A4
|<pre>EA   ... NOP     &times; 3
A0 13    LDY #19
A2 15   LDX #21
EA       NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 A6    LDX $A6
A2 13   LDX #19
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 3
A2 E8   LDX #232 ;hides 'INX'
A0 15   LDY #21
D0 FD    BNE *-1
88      DEY
F6 xx    INC @zptemp,X
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<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>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 1A   LDA #26
A9 15   LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08       PHP
18       CLC
A2 E8   LDX #232 ;hides 'INX'
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FD   BNE *-1
00 00   BRK 0
28      PLP</pre>||Clobbers X, and S; and writes in stack
90 FB    BCC *-3</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>EA  ... NOP      &times; 2
38      SEC
A9 15    LDA #21
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>8C      TXA
|<pre>8C      TXA
48      PHA
48      PHA
A2 19   LDX #25
A2 14   LDX #20
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
08      PHP
A2 0D    LDX #13
A0 19   LDY #25
C5 C5    CMP $C5
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 0D   LDY #13
C5 C5    CMP $C5
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #96
A9      LDA #71
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
Line 18,227: Line 20,271:
48      PHA
48      PHA
38      SEC
38      SEC
A9 19   LDA #25
A9 14   LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
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
|-
|-
Line 18,235: Line 20,279:
08      PHP
08      PHP
38      SEC
38      SEC
A9 19   LDA #25
A9 14   LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 18,243: Line 20,287:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28      PLP
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
38      SEC
0A      ASL A ;first loop only
A9 13   LDA #19
B0 FC   BCS *-2
E9 01    SBC #1
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|28 bytes
|-
|<pre>68  ... PLA      &times; 28</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|32 bytes
|-
|<pre>68      PLA      \ &times; 16
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|38 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|56 bytes
|-
|<pre>EA  ... NOP      &times; 56</pre>||No requirements
|-
|-
|}
|}




=== 138 cycles ===
=== 113 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #111
|<pre>A9      LDA #86
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>EA       NOP
|<pre>18       CLC
A0 1B   LDY #27
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
|<pre>A2 10   LDX #16
A2 1B   LDX #27
EA      NOP
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>38      SEC
|<pre>A0 10   LDY #16
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
EA       NOP
3A       NOP ;first loop only
88      DEY
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 FC    BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>38       SEC
|<pre>08       PHP
A9 1B   LDA #27
A2 15   LDX #21
E9 01    SBC #1
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 1A   LDY #26
A0 15   LDY #21
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1A    LDX #26
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #104
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
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      LDA #104
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
Line 18,310: Line 20,377:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>48       PHA
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
08      PHP
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
28      PLP
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>A5 A5    LDA $A5
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
48      PHA
48      PHA
A9      LDA #97
A9      LDA #72
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
8C      TXA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>8C      TXA
|<pre>18      CLC
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A2 12    LDX #18
18   ... CLC     &times; 2
EA      NOP
90 00   BCC *+2
CA      DEX
D0 FA    BNE *-4
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 FA    BPL *-4
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
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 04    NOP $04
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
18      CLC
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C
F8      SED ;first loop only
04 04    NOP $04
10 FA   BPL *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
38      SEC
38      SEC
A9 19   LDA #25
A9 14   LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
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
|-
|-
Line 18,404: Line 20,412:
08      PHP
08      PHP
38      SEC
38      SEC
A9 19   LDA #25
A9 14   LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>24 24    BIT $24
48      PHA
38      SEC
38      SEC
A9 10   LDA #16
A9 14   LDA #20
24 24    BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7   BNE *-7
D0 FB   BNE *-3
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
|<pre>08      PHP
A5 A5    LDA $A5
38      SEC
38      SEC
A9 10   LDA #16
A9 14   LDA #20
24 24    BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7   BNE *-7
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>08      PHP
|-
|<pre>EA      NOP
08      PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 69   LDA #$69 ;hides 'ADC #$F8'
20 xx xx JSR @rts15
F8      SED ;first loop only
10 FA   BPL *-4
EA      NOP
10 FB   BPL *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|}
 
 
=== 139 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #112
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
|<pre>48      PHA
A0 1B   LDY #27
18      CLC
88       DEY
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
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>48      PHA
|<pre>08      PHP
A2 1B   LDX #27
48      PHA
CA       DEX
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
00 00    BRK 0
18       CLC
10 FA   BPL *-4
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
18      CLC
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>A6 A6    LDX $A6
!colspan="2"|12 bytes
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4   LDY $A4
|<pre>EA  ... NOP      &times; 2
A0 1B    LDY #27
08      PHP
88       DEY
48      PHA
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
28       PLP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|29 bytes
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
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A9       LDA #105
68       PLA
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
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
48      PHA
48      PHA
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
68  ... PLA      &times; 26</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|33 bytes
|-
|-
|<pre>38       SEC
|<pre>68       PLA      \ &times; 6
A9 69   LDA #$69 ;hides 'ADC #$F8'
48      PHA      /
F8       SED ;first loop only
36 36    ROL $36,X
85 xx    STA @zptemp
76 36    ROR $36,X
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, V, and D; and requires @zptemp
A9 09   LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA  ... NOP      &times; 12
10 F0   BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
|<pre>38       SEC
!colspan="2"|38 bytes
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 04    NOP $04
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
|-
|<pre>38      SEC
|<pre>E6 xx   INC @zptemp
A9 11   LDA #17
36 36   ROL $36,X \ &times; 9
48      PHA
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
E9 01   SBC #1
D0 F8   BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>68      PLA
!colspan="2"|39 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>EA      NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>38       SEC
|<pre>EA       NOP
A9 11    LDA #17
24 24    BIT $24
24 24    BIT $24
E9 01   SBC #1
36 36   ROL $36,X \ &times; 9
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>08      PHP
|<pre>FE 00 02 INC $0200,X
BA      TSX
26 26    ROL $26
68      PLA
66 26    ROR $26
9A      TXS
36 36   ROL $36,X \ &times; 8
A2 E8   LDX #232 ;hides 'INX'
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
D0 FD   BNE *-1
28      PLP</pre>||Clobbers A, and X; writes in stack; and unsafe for interrupts
|-
|-
|<pre>08      PHP
|<pre>FE 00 03 INC $0300,X
A2 19   LDX #25
26 26   ROL $26
CA      DEX
66 26    ROR $26
D0 FB   BNE *-3
36 36   ROL $36,X \ &times; 8
F6 xx   INC @zptemp,X
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>FE 00 04 INC $0400,X
A9 0A   LDA #$0A ;hides 'ASL A'
26 26    ROL $26
20 xx xx JSR @rts12
66 26    ROR $26
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
36 36    ROL $36,X \ &times; 8
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 05 INC $0500,X
48      PHA
26 26    ROL $26
A9      LDA #98
66 26    ROR $26
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 8
68      PLA
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>FE 00 06 INC $0600,X
8C      TXA
26 26    ROL $26
48      PHA
66 26    ROR $26
A2 E8   LDX #232 ;hides 'INX'
36 36   ROL $36,X \ &times; 8
D0 FD   BNE *-1
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>FE 00 07 INC $0700,X
08      PHP
26 26    ROL $26
A0 19   LDY #25
66 26   ROR $26
88      DEY
36 36    ROL $36,X \ &times; 8
D0 FB   BNE *-3
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA       NOP
08       PHP
04 04   NOP $04
A2 19   LDX #25
36 36    ROL $36,X \ &times; 9
CA      DEX
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|40 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
8C      TXA
4C xx xx JMP *+3
48      PHA
36 36   ROL $36,X \ &times; 9
A2 19   LDX #25
76 36   ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
CA      DEX
D0 FB   BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|42 bytes
08      PHP
A0 19    LDY #25
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA   ... NOP      &times; 3
|<pre>26 26    ROL $26   \ &times; 2
08      PHP
66 26    ROR $26  /
A2 19   LDX #25
36 36   ROL $36,X \ &times; 4
CA      DEX
76 36   ROR $36,X /
D0 FB   BNE *-3
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|57 bytes
|-
|-
|<pre>48      PHA
|<pre>18   ... CLC      &times; 55
8C      TXA
90 00   BCC *+2</pre>||Clobbers C
48      PHA
A2 18   LDX #24
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
|<pre>B8   ... CLV     &times; 55
08      PHP
50 00   BVC *+2</pre>||Clobbers V
38      SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
|}
 
 
=== 114 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>EA       NOP
|<pre>A9       LDA #87
08      PHP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
28      PLP
|-
08      PHP
!colspan="2"|6 bytes
48      PHA
|-
|<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 FC    BCS *-2
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>48      PHA
 
A2 16    LDX #22
 
CA      DEX
=== 140 cycles ===
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #113
|<pre>48       PHA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A0 16    LDY #22
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>68      PLA
|<pre>A5 A5    LDA $A5
A0 1B   LDY #27
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
88       DEY
0A       ASL A ;first loop only
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>A6 A6    LDX $A6
A2 1B   LDX #27
A2 16   LDX #22
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>A4 A4    LDY $A4
|-
A0 16   LDY #22
|<pre>EA  ... NOP      &times; 2
A0 1B   LDY #27
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #106
A9      LDA #80
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #106
A9      LDA #80
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>EA      NOP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FC    BNE *-2</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>08      PHP
38      SEC
A2 18   LDX #24 ;hides 'CLC'
A9 1B    LDA #27
CA   ... DEX     &times; 2
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A2 1A   LDX #26
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A0 18   LDY #24 ;hides 'CLC'
A0 1A   LDY #26
88   ... DEY     &times; 2
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>A5 A5    LDA $A5
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 1A   LDA #26
08      PHP
E9 01    SBC #1
28      PLP
D0 F9   BNE *-5
18      CLC
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38      SEC
48      PHA
A9 1A    LDA #26
A9      LDA #73
E9 01    SBC #1
20 xx xx JSR delay_a_25_clocks
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #99
20 xx xx JSR delay_a_25_clocks
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"|11 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
18      CLC
8C       TXA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
20 xx xx JSR @rts15
90 F9    BCC *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
!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
08       PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A2 14   LDX #20
0A       ASL A ;first loop only
CA       DEX
D0 FC   BNE *-2
D0 FD   BNE *-1
68      PLA
68      PLA
28       PLP</pre>||Requires @rts12, and @rts15; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|11 bytes
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
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
98       TYA
28      PLP
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A0 13   LDY #19
0A       ASL A ;first loop only
88       DEY
B0 FC   BCS *-2
D0 FD   BNE *-1
68      PLA
68      PLA
28       PLP</pre>||Clobbers S; and writes in stack
A8       TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18  ... CLC      &times; 2
90 00    BCC *+2
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38      SEC
A9 0D    LDA #13
24 24    BIT $24
24 24    BIT $24
28      PLP
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
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
38      SEC
0A      ASL A ;first loop only
A9 13   LDA #19
B0 FC   BCS *-2
E9 01    SBC #1
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|29 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 28</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|33 bytes
|-
|<pre>EA      NOP
68      PLA      \ &times; 16
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|38 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|57 bytes
|-
|<pre>EA  ... NOP      &times; 57</pre>||No requirements
|-
|-
|}
|}




=== 141 cycles ===
=== 115 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A0 1C   LDY #28
|<pre>A9      LDA #88
88       DEY
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 Y, and Z&N
|-
!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>A2 1C   LDX #28
|<pre>68      PLA
A2 16   LDX #22
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A9       LDA #114
|<pre>68       PLA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A0 16    LDY #22
88      DEY
D0 FD    BNE *-1</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
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>EA  ... NOP      &times; 2
A2 16    LDX #22
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 16    LDY #22
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #107
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
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      LDA #107
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>EA      NOP
0A      ASL A ;first loop only
EA      NOP
08      PHP
08      PHP
28       PLP
A2 15    LDX #21
30 F9   BMI *-5</pre>||Clobbers A, Z&N, C, and V; and writes in stack
CA       DEX
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A0 13   LDY #19
08      PHP
EA      NOP
A0 15   LDY #21
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>18      CLC
A2 13   LDX #19
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
20 xx xx JSR @rts14
CA       DEX
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
D0 FA    BNE *-4
|-
28      PLP</pre>||Clobbers X; and writes in stack
|<pre>68       PLA
A9 0A   LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 15    LDA #21
E9 01    SBC #1
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 15    LDA #21
E9 01    SBC #1
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #100
A9      LDA #74
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>8C       TXA
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 36    ROL $36,X
76 36    ROR $36,X
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C
|-
|<pre>00 00    BRK 0
48      PHA
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>EA  ... NOP      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
08      PHP
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
28      PLP
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|11 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
20 xx xx JSR @rts14
B0 F9    BCS *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>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</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|<pre>68      PLA
8C      TXA
48      PHA
48      PHA
A2 19   LDX #25
38      SEC
CA       DEX
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA       NOP
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!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
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
08      PHP      \ &times; 2
28      PLP      /
B0 F8    BCS *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
20 xx xx JSR @rts15
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 18,927: Line 20,879:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
A9 0E   LDA #14
EA      NOP
EA      NOP
08      PHP
E9 01    SBC #1
28      PLP
D0 FA   BNE *-4
18      CLC
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|29 bytes
 
|-
 
|<pre>68      PLA
=== 142 cycles ===
48      PHA
{| class="wikitable testtable"
68  ... PLA      &times; 27</pre>||Clobbers A, S, and Z&N
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #115
!colspan="2"|33 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"|7 bytes
|<pre>68      PLA      \ &times; 8
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0    BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
|<pre>A0 98    LDY #152 ;hides 'TYA'
!colspan="2"|39 bytes
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>EA      NOP
EA      NOP
E6 xx    INC @zptemp
CA  ... DEX      &times; 2
36 36    ROL $36,X \ &times; 9
30 FA   BMI *-4</pre>||Clobbers A, X, and Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>A2 1B    LDX #27
|<pre>FE 00 02 INC $0200,X
CA      DEX
36 36   ROL $36,X \ &times; 9
D0 FB   BNE *-3
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
F6 xx   INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>FE 00 03 INC $0300,X
A9      LDA #108
36 36    ROL $36,X \ &times; 9
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 04 INC $0400,X
A9      LDA #108
36 36    ROL $36,X \ &times; 9
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>A0 1A   LDY #26 ;hides 'NOP'
|<pre>FE 00 05 INC $0500,X
EA      NOP
36 36   ROL $36,X \ &times; 9
88  ... DEY      &times; 2
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 1A   LDX #26 ;hides 'NOP'
|<pre>FE 00 06 INC $0600,X
EA      NOP
36 36   ROL $36,X \ &times; 9
CA  ... DEX      &times; 2
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>FE 00 07 INC $0700,X
A0 1B   LDY #27
36 36    ROL $36,X \ &times; 9
88      DEY
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|40 bytes
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>C5 C5    CMP $C5
38      SEC
26 26    ROL $26
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
66 26   ROR $26
3A      NOP ;first loop only
36 36    ROL $36,X \ &times; 4
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|8 bytes
|<pre>24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP     &times; 3
|<pre>04 04    NOP $04
A2 1B   LDX #27
26 26    ROL $26
CA      DEX
66 26    ROR $26
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
36 36    ROL $36,X \ &times; 4
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|41 bytes
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>4C xx xx JMP *+3
38      SEC
26 26    ROL $26
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
66 26    ROR $26
3A      NOP ;first loop only
36 36    ROL $36,X \ &times; 4
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>68      PLA
!colspan="2"|42 bytes
38      SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>98      TYA
!colspan="2"|58 bytes
48      PHA
A0 1A    LDY #26
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
|<pre>18   ... CLC     &times; 56
08      PHP
90 00   BCC *+2</pre>||Clobbers C
A0 1A    LDY #26
88      DEY
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>B8   ... CLV     &times; 56
08      PHP
50 00   BVC *+2</pre>||Clobbers V
A2 1A    LDX #26
CA      DEX
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|}
A9 0A    LDA #$0A ;hides 'ASL A'
 
20 xx xx JSR @rts12
 
D0 FA    BNE *-4
=== 116 cycles ===
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>08      PHP
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 0A   LDA #$0A ;hides 'ASL A'
0A      ASL A ;first loop only
20 xx xx JSR @rts12
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A2 17   LDX #23
48      PHA
A9      LDA #101
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
8C      TXA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
38      SEC
A9 1A    LDA #26
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 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 143 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #116
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 1C   LDX #28
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>A0 17   LDY #23
A0 1C   LDY #28
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|<pre>18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!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
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #109
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
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      LDA #109
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
Line 19,154: Line 21,014:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>08      PHP
48   ... PHA     &times; 2
A0 88   LDY #136 ;hides 'DEY'
F6 F6    INC $F6,X
30 FB    BMI *-3
28      PLP</pre>||Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>48       PHA
08      PHP
A2 15    LDX #21
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
08      PHP
28       PLP
A0 15    LDY #21
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
88       DEY
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>08      PHP
EA  ... NOP      &times; 2
A6 A6    LDX $A6
A2 15    LDX #21
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 15    LDY #21
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #102
A9      LDA #75
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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>48      PHA
|<pre>48      PHA
38       SEC
18       CLC
A9 13   LDA #19
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
00 00   BRK 0
E9 01   SBC #1
90 FB   BCC *-3
D0 F8   BNE *-6
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38       SEC
18       CLC
A9 13   LDA #19
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
00 00   BRK 0
E9 01   SBC #1
90 FB   BCC *-3
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>EA       NOP
|-
|<pre>08       PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 12   LDA #18
08       PHP
EA       NOP
28      PLP
E9 01    SBC #1
18      CLC
D0 F8   BNE *-6
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|10 bytes
 
 
=== 144 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #117
|<pre>EA      NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|6 bytes
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18      CLC
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>08       PHP
A0 1C   LDY #28
A9 0A   LDA #$0A ;hides 'ASL A'
88       DEY
20 xx xx JSR @rts15
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
18       CLC
10 F9   BPL *-5
28      PLP</pre>||Clobbers A; requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 1C    LDX #28
18       CLC
CA      DEX
A9 F4   LDA #244 ;hides 'NOP zp,X'
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
EA       NOP
|-
69 01   ADC #1
!colspan="2"|7 bytes
|-
|<pre>A4 A4    LDY $A4
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 A6    LDX $A6
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>48      PHA
A9       LDA #110
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 #110
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      &times; 2
38      SEC
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;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"|9 bytes
|-
|<pre>08      PHP
A2 11   LDX #17
C5 C5    CMP $C5
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers X; 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
A0 11   LDY #17
18      CLC
24 24   BIT $24
A9 F4   LDA #244 ;hides 'NOP zp,X'
88      DEY
EA      NOP
69 01   ADC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>68       PLA
8C      TXA
48      PHA
48      PHA
A9       LDA #103
A2 14    LDX #20
20 xx xx JSR delay_a_25_clocks
CA       DEX
D0 FD    BNE *-1
68      PLA
68      PLA
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
AA       TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|11 bytes
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>98      TYA
38      SEC
A9 1B    LDA #27
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
98      TYA
48      PHA
48      PHA
A0 1A   LDY #26
A0 0D   LDY #13
A5 A5    LDA $A5
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
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>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
18  ... CLC      &times; 2
90 00    BCC *+2
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<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 @rts12
08      PHP
D0 FA   BNE *-4
F6 F6    INC $F6,X
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
28      PLP
90 F9   BCC *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
18       CLC
F6 F6    INC $F6,X
A9 0A   LDA #$0A ;hides 'ASL A'
38       SEC
20 xx xx JSR @rts12
A9 14   LDA #20
D0 FA   BNE *-4
E9 01    SBC #1
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>20 xx xx JSR @rts14
|-
|<pre>48      PHA
8C      TXA
48      PHA
48      PHA
A2 19   LDX #25
A9 0A   LDA #$0A ;hides 'ASL A'
CA       DEX
08       PHP
28      PLP
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
AA       TAX
|-
68      PLA</pre>||Clobbers Z&N; and writes in stack
|<pre>20 xx xx JSR @rts14
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
38      SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>48   ... PHA     &times; 2
08      PHP
08      PHP
38      SEC
38      SEC
A9 1A   LDA #26
A9 14   LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
28      PLP
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 19   LDA #25
08      PHP
E9 01    SBC #1
28      PLP
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>EA      NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18  ... CLC      &times; 2
90 00    BCC *+2
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|29 bytes
|-
|<pre>68  ... PLA      &times; 29</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|33 bytes
|-
|<pre>68      PLA      \ &times; 7
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 14
10 EE    BPL *-16</pre>||Clobbers A, and Z&N
|-
!colspan="2"|39 bytes
|-
|<pre>EA      NOP
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|58 bytes
|-
|<pre>EA  ... NOP      &times; 58</pre>||No requirements
|-
|-
|}
|}




=== 145 cycles ===
=== 117 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #118
|<pre>A9      LDA #90
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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"|7 bytes
|-
|<pre>A2 0D    LDX #13 ;hides 'ORA abs'
A5 A5    LDA $A5
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 12   LDY #18
|<pre>A0 0D   LDY #13 ;hides 'ORA abs'
48      PHA
A5 A5    LDA $A5
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 A, Y, and Z&N
|-
|-
|<pre>A2 12   LDX #18
|<pre>A2 16   LDX #22
48      PHA
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FD   BNE *-1
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
!colspan="2"|7 bytes
|<pre>F6 F6    INC $F6,X
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; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>F6 F6   INC $F6,X
A2 1C   LDX #28
A0 16   LDY #22
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 1C   LDY #28
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #111
A9      LDA #83
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #111
A9      LDA #83
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>EA      NOP
|<pre>EA      NOP
18       CLC
68       PLA
A9 EB   LDA #$EB ;hides 'SBC #$7A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
7A       NOP ;first loop only
0A       ASL A ;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, S, Z&N, C, and V
|-
|<pre>48  ... PHA      &times; 2
A2 16    LDX #22
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 16    LDY #22
88      DEY
D0 FD    BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 3
38      SEC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 1C   LDA #28
0A      ASL A ;first loop only
E9 01    SBC #1
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA  ... NOP      &times; 3
A2 16    LDX #22
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 3
08      PHP
A0 16   LDY #22
A0 1B   LDY #27
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
28       PLP</pre>||Clobbers Y; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 15    LDX #21
CA      DEX
D0 FD    BNE *-1
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
A2 1B   LDX #27
A2 15   LDX #21
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
38       SEC
08       PHP
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
A0 15   LDY #21
3A       NOP ;first loop only
88       DEY
D0 FC   BNE *-2
D0 FD   BNE *-1
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
28       PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38       SEC
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
A9       LDA #76
3A       NOP ;first loop only
20 xx xx JSR delay_a_25_clocks
D0 FC    BNE *-2
68       PLA
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
48      PHA
38      SEC
38      SEC
A9 1B   LDA #27
A9 15   LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
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
|<pre>EA      NOP
08      PHP
38      SEC
38      SEC
A9 1B   LDA #27
A9 15   LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9       LDA #104
38      SEC
20 xx xx JSR delay_a_25_clocks
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>18   ... CLC     &times; 2
|-
|<pre>48   ... PHA     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
EA      NOP
D0 FA   BNE *-4
36 36    ROL $36,X
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12; and writes in stack
76 36    ROR $36,X
90 F8   BCC *-6</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>C5 C5    CMP $C5
|<pre>EA      NOP
68      PLA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
68   ... PLA     &times; 27</pre>||Clobbers A, S, and Z&N
20 xx xx JSR @rts12
|-
D0 FA    BNE *-4
!colspan="2"|34 bytes
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>36 36   ROL $36,X
8C      TXA
76 36   ROR $36,X
48      PHA
68      PLA       \ &times; 15
A2 E8   LDX #232 ;hides 'INX'
48       PHA       /</pre>||Clobbers A, and Z&N
D0 FD   BNE *-1
68      PLA
AA       TAX
68       PLA</pre>||Clobbers S, and Z&N; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|40 bytes
|-
|-
|<pre>48      PHA
|<pre>C5 C5    CMP $C5
8C      TXA
36 36   ROL $36,X \ &times; 5
48      PHA
76 36   ROR $36,X /
A2 12   LDX #18
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
EA      NOP
CA      DEX
D0 FA   BNE *-4
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>24 24    BIT $24
48      PHA
36 36   ROL $36,X \ &times; 5
18      CLC
76 36    ROR $36,X /
A9 69   LDA #$69 ;hides 'ADC #$F8'
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
F8      SED ;first loop only
85 xx    STA @zptemp
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>E6 xx   INC @zptemp
08      PHP
26 26    ROL $26
48      PHA
66 26    ROR $26
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
36 36   ROL $36,X \ &times; 4
0A      ASL A ;first loop only
76 36    ROR $36,X /
B0 FC    BCS *-2
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
68      PLA
28      PLP</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
FE 00 02 INC $0200,X
18      CLC
36 36   ROL $36,X \ &times; 9
A9 69   LDA #$69 ;hides 'ADC #$F8'
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
F8      SED ;first loop only
04 04   NOP $04
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
08      PHP
FE 00 03 INC $0300,X
48      PHA
36 36   ROL $36,X \ &times; 9
38      SEC
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
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
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
FE 00 05 INC $0500,X
38      SEC
36 36   ROL $36,X \ &times; 9
A9 10   LDA #16
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
24 24   BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>EA      NOP
 
FE 00 06 INC $0600,X
 
36 36    ROL $36,X \ &times; 9
=== 146 cycles ===
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
{| class="wikitable testtable"
|-
!colspan="2"|5 bytes
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>04 04    NOP $04
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|41 bytes
|-
|-
|<pre>A0 1D   LDY #29
|<pre>4C xx xx JMP *+3
88      DEY
36 36   ROL $36,X \ &times; 5
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>A2 1D    LDX #29
!colspan="2"|42 bytes
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #119
|<pre>36 36    ROL $36,X \ &times; 6
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|59 bytes
|-
|-
|<pre>48      PHA
|<pre>18  ... CLC      &times; 57
A9      LDA #112
90 00    BCC *+2</pre>||Clobbers 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>B8  ... CLV      &times; 57
A9      LDA #112
50 00    BVC *+2</pre>||Clobbers V
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
|}
18      CLC
 
A9 EB    LDA #$EB ;hides 'SBC #$7A'
 
7A      NOP ;first loop only
=== 118 cycles ===
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
!colspan="2"|8 bytes
|<pre>A9      LDA #91
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>04 04    NOP $04
!colspan="2"|6 bytes
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>48       PHA
|<pre>18       CLC
38      SEC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 1C   LDA #28
0A      ASL A ;first loop only
E9 01    SBC #1
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
08      PHP
A2 17   LDX #23
A2 1B   LDX #27
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
08      PHP
A0 17   LDY #23
A0 1B   LDY #27
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A5 A5    LDA $A5
|<pre>48       PHA
38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A9 1C   LDA #28
0A      ASL A ;first loop only
E9 01    SBC #1
D0 FC   BNE *-2
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 A4   LDY $A4
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A0 1B    LDY #27
0A       ASL A ;first loop only
88       DEY
D0 FC   BNE *-2
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 A6    LDX $A6
A2 16   LDX #22
A2 1B   LDX #27
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A0 16    LDY #22
A9       LDA #105
88       DEY
20 xx xx JSR delay_a_25_clocks
D0 FD    BNE *-1
68      PLA
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
08      PHP
08      PHP
28      PLP
28      PLP
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
18       CLC
|-
D0 FA    BNE *-4
!colspan="2"|10 bytes
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>48       PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 04    NOP $04
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 04    NOP $04
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>68      PLA
98      TYA
48      PHA
48      PHA
A0 1A    LDY #26
A9      LDA #77
88      DEY
20 xx xx JSR delay_a_25_clocks
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>68      PLA
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
|-
|<pre>08      PHP
38      SEC
A9 11    LDA #17
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
18  ... CLC      &times; 2
D0 FA   BNE *-4
90 00    BCC *+2
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
18      CLC
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48      PHA
48      PHA
8C       TXA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
10 F9    BPL *-5
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>08      PHP
48      PHA
48      PHA
A2 19   LDX #25
A9 0A   LDA #$0A ;hides 'ASL A'
CA      DEX
85 xx    STA @zptemp
D0 FB   BNE *-3
00 00    BRK 0
10 F9   BPL *-5
68      PLA
68      PLA
AA       TAX
28       PLP</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>08      PHP
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
48      PHA
38      SEC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 19   LDA #25
04 04    NOP $04
E9 01   SBC #1
00 00    BRK 0
D0 F9   BNE *-5
10 F9    BPL *-5
68      PLA
28      PLP</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 FB   BNE *-3
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>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
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|30 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 29</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|34 bytes
|-
|<pre>EA      NOP
68      PLA      \ &times; 7
48      PHA      /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 14
10 EE    BPL *-16</pre>||Clobbers A, and Z&N
|-
!colspan="2"|40 bytes
|-
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N
|-
!colspan="2"|59 bytes
|-
|<pre>EA  ... NOP      &times; 59</pre>||No requirements
|-
|-
|}
|}




=== 147 cycles ===
=== 119 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #120
|<pre>A9      LDA #92
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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 88    LDY #136 ;hides 'DEY'
08      PHP
28      PLP
30 FB    BMI *-3</pre>||Clobbers Y, and Z&N; and writes in stack
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
68      PLA
48      PHA
30 FB    BMI *-3</pre>||Clobbers A, Y, and Z&N
|-
|<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
A2 17    LDX #23
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 1C   LDX #28
|<pre>A5 A5    LDA $A5
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>A6 A6    LDX $A6
A2 17   LDX #23
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
F6 xx   INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>A4 A4    LDY $A4
A0 17    LDY #23
88      DEY
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #113
A9      LDA #85
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #113
A9      LDA #85
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      &times; 2
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
A2 1C    LDX #28
48      PHA
CA      DEX
08       PHP
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
28      PLP
|-
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|<pre>48  ... PHA      &times; 2
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
18      CLC
A9 EB   LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
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>18      CLC
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
A9 69   LDA #$69 ;hides 'ADC #$F8'
08       PHP
F8       SED ;first loop only
24 24    BIT $24
EA  ... NOP      &times; 2
28      PLP
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|9 bytes
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
A2 1C   LDX #28
EA  ... NOP      &times; 4
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C
7A      NOP ;first loop only
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>68       PLA
|<pre>08       PHP
38      SEC
A2 15   LDX #21
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>38      SEC
A9 12    LDA #18
48      PHA
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 1B   LDX #27
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
68      PLA
F6 xx    INC @zptemp,X
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
28       PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
08      PHP
F6 F6    INC $F6,X
A0 1B   LDY #27
A0 15   LDY #21
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #106
A9      LDA #78
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
|<pre>48   ... PHA     &times; 2
48       PHA
08       PHP
38       SEC
A2 15   LDX #21
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
CA       DEX
3A       NOP ;first loop only
D0 FD   BNE *-1
D0 FC   BNE *-2
28       PLP</pre>||Clobbers X, 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>EA      NOP
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
38      SEC
A0 15   LDY #21
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
88       DEY
3A       NOP ;first loop only
D0 FD   BNE *-1
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y, and S; 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>EA      NOP
|<pre>EA      NOP
8C      TXA
48      PHA
48      PHA
38      SEC
A2 15   LDX #21
A9 1B   LDA #27
CA      DEX
E9 01    SBC #1
D0 FD   BNE *-1
D0 F9   BNE *-5
68      PLA
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA   ... NOP      &times; 3
08      PHP
A2 15    LDX #21
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 15    LDY #21
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
28      PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 14    LDX #20
CA      DEX
D0 FD    BNE *-1
68      PLA
AA      TAX
68       PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA  ... NOP     &times; 2
08      PHP
08      PHP
38      SEC
38      SEC
A9 1B   LDA #27
A9 15   LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 1A   LDA #26
A9 14   LDA #20
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|30 bytes
 
 
=== 148 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #121
|<pre>68       PLA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA
68  ... PLA      &times; 28</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|34 bytes
|-
|-
|<pre>A0 15    LDY #21
|<pre>68      PLA      \ &times; 17
EA       NOP
48       PHA       /</pre>||Clobbers A, and Z&N
88       DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 15    LDX #21
!colspan="2"|40 bytes
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>E6 xx    INC @zptemp
A9 E9   LDA #$E9 ;hides 'SBC #$9A'
36 36   ROL $36,X \ &times; 5
9A      TXS ;first loop only
76 36    ROR $36,X /
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|7 bytes
!colspan="2"|41 bytes
|-
|-
|<pre>38       SEC
|<pre>EA       NOP
A9 1D   LDA #29
C5 C5   CMP $C5
E9 01   SBC #1
36 36   ROL $36,X \ &times; 5
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
76 36   ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A0 1C   LDY #28
24 24   BIT $24
88      DEY
36 36    ROL $36,X \ &times; 5
D0 FB   BNE *-3
76 36   ROR $36,X /
28      PLP</pre>||Clobbers Y; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|-
|<pre>08      PHP
|<pre>FE 00 02 INC $0200,X
A2 1C   LDX #28
26 26   ROL $26
CA      DEX
66 26    ROR $26
D0 FB   BNE *-3
36 36   ROL $36,X \ &times; 4
28      PLP</pre>||Clobbers X; and writes in stack
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 03 INC $0300,X
A9      LDA #114
26 26    ROL $26
20 xx xx JSR delay_a_25_clocks
66 26    ROR $26
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 04 INC $0400,X
A9      LDA #114
26 26    ROL $26
20 xx xx JSR delay_a_25_clocks
66 26    ROR $26
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
!colspan="2"|9 bytes
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 4
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 06 INC $0600,X
48      PHA
26 26    ROL $26
A9      LDA #107
66 26    ROR $26
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 4
68      PLA
76 36    ROR $36,X /
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>FE 00 07 INC $0700,X
38      SEC
26 26    ROL $26
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
66 26   ROR $26
3A      NOP ;first loop only
36 36    ROL $36,X \ &times; 4
D0 FC   BNE *-2
76 36   ROR $36,X /
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
08      PHP
04 04    NOP $04
38      SEC
36 36   ROL $36,X \ &times; 5
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
76 36    ROR $36,X /
3A      NOP ;first loop only
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
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"|42 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
4C xx xx JMP *+3
0A      ASL A ;first loop only
36 36   ROL $36,X \ &times; 5
EA      NOP
76 36    ROR $36,X /
08      PHP
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
28      PLP
30 F9    BMI *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|43 bytes
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</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>EA      NOP
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>48  ... PHA      &times; 3
!colspan="2"|60 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>18  ... CLC      &times; 58
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>48      PHA
|<pre>B8  ... CLV      &times; 58
8C      TXA
50 00   BVC *+2</pre>||Clobbers V
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
|}
48      PHA
 
A9 0A    LDA #$0A ;hides 'ASL A'
 
20 xx xx JSR @rts12
=== 120 cycles ===
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>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</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
8C      TXA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68      PLA
AA      TAX
68      PLA</pre>||Clobbers S, and Z&N; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
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
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 149 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #122
|<pre>A9      LDA #93
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
|<pre>A2 11    LDX #17
A0 1D   LDY #29
EA      NOP
CA       DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|<pre>A0 11   LDY #17
EA      NOP
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48       PHA
|<pre>68       PLA
A2 1D   LDX #29
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
B0 FC   BCS *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A6 A6   LDX $A6
|<pre>EA  ... NOP      &times; 2
A2 1D    LDX #29
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
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>A4 A4    LDY $A4
A0 1D    LDY #29
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #115
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
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      LDA #115
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
Line 20,100: Line 21,978:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
18      CLC
18      CLC
A9 EB   LDA #$EB ;hides 'SBC #$7A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
7A       NOP ;first loop only
0A       ASL A ;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
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>08       PHP
|-
|<pre>EA       NOP
18      CLC
18      CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
F8       SED ;first loop only
0A       ASL A ;first loop only
EA  ... NOP      &times; 2
D0 FC   BNE *-2
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 98   LDY #152 ;hides 'TYA'
A2 10   LDX #16
EA      NOP
EA      NOP
88  ... DEY      &times; 2
CA      DEX
30 FA   BMI *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 98   LDX #152 ;hides 'TYA'
A0 10   LDY #16
EA      NOP
EA      NOP
CA  ... DEX      &times; 2
88      DEY
30 FA   BMI *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|9 bytes
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #108
A9      LDA #79
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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      &times; 3
!colspan="2"|10 bytes
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
D0 FA   BNE *-4
7A      NOP ;first loop only
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
!colspan="2"|12 bytes
A2 1A    LDX #26 ;hides 'NOP'
EA      NOP
CA  ... DEX      &times; 2
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA      NOP
A0 1A   LDY #26 ;hides 'NOP'
68       PLA
EA      NOP
48      PHA
88   ... DEY     &times; 2
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FA   BNE *-4
18   ... CLC     &times; 2
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
90 00    BCC *+2
18      CLC
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>48       PHA
08      PHP
48      PHA
38      SEC
38      SEC
A9 1C   LDA #28
A9 14   LDA #20
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
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|13 bytes
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>08       PHP
08       PHP
24 24    BIT $24
48       PHA
38      SEC
38      SEC
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
A9 14   LDA #20
3A      NOP ;first loop only
E9 01    SBC #1
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
8C      TXA
48      PHA
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
28       PLP</pre>||Writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|30 bytes
08      PHP
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 3
|<pre>68   ... PLA     &times; 30</pre>||Clobbers A, S, and Z&N
08      PHP
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
!colspan="2"|35 bytes
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>68      PLA      \ &times; 7
08       PHP
48      PHA       /
38      SEC
36 36    ROL $36,X
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
76 36    ROR $36,X
3A       NOP ;first loop only
A9 09   LDA #$09 ;hides 'ORA #$EA'
D0 FC   BNE *-2
EA       NOP ;first loop only
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
EA  ... NOP      &times; 12
10 F0   BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|40 bytes
|-
|-
|<pre>48      PHA
|<pre>36 36   ROL $36,X \ &times; 10
98      TYA
76 36   ROR $36,X /</pre>||Clobbers Z&N
48      PHA
A0 1A   LDY #26
88      DEY
D0 FB   BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
38      SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
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"|60 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 60</pre>||No requirements
08      PHP
48      PHA
38      SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 150 cycles ===
=== 121 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #123
|<pre>A2 18    LDX #24
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
CA       DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|6 bytes
|<pre>A0 18   LDY #24
|-
|<pre>68      PLA
A0 1D   LDY #29
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68       PLA
|<pre>A9       LDA #94
A2 1D    LDX #29
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A0 1D    LDY #29
0A      ASL A ;first loop only
88       DEY
08      PHP
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
28       PLP
30 FA   BMI *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>E6 xx    INC @zptemp
A2 1D   LDX #29
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
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #116
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
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      LDA #116
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18      CLC
A5 A5    LDA $A5
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
9A       TXS ;first loop only
0A       ASL A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|8 bytes
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL 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>38       SEC
|<pre>18       CLC
A9 15   LDA #21
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
E9 01   SBC #1
00 00   BRK 0
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA       NOP
|<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
08      PHP
08      PHP
A0 1C   LDY #28
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
88       DEY
0A       ASL A ;first loop only
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
08      PHP
08      PHP
A2 1C   LDX #28
A2 16   LDX #22
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
18       CLC
08       PHP
A9 EB   LDA #$EB ;hides 'SBC #$7A'
A0 16    LDY #22
7A       NOP ;first loop only
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>24 24    BIT $24
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;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
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
18      CLC
A5 A5    LDA $A5
A9 EB   LDA #$EB ;hides 'SBC #$7A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
7A       NOP ;first loop only
0A       ASL A ;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
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>08       PHP
|-
A6 A6    LDX $A6
|<pre>48       PHA
A2 16   LDX #22
38      SEC
CA      DEX
A9 1C   LDA #28
D0 FD   BNE *-1
E9 01    SBC #1
28       PLP</pre>||Clobbers X; and writes in stack
D0 F9   BNE *-5
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38      SEC
A4 A4    LDY $A4
A9 1C   LDA #28
A0 16   LDY #22
E9 01    SBC #1
88      DEY
D0 F9   BNE *-5
D0 FD   BNE *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #109
A9      LDA #80
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 4
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>C5 C5    CMP $C5
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
D0 F8   BNE *-6
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
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
8C      TXA
48      PHA
48      PHA
38      SEC
A2 14    LDX #20
A9 13   LDA #19
CA      DEX
EA      NOP
D0 FD    BNE *-1
E9 01    SBC #1
68      PLA
D0 F8   BNE *-6
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 14   LDA #20
E9 01    SBC #1
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|31 bytes
 
 
=== 151 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A2 1E    LDX #30
|<pre>EA      NOP
CA       DEX
68      PLA
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
48       PHA
68  ... PLA      &times; 28</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>A0 1E    LDY #30
!colspan="2"|35 bytes
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9       LDA #124
|<pre>EA       NOP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
68      PLA      \ &times; 17
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|41 bytes
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
20 xx xx JSR @rts14
E6 xx   INC @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>FE 00 02 INC $0200,X
A9      LDA #117
36 36    ROL $36,X \ &times; 5
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>08      PHP
|<pre>FE 00 03 INC $0300,X
A9      LDA #117
36 36    ROL $36,X \ &times; 5
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 04 INC $0400,X
18      CLC
36 36   ROL $36,X \ &times; 5
A9 E9   LDA #$E9 ;hides 'SBC #$9A'
76 36    ROR $36,X /
9A      TXS ;first loop only
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<pre>FE 00 05 INC $0500,X
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>FE 00 06 INC $0600,X
08      PHP      \ &times; 2
36 36   ROL $36,X \ &times; 5
28      PLP      /
76 36    ROR $36,X /
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 07 INC $0700,X
08      PHP
36 36   ROL $36,X \ &times; 5
A0 1C   LDY #28
76 36   ROR $36,X /
88      DEY
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|42 bytes
08      PHP
A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>24 24    BIT $24
A4 A4   LDY $A4
26 26   ROL $26
A0 1C   LDY #28
66 26   ROR $26
88      DEY
36 36    ROL $36,X \ &times; 9
D0 FB   BNE *-3
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>04 04    NOP $04
A6 A6   LDX $A6
26 26   ROL $26
A2 1C   LDX #28
66 26   ROR $26
CA      DEX
36 36    ROL $36,X \ &times; 9
D0 FB   BNE *-3
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|43 bytes
48      PHA
A9      LDA #110
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>4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>68      PLA
!colspan="2"|44 bytes
8C      TXA
48      PHA
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 3
|<pre>EA   ... NOP     &times; 2
38      SEC
36 36   ROL $36,X \ &times; 6
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
76 36    ROR $36,X /
3A      NOP ;first loop only
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|61 bytes
08      PHP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>18  ... CLC      &times; 59
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>B8   ... CLV     &times; 59
8C      TXA
50 00   BVC *+2</pre>||Clobbers V
48      PHA
A2 1B   LDX #27
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|}
48      PHA
 
38      SEC
 
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
=== 122 cycles ===
3A      NOP ;first loop only
{| class="wikitable testtable"
D0 FC    BNE *-2
!colspan="2"|6 bytes
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA   ... NOP     &times; 3
|<pre>EA       NOP
08       PHP
A9       LDA #93
38      SEC
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 3
!colspan="2"|7 bytes
38      SEC
A9 1B    LDA #27
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      &times; 2
|<pre>38      SEC
08      PHP
A9 69   LDA #$69 ;hides 'ADC #$F8'
38      SEC
F8      SED ;first loop only
A9 1B   LDA #27
EA      NOP
E9 01    SBC #1
10 FB   BPL *-3</pre>||Clobbers A, Z&N, C, V, and D
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>EA      NOP
A2 11    LDX #17
EA      NOP
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
A0 11   LDY #17
98      TYA
EA      NOP
48      PHA
A0 1A   LDY #26
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
68      PLA
|-
A8      TAY
|<pre>F6 F6    INC $F6,X
68      PLA</pre>||Clobbers Z&N; and writes in stack
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|-
0A      ASL A ;first loop only
|<pre>EA  ... NOP      &times; 3
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
08      PHP
38      SEC
A9 1B   LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
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
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
38      SEC
A9 1A   LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 152 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #125
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>A2 1D    LDX #29
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #118
A9      LDA #88
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #118
A9      LDA #88
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
|<pre>EA      NOP
18      CLC
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
9A       TXS ;first loop only
0A       ASL A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
B0 FC    BCS *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>48  ... PHA      &times; 2
A2 1D    LDX #29
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 1D    LDY #29
88      DEY
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
|<pre>38      SEC
A2 1D   LDX #29
A9 11    LDA #17
CA      DEX
EA       NOP
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
E9 01   SBC #1
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>68      PLA
A0 1D   LDY #29
08      PHP
88       DEY
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
0A       ASL A ;first loop only
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98      TYA
|<pre>EA  ... NOP      &times; 2
48      PHA
48      PHA
A0 1C   LDY #28
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
88       DEY
0A       ASL A ;first loop only
D0 FB   BNE *-3
D0 FC   BNE *-2
68      PLA
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 1C   LDX #28
A2 16   LDX #22
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; 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
A0 1C   LDY #28
A0 16   LDY #22
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #111
A9      LDA #81
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
!colspan="2"|10 bytes
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;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
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
08      PHP
18      CLC
18      CLC
A9 EB   LDA #$EB ;hides 'SBC #$7A'
A9 0A   LDA #$0A ;hides 'ASL A'
7A      NOP ;first loop only
20 xx xx JSR @rts14
D0 FC   BNE *-2
90 FA   BCC *-4
28       PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
68       PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 1C   LDA #28
A9 15   LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA
28      PLP</pre>||Writes in stack
|-
|<pre>A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 4
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|31 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
68  ... PLA      &times; 30</pre>||Clobbers A, S, and Z&N
38       SEC
|-
A9 1C   LDA #28
!colspan="2"|35 bytes
E9 01    SBC #1
|-
D0 F9   BNE *-5
|<pre>68       PLA      \ &times; 9
28      PLP</pre>||Clobbers A; and writes in stack
48      PHA       /
A9 09   LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 12
10 F0   BPL *-14</pre>||Clobbers A, and Z&N
|-
!colspan="2"|41 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
36 36   ROL $36,X \ &times; 10
38      SEC
76 36   ROR $36,X /</pre>||Clobbers Z&N
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FC   BNE *-2
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|61 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 61</pre>||No requirements
48      PHA
38      SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 153 cycles ===
=== 123 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 EA    LDY #234 ;hides 'NOP'
|<pre>EA       NOP
C8       INY
A2 18   LDX #24
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
CA       DEX
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A2 EA    LDX #234 ;hides 'NOP'
|<pre>EA       NOP
E8       INX
A0 18   LDY #24
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
88       DEY
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #126
|<pre>EA      NOP
A9      LDA #94
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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"|7 bytes
|-
|-
|<pre>18       CLC
|<pre>48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
08       PHP ;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
B0 FC    BCS *-2
|-
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
!colspan="2"|7 bytes
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 1E   LDA #30
A9 18   LDA #24
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 1D   LDX #29
A2 17   LDX #23
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 1D   LDY #29
A0 17   LDY #23
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
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
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #119
48      PHA
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
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>18       CLC
|<pre>68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
EA  ... NOP      &times; 4
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
18      CLC
D0 F8   BNE *-6</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|11 bytes
|-
|-
!colspan="2"|9 bytes
|<pre>EA  ... NOP      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 4
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>18       CLC
|<pre>E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP       \ &times; 2
08      PHP
28      PLP      /
28      PLP
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
18       CLC
D0 FA   BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9       LDA #112
18      CLC
20 xx xx JSR delay_a_25_clocks
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
D0 FA   BNE *-4
7A      NOP ;first loop only
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
D0 FC   BNE *-2
|-
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
C5 C5    CMP $C5
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
18      CLC
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
D0 FA   BNE *-4
7A      NOP ;first loop only
68       PLA</pre>||Clobbers Z&N, and C; 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
|<pre>08      PHP
|-
|<pre>04 04    NOP $04
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18      CLC
18      CLC
A9 EB   LDA #$EB ;hides 'SBC #$7A'
10 F9   BPL *-5
7A      NOP ;first loop only
68      PLA
D0 FC    BNE *-2
28      PLP</pre>||Requires @rts12, and @rts15; 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>08      PHP
08      PHP
48      PHA
18      CLC
18      CLC
A9 EB   LDA #$EB ;hides 'SBC #$7A'
A9 F4   LDA #244 ;hides 'NOP zp,X'
7A       NOP ;first loop only
EA       NOP
D0 FC    BNE *-2
69 01    ADC #1
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 1C    LDA #28
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
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|13 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
98       TYA
38      SEC
A9 1C    LDA #28
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
48      PHA
38      SEC
A0 0D   LDY #13
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
|-
|<pre>08      PHP
A5 A5    LDA $A5
A5 A5    LDA $A5
38       SEC
88       DEY
A9 1C    LDA #28
D0 FB   BNE *-3
E9 01    SBC #1
68       PLA
D0 F9   BNE *-5
A8      TAY
28       PLP</pre>||Clobbers A; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
38       SEC
18       CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
A9 0A   LDA #$0A ;hides 'ASL A'
F8       SED ;first loop only
08       PHP
85 xx   STA @zptemp
F6 F6   INC $F6,X
10 FA   BPL *-4
28      PLP
90 F9   BCC *-5
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp, and writable $00-$FF; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>20 xx xx JSR @rts14
08      PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 69   LDA #$69 ;hides 'ADC #$F8'
08       PHP
F8       SED ;first loop only
28      PLP
04 04    NOP $04
D0 FB   BNE *-3
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 2
08      PHP
08      PHP
28       PLP
48       PHA
18       CLC
38       SEC
D0 F8   BNE *-6
A9 14    LDA #20
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
E9 01    SBC #1
D0 FB   BNE *-3
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 3
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 11   LDA #17
A9 14   LDA #20
24 24    BIT $24
E9 01    SBC #1
E9 01    SBC #1
D0 F7   BNE *-7
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
!colspan="2"|31 bytes
 
 
=== 154 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #127
|<pre>68       PLA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
48      PHA
68  ... PLA      &times; 29</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|35 bytes
|-
|-
|<pre>48      PHA
|<pre>68      PLA      \ &times; 8
A0 1E   LDY #30
48      PHA       /
88       DEY
A9 09   LDA #$09 ;hides 'ORA #$EA'
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
EA       NOP ;first loop only
EA  ... NOP      &times; 14
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|42 bytes
A2 1E    LDX #30
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
|<pre>C5 C5    CMP $C5
36 36    ROL $36,X \ &times; 10
76 36    ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>A6 A6   LDX $A6
|<pre>24 24   BIT $24
A2 1E   LDX #30
36 36   ROL $36,X \ &times; 10
CA      DEX
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 A4   LDY $A4
|<pre>E6 xx   INC @zptemp
A0 1E   LDY #30
26 26    ROL $26
88      DEY
66 26   ROR $26
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
36 36    ROL $36,X \ &times; 9
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9      LDA #120
FE 00 02 INC $0200,X
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 5
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A9      LDA #120
FE 00 03 INC $0300,X
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 5
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|-
!colspan="2"|8 bytes
|<pre>EA      NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
18      CLC
FE 00 05 INC $0500,X
A9 E9   LDA #$E9 ;hides 'SBC #$9A'
36 36    ROL $36,X \ &times; 5
9A      TXS ;first loop only
76 36   ROR $36,X /
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A9 0A   LDA #$0A ;hides 'ASL A'
FE 00 06 INC $0600,X
20 xx xx JSR @rts14
36 36   ROL $36,X \ &times; 5
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
!colspan="2"|9 bytes
|<pre>EA      NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|-
|<pre>08      PHP
|<pre>04 04   NOP $04
A2 1C   LDX #28
36 36   ROL $36,X \ &times; 10
CA      DEX
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
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
!colspan="2"|43 bytes
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>08      PHP
|<pre>4C xx xx JMP *+3
48      PHA
36 36    ROL $36,X \ &times; 10
A9      LDA #113
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
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
!colspan="2"|45 bytes
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>EA   ... NOP     &times; 3
08      PHP
36 36   ROL $36,X \ &times; 6
A0 1C   LDY #28
76 36   ROR $36,X /
88      DEY
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|62 bytes
08      PHP
A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>18   ... CLC     &times; 60
08      PHP
90 00   BCC *+2</pre>||Clobbers C
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>B8  ... CLV      &times; 60
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>48      PHA
|}
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA  ... NOP      &times; 2
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA  ... NOP      &times; 2
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;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
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}




=== 155 cycles ===
=== 124 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>A9      LDA #128
|<pre>A2 E8    LDX #232 ;hides 'INX'
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$0A'
|<pre>48      PHA
0A       ASL A ;first loop only
A0 18   LDY #24
EA      NOP
88       DEY
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
D0 FD   BNE *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
A9      LDA #93
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>A2 16    LDX #22
!colspan="2"|7 bytes
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 16   LDY #22
|<pre>A4 A4    LDY $A4
EA      NOP
A0 18   LDY #24
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #121
A9      LDA #90
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A5 A5    LDA $A5
A9      LDA #121
A9      LDA #94
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|<pre>08      PHP
A9      LDA #90
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>00 00    BRK 0
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; requires dummy interrupt handler; and writes in stack
|-
|<pre>68  ... PLA      &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
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A0 15   LDY #21
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
88      DEY
10 FB   BPL *-3</pre>||Clobbers A, Z&N, C, V, and D
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A2 15   LDX #21
F6 F6   INC $F6,X
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
CA      DEX
0A       ASL A ;first loop only
D0 FA   BNE *-4
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
20 xx xx JSR @rts14
28      PLP
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
00 00    BRK 0
10 F9   BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
38      SEC
38      SEC
A9 1D   LDA #29
A9 11   LDA #17
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38      SEC
A2 0D    LDX #13 ;hides 'ORA abs'
A9 1D   LDA #29
A5 A5   LDA $A5
E9 01    SBC #1
CA      DEX
D0 F9   BNE *-5
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A0 0D    LDY #13 ;hides 'ORA abs'
A9      LDA #114
A5 A5    LDA $A5
20 xx xx JSR delay_a_25_clocks
88      DEY
68      PLA
D0 FA    BNE *-4
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>08      PHP
A2 16    LDX #22
CA      DEX
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>F6 F6    INC $F6,X
08      PHP
48      PHA
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
0A       ASL A ;first loop only
3A       NOP ;first loop only
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp, and writable $00-$FF; and writes in stack
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
F6 F6    INC $F6,X
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
D0 FC   BNE *-2
08      PHP
28      PLP</pre>||Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
28      PLP
30 F9   BMI *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>08       PHP
 
F6 F6   INC $F6,X
 
A0 16   LDY #22
=== 156 cycles ===
88      DEY
{| class="wikitable testtable"
D0 FD   BNE *-1
!colspan="2"|5 bytes
28       PLP</pre>||Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
|-
|<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
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #122
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
A9      LDA #122
48      PHA
A9      LDA #83
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
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
|<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
|<pre>48   ... PHA     &times; 2
08      PHP
08      PHP
A0 1D   LDY #29
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
88       DEY
0A       ASL A ;first loop only
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
08      PHP
A2 1D   LDX #29
A2 16   LDX #22
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
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      &times; 2
08      PHP
A0 16    LDY #22
88      DEY
D0 FD    BNE *-1
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<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
|-
|<pre>EA      NOP
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 FB    BPL *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 3
A6 A6    LDX $A6
08      PHP
A2 1D   LDX #29
A2 16   LDX #22
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 3
A4 A4    LDY $A4
08      PHP
A0 1D   LDY #29
A0 16   LDY #22
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
!colspan="2"|11 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
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
|-
|-
|<pre>08       PHP
|<pre>48       PHA
8C      TXA
48      PHA
48      PHA
A9       LDA #115
A2 15    LDX #21
20 xx xx JSR delay_a_25_clocks
CA       DEX
D0 FD    BNE *-1
68      PLA
68      PLA
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>E6 xx    INC @zptemp
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
EA  ... NOP      &times; 4
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
18      CLC
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|10 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP      \ &times; 2
48       PHA
28       PLP      /
38       SEC
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
A9 15    LDA #21
E9 01    SBC #1
D0 FB   BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 A5    LDA $A5
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
EA  ... NOP      &times; 4
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
18      CLC
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>68      PLA
!colspan="2"|31 bytes
98      TYA
48      PHA
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48   ... PHA     &times; 3
|<pre>68   ... PLA     &times; 31</pre>||Clobbers A, S, and Z&N
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
!colspan="2"|36 bytes
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>36 36    ROL $36,X
76 36    ROR $36,X
68      PLA      \ &times; 16
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|42 bytes
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA  ... NOP      &times; 2
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>26 26    ROL $26
08      PHP
66 26    ROR $26
18      CLC
36 36   ROL $36,X \ &times; 5
A9 69   LDA #$69 ;hides 'ADC #$F8'
76 36    ROR $36,X /
F8      SED ;first loop only
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
EA  ... NOP      &times; 2
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
!colspan="2"|62 bytes
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;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
|-
|-
|<pre>48   ... PHA     &times; 3
|<pre>EA   ... NOP     &times; 62</pre>||No requirements
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
|}
 
 
=== 125 cycles ===
{| class="wikitable testtable"
!colspan="2"|6 bytes
|-
|-
|<pre>EA       NOP
|<pre>68       PLA
48      PHA
A2 18   LDX #24
8C      TXA
48      PHA
A2 1B   LDX #27
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers A, X, S, and Z&N
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>68       PLA
08       PHP
A0 18   LDY #24
48      PHA
88       DEY
38      SEC
D0 FD   BNE *-1</pre>||Clobbers A, Y, S, and Z&N
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
|-
3A       NOP ;first loop only
|<pre>68      PLA
D0 FC   BNE *-2
A9       LDA #94
68      PLA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
28       PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|7 bytes
|-
|-
!colspan="2"|13 bytes
|<pre>EA  ... NOP      &times; 2
A2 18    LDX #24
CA      DEX
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 18   LDY #24
48      PHA
88      DEY
38      SEC
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
A9 1B   LDA #27
E9 01    SBC #1
D0 F9   BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>48      PHA
 
A9      LDA #91
 
20 xx xx JSR delay_a_25_clocks
=== 157 cycles ===
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #130
|<pre>EA  ... NOP      &times; 2
A9      LDA #94
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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>08      PHP
A9      LDA #91
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
!colspan="2"|8 bytes
A2 EA    LDX #234 ;hides 'NOP'
E8      INX
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68       PLA
|<pre>48      PHA
A0 EA   LDY #234 ;hides 'NOP'
18       CLC
C8       INY
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
D0 FC    BNE *-2</pre>||Clobbers A, Y, S, and Z&N
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"|7 bytes
|<pre>EA      NOP
38      SEC
A9 18    LDA #24
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>18      CLC
|<pre>08      PHP
18      CLC
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
B0 FC   BCS *-2
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 16   LDX #22
08      PHP
EA      NOP
A2 17   LDX #23
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 16    LDY #22
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A0 0D    LDY #13
08      PHP
08      PHP
28      PLP
A0 17    LDY #23
88      DEY
88      DEY
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N; and writes in stack
D0 FD   BNE *-1
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A2 0D    LDX #13
!colspan="2"|9 bytes
08      PHP
28      PLP
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; 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
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #123
48      PHA
20 xx xx JSR delay_a_25_clocks
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
0A       ASL A ;first loop only
|-
D0 FC   BNE *-2
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 1D   LDX #29
CA       DEX
D0 FB   BNE *-3
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
28       PLP</pre>||Writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
!colspan="2"|11 bytes
08      PHP
A0 1D    LDY #29
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>F6 F6    INC $F6,X
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A2 1D    LDX #29
EA  ... NOP      &times; 4
CA      DEX
18       CLC
D0 FB   BNE *-3
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
A9      LDA #116
20 xx xx JSR delay_a_25_clocks
68      PLA
68      PLA
28       PLP</pre>||Requires delay_a_25_clocks; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 4
18       CLC
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|10 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 3
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 15   LDA #21
EA   ... NOP     &times; 4
EA       NOP
18      CLC
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|32 bytes
38      SEC
A9 15    LDA #21
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
68      PLA
48      PHA
48      PHA
18      CLC
68   ... PLA     &times; 29</pre>||Clobbers A, S, and Z&N
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2
68       PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|36 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
48      PHA
68      PLA      \ &times; 8
38       SEC
48      PHA      /
A9 1C   LDA #28
A9 09   LDA #$09 ;hides 'ORA #$EA'
E9 01    SBC #1
EA      NOP ;first loop only
D0 F9   BNE *-5
EA  ... NOP      &times; 14
68      PLA
10 EE   BPL *-16</pre>||Clobbers A, and Z&N
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 158 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #131
!colspan="2"|42 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>E6 xx    INC @zptemp
36 36    ROL $36,X \ &times; 10
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>18      CLC
!colspan="2"|43 bytes
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>EA      NOP
|<pre>EA      NOP
A2 1F   LDX #31
C5 C5   CMP $C5
CA      DEX
36 36    ROL $36,X \ &times; 10
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 1F   LDY #31
24 24   BIT $24
88      DEY
36 36    ROL $36,X \ &times; 10
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
76 36   ROR $36,X /</pre>||Clobbers Z&N, and V
|-
|-
!colspan="2"|7 bytes
|<pre>FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
|-
|-
|<pre>08       PHP
|<pre>FE 00 03 INC $0300,X
A2 1E   LDX #30
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
|-
|<pre>FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
|-
|<pre>FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
|-
|<pre>FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|<pre>FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 9
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
|-
|<pre>EA      NOP
04 04    NOP $04
36 36    ROL $36,X \ &times; 10
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|44 bytes
|-
|<pre>EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ &times; 10
76 36    ROR $36,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|46 bytes
|-
|<pre>26 26    ROL $26  \ &times; 2
66 26    ROR $26  /
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
!colspan="2"|63 bytes
|-
|<pre>18  ... CLC      &times; 61
90 00    BCC *+2</pre>||Clobbers C
|-
|<pre>B8  ... CLV      &times; 61
50 00    BVC *+2</pre>||Clobbers V
|-
|}
 
 
=== 126 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 19   LDX #25
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers X, and Z&N
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A0 19   LDY #25
A0 1E   LDY #30
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FD   BNE *-1</pre>||Clobbers Y, and Z&N
28      PLP</pre>||Clobbers Y; and writes in stack
|-
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #124
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
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>68      PLA
48      PHA
A9      LDA #92
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #124
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
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|8 bytes
|-
|<pre>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
A9 0A   LDA #$0A ;hides 'ASL A'
A0 88   LDY #136 ;hides 'DEY'
20 xx xx JSR @rts14
08      PHP
D0 FA   BNE *-4
28      PLP
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
30 FB   BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>20 xx xx JSR @rts15
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9       LDA #117
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; requires @rts12, and @rts15; and writes in stack
68       PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|10 bytes
|<pre>EA      NOP
00 00    BRK 0
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; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
08      PHP      \ &times; 2
0A       ASL A ;first loop only
28      PLP      /
B0 FC    BCS *-2
D0 F9   BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
68  ... PLA      &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
|-
|<pre>48      PHA
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 17    LDX #23
CA       DEX
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>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</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>A5 A5    LDA $A5
38      SEC
A9 18    LDA #24
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>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</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 17    LDX #23
CA      DEX
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9      LDA #85
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP       \ &times; 2
08      PHP
28      PLP       /
24 24    BIT $24
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
|-
|-
!colspan="2"|12 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>68       PLA
08       PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
EA  ... NOP     &times; 4
3A      NOP ;first loop only
18      CLC
D0 FC   BNE *-2
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>EA       NOP
48      PHA
48      PHA
8C      TXA
8C      TXA
48      PHA
48      PHA
A2 1B   LDX #27
A2 15   LDX #21
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FD   BNE *-1
68      PLA
68      PLA
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
|<pre>48      PHA
08      PHP
08      PHP
48      PHA
48      PHA
38       SEC
18       CLC
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
A9 0A   LDA #$0A ;hides 'ASL A'
3A      NOP ;first loop only
00 00    BRK 0
D0 FC   BNE *-2
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
!colspan="2"|13 bytes
|-
|-
|<pre>48   ... PHA     &times; 2
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 1B   LDA #27
A9 15   LDA #21
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Writes in stack
|-
!colspan="2"|32 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 31</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|36 bytes
|-
|<pre>68      PLA      \ &times; 18
48      PHA      /</pre>||Clobbers A, and Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|63 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 63</pre>||No requirements
08      PHP
48      PHA
38      SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}




=== 159 cycles ===
=== 127 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #132
|<pre>48       PHA
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>48      PHA
|<pre>A2 12   LDX #18
A9 69   LDA #$69 ;hides 'ADC #$38'
EA       NOP
38       SEC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
A2 1F    LDX #31
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>A0 12   LDY #18
A0 1F   LDY #31
EA      NOP
88      DEY
88      DEY
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A5 A5    LDA $A5
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>A6 A6    LDX $A6
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>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
A9      LDA #125
A9      LDA #93
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|<pre>68      PLA
48      PHA
A9      LDA #93
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #125
A9      LDA #93
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>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
00 00    BRK 0
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'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
EA       NOP
20 xx xx JSR @rts12
08      PHP
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
28      PLP
|-
18      CLC
!colspan="2"|9 bytes
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 1D   LDX #29
A2 11   LDX #17
EA      NOP
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 FC   BNE *-2
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>08      PHP
85 xx    STA @zptemp
A0 11   LDY #17
20 xx xx JSR @rts12
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; 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
|-
|<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
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A2 1D    LDX #29
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>8C      TXA
48      PHA
A2 15    LDX #21
EA      NOP
EA      NOP
CA      DEX
D0 FA    BNE *-4
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 1D    LDY #29
88      DEY
88      DEY
D0 FB   BNE *-3
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>68      PLA
38      SEC
A9 18    LDA #24
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>68      PLA
08      PHP
08      PHP
A2 1D   LDX #29
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
CA       DEX
0A       ASL A ;first loop only
D0 FB   BNE *-3
B0 FC   BCS *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
98      TYA
48      PHA
48      PHA
A0 1C   LDY #28
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
88       DEY
0A       ASL A ;first loop only
D0 FB   BNE *-3
B0 FC   BCS *-2
68      PLA
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
38      SEC
38      SEC
A9 1D   LDA #29
A9 18   LDA #24
E9 01    SBC #1
E9 01    SBC #1
D0 F9   BNE *-5
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
18       CLC
A9       LDA #86
A9 EB    LDA #$EB ;hides 'SBC #$7A'
20 xx xx JSR delay_a_25_clocks
7A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
38       SEC
18       CLC
A9 1C   LDA #28
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
E9 01    SBC #1
0A      ASL A ;first loop only
D0 F9   BNE *-5
D0 FC   BNE *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
 
18  ... CLC      &times; 3
 
90 00    BCC *+2
=== 160 cycles ===
18      CLC
{| class="wikitable testtable"
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #133
!colspan="2"|32 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>68      PLA
|<pre>68      PLA
A9 69    LDA #$69 ;hides 'ADC #$38'
48      PHA
38      SEC ;first loop only
68  ... PLA      &times; 30</pre>||Clobbers A, S, and Z&N
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>68      PLA
!colspan="2"|37 bytes
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA       \ &times; 8
A2 1F   LDX #31
48      PHA      /
CA       DEX
36 36    ROL $36,X
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
76 36   ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA  ... NOP      &times; 12
10 F0   BPL *-14</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|43 bytes
|-
|-
|<pre>EA   ... NOP     &times; 2
|<pre>EA       NOP
A9 69   LDA #$69 ;hides 'ADC #$38'
E6 xx    INC @zptemp
38      SEC ;first loop only
36 36    ROL $36,X \ &times; 10
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>FE 00 02 INC $0200,X
A2 EA   LDX #234 ;hides 'NOP'
36 36   ROL $36,X \ &times; 10
E8      INX
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $200-$2FF
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 03 INC $0300,X
A0 EA   LDY #234 ;hides 'NOP'
36 36   ROL $36,X \ &times; 10
C8      INY
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $300-$3FF
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>FE 00 04 INC $0400,X
A9      LDA #126
36 36    ROL $36,X \ &times; 10
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $400-$4FF
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>FE 00 05 INC $0500,X
A9      LDA #126
36 36    ROL $36,X \ &times; 10
20 xx xx JSR delay_a_25_clocks
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $500-$5FF
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>FE 00 06 INC $0600,X
36 36    ROL $36,X \ &times; 10
76 36    ROR $36,X /</pre>||Clobbers Z&N; and requires writable $600-$6FF
|-
|-
|<pre>48      PHA
|<pre>FE 00 07 INC $0700,X
38      SEC
36 36   ROL $36,X \ &times; 10
A9 1E   LDA #30
76 36   ROR $36,X /</pre>||Clobbers Z&N; and requires writable $700-$7FF
E9 01   SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
!colspan="2"|44 bytes
38      SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>C5 C5    CMP $C5
48      PHA
26 26    ROL $26
A9      LDA #119
66 26    ROR $26
20 xx xx JSR delay_a_25_clocks
36 36    ROL $36,X \ &times; 5
68      PLA
76 36    ROR $36,X /
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and C
|-
|-
!colspan="2"|10 bytes
|<pre>24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 5
76 36    ROR $36,X /
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N, and V
|-
|-
|<pre>48      PHA
|<pre>04 04    NOP $04
18      CLC
26 26    ROL $26
A9 0A   LDA #$0A ;hides 'ASL A'
66 26    ROR $26
20 xx xx JSR @rts14
36 36   ROL $36,X \ &times; 5
D0 FA   BNE *-4
76 36   ROR $36,X /
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|45 bytes
|-
|-
|<pre>48      PHA
|<pre>4C xx xx JMP *+3
18      CLC
26 26    ROL $26
A9 0A   LDA #$0A ;hides 'ASL A'
66 26   ROR $26
08      PHP      \ &times; 2
36 36    ROL $36,X \ &times; 5
28      PLP      /
76 36    ROR $36,X /
D0 F9    BNE *-5
36 36... ROL $36,X&times; 9</pre>||Clobbers Z&N; and not relocatable code
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|46 bytes
08      PHP
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ &times; 6
76 36    ROR $36,X /
26 26... ROL $26  &times; 9</pre>||Clobbers Z&N
|-
|-
|<pre>04 04    NOP $04
!colspan="2"|64 bytes
08      PHP
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;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>18  ... CLC      &times; 62
08      PHP
90 00   BCC *+2</pre>||Clobbers C
48      PHA
38      SEC
A9 1C   LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>B8  ... CLV      &times; 62
|-
50 00   BVC *+2</pre>||Clobbers V
|<pre>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</pre>||Writes in stack
|-
|-
|}
|}




=== 161 cycles ===
=== 128 cycles ===
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 20   LDY #32
|<pre>38      SEC
88      DEY
A9 19   LDA #25
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
E9 01    SBC #1
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A2 20   LDX #32
|<pre>08      PHP
A2 18   LDX #24
CA      DEX
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 FD   BNE *-1
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9       LDA #134
|<pre>08       PHP
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
A0 18   LDY #24
|-
88       DEY
|<pre>A9 EB   LDA #$EB ;hides 'SBC #$18'
D0 FD   BNE *-1
18       CLC ;first loop only
28       PLP</pre>||Clobbers Y; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|7 bytes
|-
|<pre>E6 xx    INC @zptemp
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9      LDA #127
A9      LDA #94
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</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9      LDA #127
A9      LDA #94
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>EA      NOP
48      PHA
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; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>A2 14    LDX #20 ;hides 'NOP zp,X'
A5 A5   LDA $A5
04 EA   NOP $EA ;hides 'NOP'
A9 69    LDA #$69 ;hides 'ADC #$38'
CA  ... DEX      &times; 2
38      SEC ;first loop only
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>18      CLC
|<pre>A0 14    LDY #20 ;hides 'NOP zp,X'
A9 0A   LDA #$0A ;hides 'ASL A'
04 EA   NOP $EA ;hides 'NOP'
20 xx xx JSR @rts15
88  ... DEY      &times; 2
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
08      PHP
A2 1E    LDX #30
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
08      PHP
08      PHP
A0 1E    LDY #30
28       PLP
88       DEY
30 FA   BMI *-4
D0 FB   BNE *-3
68       PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
28       PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 A4   LDY $A4
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
A0 1E    LDY #30
0A      ASL A ;first loop only
88       DEY
08      PHP
D0 FB   BNE *-3
28       PLP
28      PLP</pre>||Clobbers Y; and writes in stack
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A2 0B   LDX #11
A6 A6   LDX $A6
F6 F6   INC $F6,X
A2 1E   LDX #30
CA      DEX
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp, and writable $00-$FF
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #120
A9      LDA #87
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
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
|<pre>A2 0B   LDX #11
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
48       PHA
68       PLA
20 xx xx JSR @rts12
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
D0 FB   BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers A, X, S, and Z&N; and requires @zptemp
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>18       CLC
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
CA       DEX ;first loop only
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx   STA @zptemp
10 FD   BPL *-1
20 xx xx JSR @rts12
CA      DEX
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
D0 F7   BNE *-7</pre>||Clobbers A, X, Z&N, and C
|-
|-
|<pre>18       CLC
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
88       DEY ;first loop only
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 04   NOP $04
10 FD   BPL *-1
20 xx xx JSR @rts12
88      DEY
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
D0 F7   BNE *-7</pre>||Clobbers A, Y, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>A2 0B   LDX #11
8C      TXA
EA  ... NOP      &times; 3
48      PHA
A2 1D   LDX #29
CA      DEX
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
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
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>A2 09   LDX #9 ;hides 'ORA #imm'
08      PHP
FE B5 02 INC $02B5,X ;hides 'LDA $02,X'
A9 0A   LDA #$0A ;hides 'ASL A'
A5 A5    LDA $A5
20 xx xx JSR @rts14
CA      DEX
D0 FA   BNE *-4
D0 F7   BNE *-7</pre>||Clobbers A, X, and Z&N; and requires writable $200-$2FF, and writable $300-$3FF
28      PLP</pre>||Clobbers A, and S; requires @rts12, and @rts14; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>A0 09    LDY #9 ;hides 'ORA #imm'
FE B5 02 INC $02B5,X ;hides 'LDA $02,X'
A5 A5    LDA $A5
88      DEY
D0 F7    BNE *-7</pre>||Clobbers A, Y, and Z&N; and requires writable $200-$2FF, and writable $300-$3FF
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A2 09    LDX #9 ;hides 'ORA #imm'
8C      TXA
FE B5 03 INC $03B5,X ;hides 'LDA $03,X'
48      PHA
A5 A5   LDA $A5
A2 1D   LDX #29
CA      DEX
CA      DEX
D0 FB   BNE *-3
D0 F7   BNE *-7</pre>||Clobbers A, X, and Z&N; and requires writable $300-$3FF, and writable $400-$4FF
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>C5 C5   CMP $C5
|<pre>A0 09   LDY #9 ;hides 'ORA #imm'
48      PHA
FE B5 03 INC $03B5,X ;hides 'LDA $03,X'
A9 0A    LDA #$0A ;hides 'ASL A'
A5 A5    LDA $A5
20 xx xx JSR @rts14
88      DEY
D0 FA   BNE *-4
D0 F7   BNE *-7</pre>||Clobbers A, Y, and Z&N; and requires writable $300-$3FF, and writable $400-$4FF
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>A2 09    LDX #9 ;hides 'ORA #imm'
FE B5 04 INC $04B5,X ;hides 'LDA $04,X'
A5 A5    LDA $A5
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
CA      DEX
20 xx xx JSR @rts14
D0 F7   BNE *-7</pre>||Clobbers A, X, and Z&N; and requires writable $400-$4FF, and writable $500-$5FF
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>A0 09    LDY #9 ;hides 'ORA #imm'
A9 0A    LDA #$0A ;hides 'ASL A'
FE B5 04 INC $04B5,X ;hides 'LDA $04,X'
08      PHP      \ &times; 2
A5 A5    LDA $A5
28       PLP      /
88       DEY
D0 F9   BNE *-5
D0 F7   BNE *-7</pre>||Clobbers A, Y, and Z&N; and requires writable $400-$4FF, and writable $500-$5FF
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>A2 09    LDX #9 ;hides 'ORA #imm'
08      PHP
FE B5 05 INC $05B5,X ;hides 'LDA $05,X'
38      SEC
A5 A5   LDA $A5
A9 1D   LDA #29
CA      DEX
E9 01    SBC #1
D0 F7   BNE *-7</pre>||Clobbers A, X, and Z&N; and requires writable $500-$5FF, and writable $600-$6FF
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
!colspan="2"|12 bytes
|<pre>A0 09    LDY #9 ;hides 'ORA #imm'
FE B5 05 INC $05B5,X ;hides 'LDA $05,X'
A5 A5    LDA $A5
88      DEY
D0 F7    BNE *-7</pre>||Clobbers A, Y, and Z&N; and requires writable $500-$5FF, and writable $600-$6FF
|-
|-
|<pre>08      PHP
|<pre>A2 09   LDX #9 ;hides 'ORA #imm'
48      PHA
FE B5 07 INC $07B5,X ;hides 'LDA $07,X'
18      CLC
A5 A5    LDA $A5
A9 69   LDA #$69 ;hides 'ADC #$F8'
CA       DEX
F8       SED ;first loop only
D0 F7   BNE *-7</pre>||Clobbers A, X, and Z&N; and requires writable $00-$FF, and writable $700-$7FF
EA  ... NOP      &times; 2
10 FA   BPL *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|<pre>A0 09    LDY #9 ;hides 'ORA #imm'
 
FE B5 07 INC $07B5,X ;hides 'LDA $07,X'
 
A5 A5    LDA $A5
=== 162 cycles ===
88      DEY
{| class="wikitable testtable"
D0 F7    BNE *-7</pre>||Clobbers A, Y, and Z&N; and requires writable $00-$FF, and writable $700-$7FF
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #135
|<pre>A2 09   LDX #9 ;hides 'ORA #imm'
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
FE B5 06 INC $06B5,X ;hides 'LDA $06,X'
|-
A5 A5   LDA $A5
!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
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 F7   BNE *-7</pre>||Clobbers A, X, and Z&N; and requires writable $600-$6FF, and writable $700-$7FF
|-
|-
|<pre>A0 17   LDY #23
|<pre>A0 09   LDY #9 ;hides 'ORA #imm'
EA      NOP
FE B5 06 INC $06B5,X ;hides 'LDA $06,X'
A5 A5    LDA $A5
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 F7   BNE *-7</pre>||Clobbers A, Y, and Z&N; and requires writable $600-$6FF, and writable $700-$7FF
|-
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9       LDA #128
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
20 xx xx JSR @rts15
|-
90 FA    BCC *-4
|<pre>08      PHP
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
A9      LDA #128
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
|<pre>48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
18      CLC
0A      ASL A ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
D0 FB   BNE *-3
00 00   BRK 0
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
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
EA      NOP
D0 FC   BNE *-2
D0 FB   BNE *-3
68      PLA
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>08       PHP
|<pre>BA       TSX
A0 16   LDY #22
A0 09   LDY #9 ;hides 'ORA #imm'
EA      NOP
A5 68    LDA $68 ;hides 'PLA'
A5 A5    LDA $A5
88      DEY
88      DEY
D0 FA   BNE *-4
D0 F8   BNE *-6
28       PLP</pre>||Clobbers Y; and writes in stack
9A       TXS</pre>||Clobbers A, X, Y, and Z&N; and unsafe for interrupts
|-
|-
|<pre>08      PHP
|<pre>A2 05   LDX #5 ;hides 'ORA zp'
A2 16    LDX #22
B5 68    LDA $68,X ;hides 'PLA'
EA      NOP
68      PLA      \ &times; 2
CA      DEX
48      PHA      /
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9      LDA #121
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 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 163 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #136
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 20    LDX #32
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>18      CLC
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"|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
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9      LDA #122
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>E6 xx    INC @zptemp
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 @zptemp, @rts12, and @rts14; and writes in stack
|-
|<pre>EA      NOP
48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
!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
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>EA      NOP
48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA  ... NOP      &times; 2
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 164 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #137
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
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<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
|-
!colspan="2"|7 bytes
|-
|<pre>18      CLC
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>A6 A6    LDX $A6
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #130
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 #130
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
18      CLC
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
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A2 0D    LDX #13
08      PHP
28      PLP
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 0D    LDY #13
08      PHP
28      PLP
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #123
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
8C      TXA
48      PHA
A2 1D    LDX #29
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>08      PHP
48      PHA
38      SEC
A9 15    LDA #21
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 165 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #138
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 20    LDY #32
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
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; and requires support for unofficial opcodes
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #131
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 #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
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
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>48      PHA
18      CLC
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
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9      LDA #124
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
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 166 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A0 21    LDY #33
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 21    LDX #33
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A9      LDA #139
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 #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
|-
|<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
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 @zptemp, and support for unofficial opcodes
|-
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 2
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>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
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<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
A5 A5    LDA $A5
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
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
A6 A6    LDX $A6
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #125
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
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts12
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|<pre>48      PHA
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"|12 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 15    LDX #21
EA      NOP
CA      DEX
D0 FA    BNE *-4
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 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 167 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 18    LDX #24 ;hides 'CLC'
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|<pre>A0 18    LDY #24 ;hides 'CLC'
88      DEY
D0 FC    BNE *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #140
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 #133
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 #133
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
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
|-
|<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'
20 xx xx JSR @rts14
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
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
|-
|<pre>68      PLA
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
!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
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #126
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 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 168 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #141
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 21    LDX #33
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 21    LDY #33
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!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
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
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
|-
|<pre>08      PHP
A9      LDA #134
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 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
|-
|<pre>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
|-
!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
E6 xx    INC @zptemp
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
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'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>EA      NOP
48      PHA
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<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
|-
|<pre>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</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>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</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
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Clobbers S; requires @rts12, and @rts14; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
8C      TXA
48      PHA
A2 1D    LDX #29
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>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</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
48      PHA
38      SEC
A9 1D    LDA #29
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 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 169 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #142
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 18    LDX #24
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 18    LDY #24
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #135
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 #135
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
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; and requires support for unofficial opcodes
|-
!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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A0 17    LDY #23
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 17    LDX #23
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 #128
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 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 170 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #143
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 C8    LDY #200 ;hides 'INY'
C8  ... INY      &times; 2
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
A2 18    LDX #24 ;hides 'CLC'
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 21    LDX #33
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>48      PHA
A9      LDA #136
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 #136
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 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
18      CLC
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
|-
|<pre>08      PHP
18      CLC
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
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 171 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 22    LDY #34
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #144
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 #137
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 #137
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 18    LDA #24
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>48      PHA
08      PHP
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; 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
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
!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 FB    BCS *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #130
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
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 172 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #145
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 13    LDY #19
68      PLA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>A2 13    LDX #19
68      PLA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>A2 13    LDX #19
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|<pre>A0 13    LDY #19
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #138
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 #138
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>68      PLA
38      SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>68      PLA
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 20    LDX #32
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 20    LDY #32
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #131
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
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
|-
|<pre>EA  ... NOP      &times; 2
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>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>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</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 173 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #146
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 22    LDX #34
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 22    LDY #34
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!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
A0 21    LDY #33
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 21    LDX #33
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; 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
|-
|<pre>08      PHP
A9      LDA #139
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 #132
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
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 @zptemp, and support for unofficial opcodes; 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>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
48  ... PHA      &times; 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
48      PHA
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA  ... NOP      &times; 2
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>EA  ... NOP      &times; 2
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; and writes in stack
|-
|<pre>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</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>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</pre>||Writes in stack
|-
|}
 
 
=== 174 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
EA      NOP
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|<pre>A0 98    LDY #152 ;hides 'TYA'
88      DEY
30 FC    BMI *-2</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A9      LDA #147
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
A0 22    LDY #34
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 18    LDY #24 ;hides 'CLC'
88      DEY
D0 FC    BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 18    LDX #24 ;hides 'CLC'
CA      DEX
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9      LDA #140
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 #140
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>38      SEC
A9 13    LDA #19
EA  ... NOP      &times; 2
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<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
|-
|<pre>48  ... PHA      &times; 3
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
8C      TXA
48      PHA
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3
68      PLA
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
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'
20 xx xx JSR @rts14
18      CLC
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18      CLC
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; requires @rts12, and @rts14; 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
|-
|<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
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
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</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>EA  ... NOP      &times; 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</pre>||Writes in stack
|-
|}
 
 
=== 175 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #148
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
A2 22   LDX #34
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 22    LDY #34
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 22    LDY #34
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>48      PHA
A9      LDA #141
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 #141
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 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A0 21    LDY #33
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 21    LDX #33
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18      CLC
D0 F9    BNE *-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
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 21    LDA #33
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 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
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
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"|11 bytes
|-
|<pre>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</pre>||Requires @zptemp; and writes in stack
|-
|<pre>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</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Writes in stack
|-
|}
 
 
=== 176 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A9      LDA #149
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 #142
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 #142
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 18    LDY #24
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 18    LDX #24
EA      NOP
CA      DEX
D0 FA    BNE *-4
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
38      SEC
A9 22    LDA #34
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
|-
|<pre>A5 A5    LDA $A5
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
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
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>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</pre>||Writes in stack
|-
|}
 
 
=== 177 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #150
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>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
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A2 16    LDX #22
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>A6 A6    LDX $A6
A2 E8    LDX #232 ;hides 'INX'
EA      NOP
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|<pre>A0 16    LDY #22
C5 C5    CMP $C5
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
|-
|<pre>A0 16    LDY #22
24 24    BIT $24
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|<pre>A0 16    LDY #22
A5 A5    LDA $A5
88      DEY
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|<pre>A0 16    LDY #22
85 xx    STA @zptemp
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #143
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 #143
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
04 04    NOP $04
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
|-
|<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
A0 C8    LDY #200 ;hides 'INY'
C8  ... INY      &times; 2
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; 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
|-
|<pre>48      PHA
08      PHP
A2 18    LDX #24 ;hides 'CLC'
CA      DEX
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 21    LDX #33
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
A2 21    LDX #33
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #136
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 21    LDA #33
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 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
18      CLC
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"|11 bytes
|-
|<pre>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</pre>||Writes in stack
|-
|}
 
 
=== 178 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #151
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 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!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
A0 22    LDY #34
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; 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
|-
|<pre>08      PHP
A9      LDA #144
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>8C      TXA
48      PHA
A2 18    LDX #24 ;hides 'CLC'
CA      DEX
D0 FC    BNE *-2
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #137
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 18    LDA #24
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 18    LDA #24
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>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</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA      NOP
B0 FB    BCS *-3
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 179 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #152
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 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'
88      DEY ;first loop only
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A2 15    LDX #21 ;hides 'ORA zp,X'
CA      DEX ;first loop only
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|<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
|-
|<pre>48      PHA
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 23    LDY #35
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 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #145
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 #145
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 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"|8 bytes
|-
|<pre>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|<pre>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
04 04    NOP $04
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!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
A2 13    LDX #19
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 13    LDY #19
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; 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
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
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
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
8C      TXA
48      PHA
A2 21    LDX #33
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 20    LDX #32
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 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
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
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</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Writes in stack
|-
|}
 
 
=== 180 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #153
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
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>48      PHA
A9      LDA #146
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 #146
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 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"|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
08      PHP
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 22    LDY #34
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 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>08      PHP
38      SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #139
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
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</pre>||Requires @zptemp, and support for unofficial opcodes; and writes in stack
|-
|<pre>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</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA  ... NOP      &times; 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</pre>||Writes in stack
|-
|}
 
 
=== 181 cycles ===
{| class="wikitable testtable"
!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
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #154
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>08      PHP
A2 E8    LDX #232 ;hides 'INX'
EA      NOP
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 98    LDY #152 ;hides 'TYA'
88      DEY
30 FC    BMI *-2
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|<pre>48      PHA
A9      LDA #147
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 #147
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 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"|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
08      PHP
A0 22    LDY #34
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 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
28      PLP
08      PHP
A0 18    LDY #24 ;hides 'CLC'
88      DEY
D0 FC    BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #140
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>98      TYA
48      PHA
A0 C8    LDY #200 ;hides 'INY'
C8  ... INY      &times; 2
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
38      SEC
A9 13    LDA #19
EA  ... NOP      &times; 2
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 13    LDA #19
EA  ... NOP      &times; 2
E9 01    SBC #1
D0 F7    BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48  ... PHA      &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>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
8C      TXA
48      PHA
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX
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
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18      CLC
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Requires @rts12, and @rts14; 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
|-
|<pre>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</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP      \ &times; 2
28      PLP      /
18      CLC
D0 F8    BNE *-6
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 182 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #155
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>A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>A0 EC    LDY #236 ;hides 'CPX abs'
E6 xx    INC @zptemp
C8      INY
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
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>68      PLA
38      SEC
A9 23    LDA #35
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 22    LDX #34
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 22    LDY #34
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #141
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 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
08      PHP
38      SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18      CLC
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 183 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #156
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 1A    LDY #26
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1A    LDX #26
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!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
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; 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
|-
|<pre>08      PHP
A9      LDA #149
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>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"|9 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
20 xx xx JSR @rts14
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts15
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, @rts12, and @rts15; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #142
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 @rts15
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
20 xx xx JSR @rts12
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP      \ &times; 2
28      PLP      /
18      CLC
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C; 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
|-
|<pre>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</pre>||Clobbers A; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 22    LDA #34
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 22    LDA #34
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 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>08      PHP
A5 A5    LDA $A5
38      SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Writes in stack
|-
|}
 
 
=== 184 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #157
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 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 24    LDY #36
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 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 24    LDY #36
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #150
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 #150
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
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
08      PHP
A2 E8    LDX #232 ;hides 'INX'
EA      NOP
D0 FC    BNE *-2
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 98    LDY #152 ;hides 'TYA'
88      DEY
30 FC    BMI *-2
28      PLP</pre>||Clobbers A, Y, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A0 16    LDY #22
C5 C5    CMP $C5
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 16    LDX #22
24 24    BIT $24
CA      DEX
D0 F9    BNE *-5
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
85 xx    STA @zptemp
D0 FA    BNE *-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
85 xx    STA @zptemp
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires @zptemp; 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
|-
|<pre>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</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
04 04    NOP $04
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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
4C xx xx JMP *+3
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; writes in stack; and not relocatable code
|-
|<pre>EA      NOP
8C      TXA
48      PHA
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>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</pre>||Clobbers A; writes in stack; and not relocatable code
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 21    LDX #33
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 22    LDA #34
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 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 185 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #158
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>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
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 17    LDY #23
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 24    LDY #36
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>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>48      PHA
A9      LDA #151
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 #151
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
04 04    NOP $04
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!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
08      PHP
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 23    LDY #35
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 23    LDA #35
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 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #144
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
8C      TXA
48      PHA
A2 18    LDX #24 ;hides 'CLC'
CA      DEX
D0 FC    BNE *-2
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 18    LDA #24
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 186 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A0 25    LDY #37
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 25    LDX #37
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A9      LDA #159
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 #152
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 #152
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 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;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
|-
|<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
A0 D8    LDY #216 ;hides 'CLD'
C8  ... INY      &times; 2
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>04 04    NOP $04
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>48      PHA
38      SEC
A9 24    LDA #36
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
|-
|<pre>A5 A5    LDA $A5
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
48      PHA
A9      LDA #145
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'
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
|-
|<pre>48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
04 04    NOP $04
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
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
04 04    NOP $04
D0 FA    BNE *-4
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
|-
|<pre>48      PHA
38      SEC
A9 16    LDA #22
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 16    LDA #22
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
8C      TXA
48      PHA
A2 21    LDX #33
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 21    LDA #33
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 187 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #160
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>A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A9      LDA #153
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 #153
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 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>48  ... PHA      &times; 2
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 24    LDY #36
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!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
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>18      CLC
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>18      CLC
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
|-
!colspan="2"|9 bytes
|-
|<pre>98      TYA
48      PHA
A0 23    LDY #35
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
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #146
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 23    LDA #35
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 23    LDA #35
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 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 188 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #161
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 25    LDX #37
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 25    LDY #37
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!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
A0 24    LDY #36
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; 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
|-
|<pre>08      PHP
A9      LDA #154
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 #147
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 14    LDA #20 ;hides 'NOP zp,X'
EA      NOP
E9 01    SBC #1
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
38      SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
EA      NOP
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 23    LDA #35
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 23    LDA #35
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 23    LDA #35
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 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
A0 C8    LDY #200 ;hides 'INY'
C8  ... INY      &times; 2
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 13    LDA #19
EA  ... NOP      &times; 2
E9 01    SBC #1
D0 F7    BNE *-7
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 189 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #162
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
A0 25    LDY #37
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 25    LDX #37
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>A6 A6    LDX $A6
A2 25    LDX #37
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 25    LDY #37
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #155
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 #155
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 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"|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
A2 23    LDX #35
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
A0 EC    LDY #236 ;hides 'CPX abs'
E6 xx    INC @zptemp
C8      INY
D0 FA    BNE *-4
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
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>48  ... PHA      &times; 2
08      PHP
A0 23    LDY #35
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 23    LDX #35
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
98      TYA
48      PHA
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3
68       PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 22    LDX #34
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 23    LDA #35
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 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 190 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #163
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 1B    LDX #27
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 1B    LDY #27
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #156
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 #156
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 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 1A    LDX #26
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 1A    LDY #26
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;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
|-
|<pre>08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 24    LDA #36
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 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #149
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
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
20 xx xx JSR @rts14
18      CLC
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts15
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, @rts12, and @rts15; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
20 xx xx JSR @rts15
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP       \ &times; 2
28      PLP      /
18      CLC
D0 F7    BNE *-7
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
08      PHP
48      PHA
38      SEC
A9 22    LDA #34
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 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 191 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 26    LDX #38
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 26    LDY #38
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #164
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 #157
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 #157
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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
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
|-
|<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
08      PHP
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 24    LDY #36
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 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 24    LDY #36
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
20 xx xx JSR @rts12
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #150
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'
08      PHP
36 36    ROL $36,X
76 36    ROR $36,X
28      PLP
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>68      PLA
98      TYA
48      PHA
A0 23    LDY #35
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
|-
|<pre>EA  ... NOP      &times; 2
98      TYA
48      PHA
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>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</pre>||Requires @zptemp; 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
|-
|<pre>48  ... PHA      &times; 3
38      SEC
A9 23    LDA #35
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      &times; 2
08      PHP
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
8C      TXA
48      PHA
A2 22    LDX #34
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
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
08      PHP
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
38      SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 192 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #165
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>EA      NOP
A0 1B    LDY #27
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 1B    LDX #27
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>48      PHA
A9      LDA #158
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 #158
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
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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"|8 bytes
|-
|<pre>38      SEC
A9 1B    LDA #27
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
A2 17    LDX #23
24 24    BIT $24
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; 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>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>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</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
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
|-
|<pre>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
|-
!colspan="2"|10 bytes
|-
|<pre>48      PHA
38      SEC
A9 1A    LDA #26
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 1A    LDA #26
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
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 193 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #166
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 26    LDX #38
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!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
A0 25    LDY #37
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 25    LDX #37
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9      LDA #159
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 #159
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 #152
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
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
20 xx xx JSR @rts12
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>04 04    NOP $04
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;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
|-
|<pre>04 04    NOP $04
08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; 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>48      PHA
08      PHP
38      SEC
A9 24    LDA #36
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 24    LDA #36
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 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
18      CLC
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</pre>||Requires @zptemp; and writes in stack
|-
|<pre>08      PHP
48      PHA
18      CLC
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; 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
|-
|<pre>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</pre>||Writes in stack
|-
|}
 
 
=== 194 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #167
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 26    LDX #38
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 26    LDY #38
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 26    LDX #38
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #160
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 #160
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 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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 1B    LDA #27
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<pre>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
08      PHP
A0 24    LDY #36
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 24    LDX #36
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>68      PLA
08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
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 1A    LDY #26
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
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>EA      NOP
08      PHP
A2 17    LDX #23
24 24    BIT $24
CA      DEX
D0 F9    BNE *-5
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 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>48      PHA
18      CLC
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
|-
|<pre>08      PHP
18      CLC
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
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
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
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 195 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #168
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
A2 26    LDX #38
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 26    LDX #38
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #161
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 #161
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 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A2 25    LDX #37
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 25    LDY #37
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 25    LDA #37
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 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #154
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
38      SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
EA      NOP
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
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"|13 bytes
|-
|<pre>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</pre>||Writes in stack
|-
|}
 
 
=== 196 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #169
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 #162
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 #162
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
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
08      PHP
A2 25    LDX #37
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 25    LDY #37
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 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 25    LDY #37
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 25    LDX #37
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #155
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>68      PLA
8C      TXA
48      PHA
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>98      TYA
48      PHA
A0 17    LDY #23
A5 A5    LDA $A5
88      DEY
D0 F9    BNE *-5
68      PLA
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
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</pre>||Clobbers A; requires @zptemp; 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
|-
|<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>48  ... PHA      &times; 3
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>48  ... PHA      &times; 2
08      PHP
38      SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
98      TYA
48      PHA
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
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"|13 bytes
|-
|<pre>EA  ... NOP      &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>||Writes in stack
|-
|}
 
 
=== 197 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #170
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 1C    LDY #28
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1C    LDX #28
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #163
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 #163
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 1B    LDY #27
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1B    LDX #27
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>68      PLA
38      SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|<pre>98      TYA
48      PHA
A0 25    LDY #37
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #156
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 25    LDA #37
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 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 198 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #171
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 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 26    LDX #38
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
A9      LDA #164
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 #164
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 #157
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
20 xx xx JSR @rts14
30 F9    BMI *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts12, and @rts14; and writes in stack
|-
|<pre>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</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
08      PHP
38      SEC
A9 25    LDA #37
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 25    LDA #37
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 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
28      PLP
20 xx xx JSR @rts12
D0 F8    BNE *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>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</pre>||Clobbers Z&N, and C; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
98      TYA
48      PHA
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>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</pre>||Requires @zptemp; and writes in stack
|-
|<pre>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</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
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
48      PHA
38      SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 199 cycles ===
{| class="wikitable testtable"
!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'
48      PHA
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
!colspan="2"|6 bytes
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
C5 C5    CMP $C5
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and C
|-
|<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'
A5 A5    LDA $A5
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
A4 A4    LDY $A4
D0 FB    BNE *-3</pre>||Clobbers X, Y, and Z&N
|-
|<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>A2 E8    LDX #232 ;hides 'INX'
04 04    NOP $04
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|<pre>48      PHA
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!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
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<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
|-
|<pre>08      PHP
A9      LDA #165
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>EA      NOP
08      PHP
A0 1B    LDY #27
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 1B    LDX #27
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #158
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
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
EA      NOP
D0 FB    BNE *-3
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>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
20 xx xx JSR @rts15
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12, and @rts15; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>48      PHA
38      SEC
A9 1B    LDA #27
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 1B    LDA #27
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 24    LDX #36
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
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</pre>||Requires @zptemp; 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
B0 FA    BCS *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 1A    LDA #26
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 200 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #173
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
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA  ... NOP      &times; 2
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<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
|-
|<pre>08      PHP
A9      LDA #166
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
08      PHP
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 26    LDX #38
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 26    LDA #38
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 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #159
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
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>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</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 FC    BNE *-2
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 24    LDA #36
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 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 201 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 28    LDY #40
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #174
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 #167
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 #167
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
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>A5 A5    LDA $A5
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>48      PHA
08      PHP
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 26    LDX #38
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 26    LDX #38
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #160
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 1B    LDX #27
EA      NOP
CA      DEX
D0 FA    BNE *-4
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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
08      PHP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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 1B    LDA #27
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 1B    LDA #27
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
A0 1A    LDY #26
EA      NOP
88      DEY
D0 FA    BNE *-4
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
18      CLC
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</pre>||Requires @zptemp; and writes in stack
|-
|<pre>08      PHP
48      PHA
18      CLC
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"|13 bytes
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
38      SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 202 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #175
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'
48      PHA
D0 FC    BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
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
|-
|<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
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>48  ... PHA      &times; 2
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 2
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA  ... NOP      &times; 3
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|9 bytes
|-
|<pre>98      TYA
48      PHA
A0 26    LDY #38
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 26    LDX #38
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #161
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 26    LDA #38
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 26    LDA #38
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 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 203 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #176
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
A0 28    LDY #40
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9      LDA #169
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 #169
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 #162
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      &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
08      PHP
38      SEC
A9 26    LDA #38
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 26    LDA #38
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 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48  ... PHA      &times; 2
08      PHP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>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</pre>||Clobbers Z&N; 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
85 xx    STA @zptemp
B0 FA    BCS *-4
68      PLA
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
08      PHP
48      PHA
38      SEC
A9 24    LDA #36
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 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 204 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #177
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 1D    LDX #29
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 1D    LDY #29
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #170
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 #170
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 1C    LDX #28
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 1C    LDY #28
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>EA  ... NOP      &times; 3
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
48      PHA
A9      LDA #163
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
98      TYA
48      PHA
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
A0 25    LDY #37
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
38      SEC
A9 26    LDA #38
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 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 205 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #178
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 28    LDY #40
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 28    LDY #40
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #171
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 #171
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
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
48      PHA
A9      LDA #164
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
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</pre>||Requires @rts12, and @rts14; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 25    LDA #37
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 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 206 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A0 29    LDY #41
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A9      LDA #179
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 #172
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 #172
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 E9    LDA #$E9 ;hides 'SBC #$9A'
9A      TXS ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
!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
A2 E8    LDX #232 ;hides 'INX'
24 24    BIT $24
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA  ... NOP      &times; 2
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #165
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 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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"|12 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 1B    LDA #27
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 207 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #180
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>A2 E9    LDX #233 ;hides 'SBC #imm'
24 EA    BIT $EA ;hides 'NOP'
E8      INX
D0 FA    BNE *-4</pre>||Clobbers A, X, Z&N, C, and V
|-
|<pre>A0 E9    LDY #233 ;hides 'SBC #imm'
24 EA    BIT $EA ;hides 'NOP'
C8      INY
D0 FA    BNE *-4</pre>||Clobbers A, Y, Z&N, C, and V
|-
|<pre>A2 28    LDX #40
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 #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
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 28    LDY #40
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
08      PHP
28      PLP
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D; and writes in stack
|-
|<pre>A4 A4    LDY $A4
A0 1D    LDY #29
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 A6    LDX $A6
A2 1D    LDX #29
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>68      PLA
38      SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
!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 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA      NOP
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #166
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 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 208 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #181
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 29    LDX #41
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!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
A0 28    LDY #40
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9      LDA #174
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 #174
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 #167
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 #$6A'
6A      ROR 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
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>24 24    BIT $24
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
A5 A5    LDA $A5
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
8C      TXA
48      PHA
A2 1B    LDX #27
EA      NOP
CA      DEX
D0 FA    BNE *-4
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;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"|13 bytes
|-
|<pre>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</pre>||Writes in stack
|-
|}
 
 
=== 209 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #182
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 1A    LDX #26
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 1A    LDY #26
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>A6 A6    LDX $A6
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #175
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 #175
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
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A      TXS ;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
|-
|<pre>EA      NOP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
08      PHP
28      PLP
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D; and writes in stack
|-
|<pre>08      PHP
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<pre>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
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
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
08      PHP
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA  ... NOP      &times; 2
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;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
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 27    LDY #39
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A2 27    LDX #39
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
A0 26    LDY #38
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 210 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #183
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
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #176
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 #176
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 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 28    LDY #40
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 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
38      SEC
A9 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #169
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 26    LDA #38
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 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 211 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #184
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 #177
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 #177
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 1D    LDY #29
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1D    LDX #29
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>38      SEC
A9 1A    LDA #26
48      PHA
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>38      SEC
A9 1A    LDA #26
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
48      PHA
A9      LDA #170
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      &times; 3
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR 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
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>EA  ... NOP      &times; 3
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
98      TYA
48      PHA
A0 26    LDY #38
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 26    LDA #38
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 212 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #185
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>A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
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
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>68      PLA
38      SEC
A9 29    LDA #41
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 28    LDX #40
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
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 28    LDY #40
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #171
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
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 213 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #186
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 2A    LDX #42
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!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
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; 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
|-
|<pre>08      PHP
A9      LDA #179
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 #172
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 1D    LDA #29
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 1D    LDA #29
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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
EA  ... NOP      &times; 2
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 214 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #187
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
A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>A6 A6    LDX $A6
A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #180
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 #180
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
A2 E9    LDX #233 ;hides 'SBC #imm'
24 EA    BIT $EA ;hides 'NOP'
E8      INX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>08      PHP
A0 E9    LDY #233 ;hides 'SBC #imm'
24 EA    BIT $EA ;hides 'NOP'
C8      INY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|<pre>08      PHP
A2 28    LDX #40
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 #173
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
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
08      PHP
A0 28    LDY #40
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A2 28    LDX #40
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; 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 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
08      PHP
28      PLP
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 1D    LDX #29
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; 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
|-
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 215 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #188
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 18    LDX #24 ;hides 'CLC'
EA      NOP
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 18    LDY #24 ;hides 'CLC'
EA      NOP
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #181
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 #181
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 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>48      PHA
38      SEC
A9 29    LDA #41
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 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #174
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
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
24 24    BIT $24
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 216 cycles ===
{| class="wikitable testtable"
!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
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A9      LDA #189
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 #182
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 #182
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
38      SEC
A9 2A    LDA #42
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 29    LDX #41
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<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
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A0 1A    LDY #26
C5 C5    CMP $C5
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1A    LDX #26
C5 C5    CMP $C5
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #175
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>68      PLA
8C      TXA
48      PHA
A2 28    LDX #40
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
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
08      PHP
28      PLP
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|<pre>EA      NOP
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
08      PHP
28      PLP
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
38      SEC
A9 28    LDA #40
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
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 217 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>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"|6 bytes
|-
|<pre>A0 1B    LDY #27
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A2 1B    LDX #27
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|<pre>A2 18    LDX #24
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|<pre>A0 18    LDY #24
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|<pre>A0 12    LDY #18
08      PHP
28      PLP
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and writes in stack
|-
|<pre>A2 12    LDX #18
08      PHP
28      PLP
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
|-
|<pre>48      PHA
A9      LDA #183
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 #183
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>68      PLA
38      SEC
A9 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
!colspan="2"|9 bytes
|-
|<pre>98      TYA
48      PHA
A0 29    LDY #41
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 29    LDX #41
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #176
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 29    LDA #41
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 29    LDA #41
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 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 218 cycles ===
{| 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
|-
|<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
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 1F    LDY #31
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
A9      LDA #184
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 #184
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 #177
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      &times; 2
38      SEC
A9 29    LDA #41
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 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
38      SEC
A9 1A    LDA #26
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 1A    LDA #26
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>48  ... PHA      &times; 2
08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$6A'
6A      ROR A ;first loop only
D0 FC    BNE *-2
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 219 cycles ===
{| 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
|-
|<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
A0 2B    LDY #43
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 2B    LDX #43
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>48      PHA
A9      LDA #185
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 #185
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
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
48      PHA
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
85 xx    STA @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes
|-
|<pre>38      SEC
A9 1B    LDA #27
48      PHA
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>38      SEC
A9 1B    LDA #27
24 24    BIT $24
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>08      PHP
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #178
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
08      PHP
A2 29    LDX #41
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 29    LDY #41
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
98      TYA
48      PHA
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A2 29    LDX #41
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 29    LDY #41
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 28    LDX #40
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 29    LDA #41
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 28    LDA #40
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 220 cycles ===
{| 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
|-
|<pre>68      PLA
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|<pre>18      CLC
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>EA  ... NOP      &times; 2
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<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
|-
|<pre>08      PHP
A9      LDA #186
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
08      PHP
A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 2A    LDY #42
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 2A    LDA #42
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 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #179
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
38      SEC
A9 1D    LDA #29
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 221 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A2 2C    LDX #44
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 2C    LDY #44
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<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
|-
!colspan="2"|7 bytes
|-
|<pre>48      PHA
A9      LDA #187
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 #187
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 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"|8 bytes
|-
|<pre>A5 A5    LDA $A5
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>48      PHA
08      PHP
A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 A4    LDY $A4
A0 2A    LDY #42
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 A6    LDX $A6
A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #180
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>68      PLA
98      TYA
48      PHA
A0 29    LDY #41
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
|-
|<pre>EA  ... NOP      &times; 2
98      TYA
48      PHA
A0 29    LDY #41
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 3
38      SEC
A9 29    LDA #41
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      &times; 2
08      PHP
38      SEC
A9 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
08      PHP
28      PLP
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 222 cycles ===
{| 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
|-
|<pre>A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
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
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
!colspan="2"|8 bytes
|-
|<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
|-
|<pre>08      PHP
A0 18    LDY #24 ;hides 'CLC'
EA      NOP
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 18    LDX #24 ;hides 'CLC'
EA      NOP
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 2A    LDX #42
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 #181
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 2A    LDA #42
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 2A    LDA #42
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 29    LDA #41
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 223 cycles ===
{| 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
|-
|<pre>EA      NOP
A2 2C    LDX #44
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 2C    LDY #44
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!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
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 2B    LDX #43
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; 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
|-
|<pre>08      PHP
A9      LDA #189
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 #182
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'
08      PHP
28      PLP
20 xx xx JSR @rts14
18      CLC
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C; requires @rts12, and @rts14; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
38      SEC
A9 2A    LDA #42
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 2A    LDA #42
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 2A    LDA #42
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 2A    LDA #42
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>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 FA    BPL *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 224 cycles ===
{| class="wikitable testtable"
!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'
68      PLA
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
!colspan="2"|6 bytes
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
EA  ... NOP      &times; 2
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'
EA      NOP
88      DEY
30 FB    BMI *-3</pre>||Clobbers A, Y, and Z&N
|-
|<pre>A0 64    LDY #100 ;hides 'NOP zp'
EA      NOP
C8      INY
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
|-
|<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
A9      LDA #190
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      &times; 2
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
|-
|<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
A2 12    LDX #18
08      PHP
28      PLP
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 12    LDY #18
08      PHP
28      PLP
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #183
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
8C      TXA
48      PHA
A2 2A    LDX #42
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>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>EA  ... NOP      &times; 2
08      PHP
38      SEC
A9 2A    LDA #42
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 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
|-
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
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
|-
!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 FA    BNE *-4
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 FA    BNE *-4
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"|6 bytes
|-
|<pre>EA      NOP
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
|-
|<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 FB    BNE *-3</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 FB    BNE *-3
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 FB    BNE *-3
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"|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
|-
|<pre>68      PLA
A9      LDA #197
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 #198
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>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"|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
|-
|<pre>68      PLA
A9      LDA #198
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>A6 A6    LDX $A6
A2 2D    LDX #45
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 A4    LDY $A4
A0 2D    LDY #45
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, 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
A0 2B    LDY #43
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; 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
|-
!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"|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>A0 2E    LDY #46
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 2E    LDX #46
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
!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
A2 E8    LDX #232 ;hides 'INX'
EA  ... NOP      &times; 2
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<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>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
CA      DEX
D0 FB   BNE *-3
D0 F6   BNE *-8</pre>||Clobbers A, X, S, and Z&N
68      PLA
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|13 bytes
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
B5 68    LDA $68,X ;hides 'PLA'
68      PLA      \ &times; 2
48      PHA      /
88      DEY
D0 F6    BNE *-8</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
!colspan="2"|12 bytes
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
|-
|-
|}
|<pre>A2 05   LDX #5 ;hides 'ORA zp'
 
AD EA EA LDA $EAEA ;hides two 'NOP's
 
68      PLA      \ &times; 2
=== 232 cycles ===
48      PHA       /
{| class="wikitable testtable"
!colspan="2"|6 bytes
|-
|<pre>A2 21   LDX #33
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 F5   BNE *-9</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 21   LDY #33
|<pre>A0 05   LDY #5 ;hides 'ORA zp'
EA      NOP
AD EA EA LDA $EAEA ;hides two 'NOP's
68      PLA      \ &times; 2
48      PHA       /
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 F5   BNE *-9</pre>||Clobbers A, 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
|<pre>A2 01   LDX #1
A2 20   LDX #32
EA      NOP
EA      NOP
CA      DEX
A0 11   LDY #17
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 20   LDY #32
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FC   BNE *-2
28       PLP</pre>||Clobbers Y; and writes in stack
CA       DEX
D0 F6    BNE *-8</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>48      PHA
!colspan="2"|16 bytes
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
|<pre>18  ... CLC      &times; 2
A9 EB   LDA #$EB ;hides 'SBC #$18'
A9 0A   LDA #$0A ;hides 'ASL A'
18      CLC ;first loop only
EA  ... NOP      &times; 9
EA      NOP
18      CLC
D0 FB   BNE *-3
10 F3   BPL *-11</pre>||Clobbers A, Z&N, and C
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|32 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
|<pre>68   ... PLA     &times; 32</pre>||Clobbers A, S, and Z&N
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
!colspan="2"|64 bytes
|-
|-
|<pre>08      PHP
|<pre>EA   ... NOP     &times; 64</pre>||No requirements
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
|-
|-
|}
|}
* From 128 cycles onwards, these tables quit considering RTI options.





Revision as of 10:38, 19 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 data corruption 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, data corruption will occur 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
A6 A6    LDX $A6
Clobbers X, and Z&N
A4 A4    LDY $A4
Clobbers Y, 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
F6 F6    INC $F6,X
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
FE 00 02 INC $0200,X
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
Clobbers Z&N; and requires writable $700-$7FF
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
F6 F6    INC $F6,X
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
EA       NOP
FE 00 02 INC $0200,X
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
Clobbers Z&N; and requires writable $700-$7FF
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
E6 xx    INC @zptemp
F6 F6    INC $F6,X
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
5 bytes
A2 02    LDX #2
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 02    LDY #2
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
E6 xx    INC @zptemp
EA   ... NOP      × 3
Clobbers Z&N; and requires @zptemp
EA   ... NOP      × 2
FE 00 02 INC $0200,X
Clobbers Z&N; and requires writable $200-$2FF
EA   ... NOP      × 2
FE 00 03 INC $0300,X
Clobbers Z&N; and requires writable $300-$3FF
EA   ... NOP      × 2
FE 00 04 INC $0400,X
Clobbers Z&N; and requires writable $400-$4FF
EA   ... NOP      × 2
FE 00 05 INC $0500,X
Clobbers Z&N; and requires writable $500-$5FF
EA   ... NOP      × 2
FE 00 06 INC $0600,X
Clobbers Z&N; and requires writable $600-$6FF
EA   ... NOP      × 2
FE 00 07 INC $0700,X
Clobbers Z&N; and requires writable $700-$7FF
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
08       PHP
F6 F6    INC $F6,X
28       PLP
Requires @zptemp, and writable $00-$FF; and writes in stack
F6 F6    INC $F6,X
68       PLA
48       PHA
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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
EA       NOP
E6 xx    INC @zptemp
F6 F6    INC $F6,X
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
EA   ... NOP      × 3
FE 00 02 INC $0200,X
Clobbers Z&N; and requires writable $200-$2FF
EA   ... NOP      × 3
FE 00 03 INC $0300,X
Clobbers Z&N; and requires writable $300-$3FF
EA   ... NOP      × 3
FE 00 04 INC $0400,X
Clobbers Z&N; and requires writable $400-$4FF
EA   ... NOP      × 3
FE 00 05 INC $0500,X
Clobbers Z&N; and requires writable $500-$5FF
EA   ... NOP      × 3
FE 00 06 INC $0600,X
Clobbers Z&N; and requires writable $600-$6FF
EA   ... NOP      × 3
FE 00 07 INC $0700,X
Clobbers Z&N; and requires writable $700-$7FF
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
EA       NOP
08       PHP
F6 F6    INC $F6,X
28       PLP
Requires @zptemp, and writable $00-$FF; and writes in stack
EA       NOP
F6 F6    INC $F6,X
68       PLA
48       PHA
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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
FE 00 02 INC $0200,X
EA   ... NOP      × 4
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
EA   ... NOP      × 4
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
EA   ... NOP      × 4
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
EA   ... NOP      × 4
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
EA   ... NOP      × 4
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
EA   ... NOP      × 4
Clobbers Z&N; and requires writable $700-$7FF
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 FD    BNE *-1
Clobbers X, and Z&N
A0 03    LDY #3
88       DEY
D0 FD    BNE *-1
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
A6 A6    LDX $A6
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers X, and Z&N
EA       NOP
A4 A4    LDY $A4
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Y, and Z&N
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
Clobbers Z&N; and requires writable $700-$7FF
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
F6 F6    INC $F6,X
20 xx xx JSR @rts12
Clobbers Z&N; requires @zptemp, @rts12, and writable $00-$FF; and writes in stack
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
A2 03    LDX #3
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 03    LDY #3
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
F6 F6... INC $F6,X× 3
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
F6 F6    INC $F6,X
00 00    BRK 0
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack
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 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 03    LDY #3
88       DEY
D0 FD    BNE *-1
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
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $700-$7FF
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
F6 F6    INC $F6,X
20 xx xx JSR @rts14
Clobbers Z&N; requires @zptemp, @rts12, @rts14, and writable $00-$FF; 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
08       PHP
28       PLP
08       PHP
F6 F6    INC $F6,X
28       PLP
Requires @zptemp, and writable $00-$FF; and writes in stack
F6 F6    INC $F6,X
68       PLA       \ × 2
48       PHA       /
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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
A2 03    LDX #3
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 03    LDY #3
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
EA       NOP
F6 F6... INC $F6,X× 3
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
A2 04    LDX #4
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
F6 F6    INC $F6,X
20 xx xx JSR @rts15
Clobbers Z&N; requires @zptemp, @rts12, @rts15, and writable $00-$FF; and writes in stack
EA       NOP
F6 F6    INC $F6,X
00 00    BRK 0
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; 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
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $700-$7FF
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
A2 03    LDX #3
EA       NOP
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 03    LDY #3
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, and Z&N
EA       NOP
F6 F6    INC $F6,X
20 xx xx JSR @rts14
Clobbers Z&N; requires @zptemp, @rts12, @rts14, and writable $00-$FF; and writes in stack
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
EA       NOP
08       PHP
28       PLP
08       PHP
F6 F6    INC $F6,X
28       PLP
Requires @zptemp, and writable $00-$FF; and writes in stack
EA       NOP
F6 F6    INC $F6,X
68       PLA       \ × 2
48       PHA       /
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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
24 24    BIT $24
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
A2 04    LDX #4
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
EA       NOP
F6 F6    INC $F6,X
20 xx xx JSR @rts15
Clobbers Z&N; requires @zptemp, @rts12, @rts15, and writable $00-$FF; 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
8 bytes
E6 xx    INC @zptemp
F6 F6... INC $F6,X× 3
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
EA   ... NOP      × 2
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $200-$2FF
EA   ... NOP      × 2
FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $300-$3FF
EA   ... NOP      × 2
FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $400-$4FF
EA   ... NOP      × 2
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $500-$5FF
EA   ... NOP      × 2
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $600-$6FF
EA   ... NOP      × 2
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $700-$7FF
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
A2 04    LDX #4
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 04    LDX #4
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
A2 03    LDX #3
48       PHA
CA       DEX
D0 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
A0 03    LDY #3
48       PHA
88       DEY
D0 FC    BNE *-2
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A2 04    LDX #4
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, 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 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
20 xx xx JSR @rts12
08       PHP
F6 F6    INC $F6,X
28       PLP
Requires @zptemp, @rts12, and writable $00-$FF; and writes in stack
EA   ... NOP      × 2
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
20 xx xx JSR @rts15
Requires @rts12, and @rts15; 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
9 bytes
EA       NOP
E6 xx    INC @zptemp
F6 F6... INC $F6,X× 3
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
EA   ... NOP      × 3
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $200-$2FF
EA   ... NOP      × 3
FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $300-$3FF
EA   ... NOP      × 3
FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $400-$4FF
EA   ... NOP      × 3
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $500-$5FF
EA   ... NOP      × 3
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $600-$6FF
EA   ... NOP      × 3
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $700-$7FF
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
A2 05    LDX #5
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
F6 F6    INC $F6,X
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
08       PHP
F6 F6    INC $F6,X
28       PLP
20 xx xx JSR @rts14
Requires @zptemp, @rts12, @rts14, and writable $00-$FF; and writes in stack
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
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
68       PLA
48       PHA
68   ... PLA      × 5
Clobbers A, S, and Z&N
48   ... PHA      × 2
A2 04    LDX #4
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
08       PHP
F6 F6    INC $F6,X
28       PLP       \ × 2
08       PHP       /
28       PLP
Requires @zptemp, and writable $00-$FF; and writes in stack
F6 F6    INC $F6,X
68       PLA       \ × 3
48       PHA       /
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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
FE 00 02 INC $0200,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $700-$7FF
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
A2 05    LDX #5
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
08       PHP
F6 F6    INC $F6,X
28       PLP
20 xx xx JSR @rts15
Requires @zptemp, @rts12, @rts15, and writable $00-$FF; 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
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 04    LDY #4
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, 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
A2 03    LDX #3
EA       NOP
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 03    LDY #3
EA       NOP
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; 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
EA       NOP
08       PHP
F6 F6    INC $F6,X
28       PLP       \ × 2
08       PHP       /
28       PLP
Requires @zptemp, and writable $00-$FF; and writes in stack
EA       NOP
F6 F6    INC $F6,X
68       PLA       \ × 3
48       PHA       /
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
Clobbers Z&N; and requires writable $700-$7FF
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
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
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 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
F6 F6    INC $F6,X
20 xx xx JSR @rts12× 2
Clobbers Z&N; requires @zptemp, @rts12, and writable $00-$FF; 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
10 bytes
F6 F6... INC $F6,X× 5
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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 FD    BNE *-1
Clobbers X, and Z&N
A0 06    LDY #6
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 04    LDX #4
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 04    LDY #4
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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
A2 05    LDX #5 ;hides 'ORA zp'
CA       DEX ;first loop only
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, and Z&N
A0 05    LDY #5 ;hides 'ORA zp'
88       DEY ;first loop only
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, and Z&N
F6 F6    INC $F6,X
00 00... BRK 0    × 2
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack
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 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
F6 F6    INC $F6,X
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
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
A2 05    LDX #5
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
20 xx xx JSR @rts14× 2
Clobbers A, S, and Z&N; requires @rts12, and @rts14; and writes in stack
8 bytes
A6 A6    LDX $A6
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 04    LDY #4
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, 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
A2 03    LDX #3
C5 C5    CMP $C5
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 03    LDY #3
C5 C5    CMP $C5
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts12
08       PHP
F6 F6    INC $F6,X
28       PLP
Requires @zptemp, @rts12, and writable $00-$FF; 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
11 bytes
EA       NOP
F6 F6... INC $F6,X× 5
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
A2 06    LDX #6
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 06    LDY #6
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
A2 05    LDX #5
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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 FD    BNE *-1
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 FD    BNE *-1
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
EA       NOP
F6 F6    INC $F6,X
00 00... BRK 0    × 2
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; 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
F6 F6    INC $F6,X
20 xx xx JSR @rts14× 2
Clobbers Z&N; requires @zptemp, @rts12, @rts14, and writable $00-$FF; 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
10 bytes
F6 F6    INC $F6,X
68       PLA       \ × 4
48       PHA       /
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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 FD    BNE *-1
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 FD    BNE *-1
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
A2 05    LDX #5
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
12 bytes
E6 xx    INC @zptemp
F6 F6... INC $F6,X× 5
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
EA   ... NOP      × 2
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA   ... NOP      × 2
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA   ... NOP      × 2
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA   ... NOP      × 2
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA   ... NOP      × 2
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA   ... NOP      × 2
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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 FD    BNE *-1
Clobbers X, and Z&N
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
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 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
EA       NOP
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
F6 F6    INC $F6,X
20 xx xx JSR @rts15× 2
Clobbers Z&N; requires @zptemp, @rts12, @rts15, and writable $00-$FF; 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
11 bytes
EA       NOP
F6 F6    INC $F6,X
68       PLA       \ × 4
48       PHA       /
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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
A2 04    LDX #4
68       PLA
CA       DEX
D0 FC    BNE *-2
Clobbers A, X, S, and Z&N
A0 04    LDY #4
68       PLA
88       DEY
D0 FC    BNE *-2
Clobbers A, Y, 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
A2 04    LDX #4
EA   ... NOP      × 2
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 04    LDY #4
EA   ... NOP      × 2
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
F6 F6    INC $F6,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
28       PLP
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
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
A2 05    LDX #5
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
13 bytes
EA       NOP
E6 xx    INC @zptemp
F6 F6... INC $F6,X× 5
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
EA   ... NOP      × 3
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA   ... NOP      × 3
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA   ... NOP      × 3
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA   ... NOP      × 3
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA   ... NOP      × 3
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA   ... NOP      × 3
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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 FC    BPL *-2
Clobbers A, Z&N, C, and V
EA       NOP
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
A2 06    LDX #6
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 06    LDY #6
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
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
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
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
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 FD    BNE *-1
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
08       PHP
F6 F6    INC $F6,X
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; requires @zptemp, and writable $00-$FF; 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 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 05    LDY #5
88       DEY
D0 FD    BNE *-1
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 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 04    LDY #4
EA       NOP
88       DEY
D0 FC    BNE *-2
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
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X
26 26    ROL $26   \ × 2
66 26    ROR $26   /
Clobbers Z&N; and requires writable $700-$7FF
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
A2 05    LDX #5 ;hides 'ORA zp'
EA       NOP
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, and Z&N
A0 05    LDY #5 ;hides 'ORA zp'
EA       NOP
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, 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 FC    BPL *-2
Clobbers A, Z&N, C, and V
EA   ... NOP      × 2
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 06    LDY #6
88       DEY
D0 FD    BNE *-1
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
A2 08    LDX #8
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FD    BNE *-1
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 FD    BNE *-1
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
12 bytes
F6 F6    INC $F6,X
68       PLA       \ × 5
48       PHA       /
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
F6 F6    INC $F6,X
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
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
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
00 00... BRK 0    × 3
Clobbers S; requires dummy interrupt handler; and writes in stack
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
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
08       PHP
A2 F8    LDX #248 ;hides 'SED'
E8   ... INX      × 2
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 88    LDY #136 ;hides 'DEY'
88   ... DEY      × 2
30 FB    BMI *-3
28       PLP
Clobbers Y; and writes in stack
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 @rts14× 3
Requires @rts12, and @rts14; and writes in stack
20 xx xx JSR @rts12
20 xx xx JSR @rts15× 2
Requires @rts12, and @rts15; 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
14 bytes
F6 F6... INC $F6,X× 7
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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 FC    BNE *-2
Clobbers X, and Z&N
A0 06    LDY #6
EA       NOP
88       DEY
D0 FC    BNE *-2
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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
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
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 08    LDX #8
CA       DEX
D0 FD    BNE *-1
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 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
EA   ... NOP      × 2
88       DEY
D0 FB    BNE *-3
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
08       PHP
F6 F6    INC $F6,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68       PLA
28       PLP
Requires @zptemp, and writable $00-$FF; and writes in stack
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
15 bytes
EA       NOP
F6 F6... INC $F6,X× 7
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
68       PLA
A2 08    LDX #8
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, 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 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
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 FC    BPL *-2
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 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
F6 F6    INC $F6,X
00 00... BRK 0    × 3
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; 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
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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
A2 09    LDX #9
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 09    LDY #9
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
EA       NOP
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
F6 F6    INC $F6,X
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
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 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 08    LDX #8
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, 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
A2 08    LDX #8
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
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
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
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 FC    BPL *-2
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 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
F6 F6    INC $F6,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; 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
EA       NOP
F6 F6    INC $F6,X
00 00... BRK 0    × 3
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; 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
16 bytes
E6 xx    INC @zptemp
F6 F6... INC $F6,X× 7
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
EA   ... NOP      × 2
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA   ... NOP      × 2
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA   ... NOP      × 2
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA   ... NOP      × 2
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA   ... NOP      × 2
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA   ... NOP      × 2
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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
A2 09    LDX #9
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 09    LDY #9
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
A2 08    LDX #8
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
14 bytes
F6 F6    INC $F6,X
68       PLA       \ × 6
48       PHA       /
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF
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 FC    BNE *-2
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 FD    BNE *-1
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 FD    BNE *-1
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
08       PHP
F6 F6    INC $F6,X
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; requires @zptemp, and writable $00-$FF; 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
A2 07    LDX #7
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 07    LDY #7
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, 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
17 bytes
EA       NOP
E6 xx    INC @zptemp
F6 F6... INC $F6,X× 7
Clobbers Z&N; and requires @zptemp, and writable $00-$FF
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
EA   ... NOP      × 3
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA   ... NOP      × 3
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA   ... NOP      × 3
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA   ... NOP      × 3
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA   ... NOP      × 3
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA   ... NOP      × 3
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 07    LDY #7
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, 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 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 06    LDY #6
EA       NOP
88       DEY
D0 FC    BNE *-2
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 FD    BNE *-1
Clobbers X, and Z&N
A0 0A    LDY #10
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
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 FD    BNE *-1
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
FE 00 02 INC $0200,X
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 writable $200-$2FF
FE 00 03 INC $0300,X
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 writable $300-$3FF
FE 00 04 INC $0400,X
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 writable $400-$4FF
FE 00 05 INC $0500,X
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 writable $500-$5FF
FE 00 06 INC $0600,X
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 writable $600-$6FF
FE 00 07 INC $0700,X
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 writable $700-$7FF
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 FB    BPL *-3
Clobbers A, Z&N, C, and V
EA       NOP
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FC    BNE *-2
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
F6 F6    INC $F6,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
F6 F6    INC $F6,X
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
08       PHP
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
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
A2 08    LDX #8
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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 FC    BPL *-2
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 FC    BMI *-2
Clobbers A, Z&N, C, and V
EA       NOP
A2 0A    LDX #10
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 0A    LDY #10
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
88       DEY
D0 FD    BNE *-1
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
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0A    LDY #10
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0A    LDY #10
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
EA       NOP
F6 F6    INC $F6,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
EA       NOP
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
F6 F6    INC $F6,X
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; requires @zptemp, and writable $00-$FF; 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 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
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
A2 08    LDX #8
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 08    LDY #8
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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 FC    BPL *-2
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
A2 F8    LDX #248 ;hides 'SED'
E8       INX
D0 FC    BNE *-2
Clobbers X, Z&N, and D
A0 F8    LDY #248 ;hides 'SED'
C8       INY
D0 FC    BNE *-2
Clobbers Y, Z&N, and D
6 bytes
F6 F6    INC $F6,X
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
48   ... PHA      × 2
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
Clobbers Y, S, and Z&N; and writes in stack
A2 06    LDX #6
68       PLA
CA       DEX
D0 FC    BNE *-2
Clobbers A, X, S, and Z&N
A0 06    LDY #6
68       PLA
88       DEY
D0 FC    BNE *-2
Clobbers A, Y, S, and Z&N
7 bytes
A2 06    LDX #6
EA   ... NOP      × 2
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 06    LDY #6
EA   ... NOP      × 2
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
A2 09    LDX #9
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 09    LDY #9
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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
A2 0B    LDX #11
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FD    BNE *-1
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 FB    BNE *-3
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
A2 08    LDX #8
EA       NOP
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 08    LDY #8
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, 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 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 07    LDY #7
EA       NOP
88       DEY
D0 FC    BNE *-2
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
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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
A2 0B    LDX #11
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FC    BCS *-2
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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0A    LDY #10
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
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 FB    BPL *-3
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 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FC    BNE *-2
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
08       PHP
F6 F6    INC $F6,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires @zptemp, and writable $00-$FF; and writes in stack
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      × 2
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA   ... NOP      × 2
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA   ... NOP      × 2
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA   ... NOP      × 2
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA   ... NOP      × 2
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA   ... NOP      × 2
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
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 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 0B    LDX #11
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FC    BCS *-2
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 FC    BMI *-2
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 FC    BMI *-2
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 0A    LDX #10
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0A    LDY #10
88       DEY
D0 FD    BNE *-1
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
A2 0C    LDX #12
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 0C    LDY #12
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
A2 0A    LDX #10
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0A    LDY #10
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, 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
A6 A6    LDX $A6
A2 0A    LDX #10
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 0A    LDY #10
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
08       PHP
EA       NOP
F6 F6    INC $F6,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires @zptemp, and writable $00-$FF; and writes in stack
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
FE 00 02 INC $0200,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
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 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
F6 F6    INC $F6,X
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
EA       NOP
68       PLA
A2 0B    LDX #11
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
8 bytes
EA   ... NOP      × 3
A2 0B    LDX #11
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
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
A2 0C    LDX #12
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 0C    LDY #12
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FB    BNE *-3
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
A2 0B    LDX #11
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
EA       NOP
FE 00 02 INC $0200,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
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 FC    BNE *-2
Clobbers X, and Z&N
A0 09    LDY #9
EA       NOP
88       DEY
D0 FC    BNE *-2
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
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C
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
A2 08    LDX #8
EA       NOP
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
EA       NOP
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; 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
16 bytes
68   ... PLA      × 16
Clobbers A, S, and Z&N
19 bytes
EA       NOP
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
22 bytes
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N
32 bytes
EA   ... NOP      × 32
No requirements
  • 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
A2 08    LDX #8
48       PHA
CA       DEX
D0 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
A0 08    LDY #8
48       PHA
88       DEY
D0 FC    BNE *-2
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A2 0C    LDX #12
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 0C    LDY #12
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 0C    LDX #12
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 0C    LDY #12
88       DEY
D0 FD    BNE *-1
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 FB    BNE *-3
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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
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 FC    BCS *-2
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 FC    BCS *-2
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
EA       NOP
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
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
26 26    ROL $26
66 26    ROR $26
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
17 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 14
Clobbers A, S, and Z&N
19 bytes
EA       NOP
68       PLA       \ × 9
48       PHA       /
Clobbers A, and Z&N
22 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
23 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
24 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
26 bytes
26 26    ROL $26   \ × 2
66 26    ROR $26   /
26 26... ROL $26  × 9
Clobbers Z&N
33 bytes
18   ... CLC      × 31
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 31
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 31
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 31
Requires support for unofficial opcodes
34 bytes
4C xx xx JMP *+3
EA   ... NOP      × 31
Not relocatable code


66 cycles

5 bytes
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
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
38       SEC
A9 09    LDA #9
EA       NOP
E9 01    SBC #1
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
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
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp
04 04    NOP $04
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
68   ... PLA      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
48       PHA
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
EA   ... NOP      × 2
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
A6 A6    LDX $A6
A2 0B    LDX #11
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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 FB    BPL *-3
68       PLA
28       PLP
Writes in stack
17 bytes
EA       NOP
68   ... PLA      × 16
Clobbers A, S, and Z&N
19 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
22 bytes
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N
33 bytes
EA   ... NOP      × 33
No requirements


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 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
F6 F6    INC $F6,X
90 FB    BCC *-3
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
A0 06    LDY #6
F6 F6    INC $F6,X
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
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
A2 06    LDX #6
48   ... PHA      × 2
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
A0 06    LDY #6
48   ... PHA      × 2
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
A2 06    LDX #6
EA       NOP
68       PLA
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
A0 06    LDY #6
EA       NOP
68       PLA
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and requires @zptemp
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
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 FC    BNE *-2
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 09    LDY #9
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, and Z&N
9 bytes
98       TYA
48       PHA
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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 FC    BCS *-2
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 FC    BCS *-2
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 FC    BMI *-2
68       PLA
28       PLP
Writes in stack
17 bytes
68       PLA
48       PHA
68   ... PLA      × 15
Clobbers A, S, and Z&N
19 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
23 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
24 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N, and C
24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N, and V
04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
25 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
26 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
26 26... ROL $26  × 9
Clobbers Z&N
34 bytes
18   ... CLC      × 32
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 32
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 32
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 32
Requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
EA   ... NOP      × 32
Not relocatable code


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
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A2 0C    LDX #12
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
88       DEY
D0 FD    BNE *-1
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
EA       NOP
04 04    NOP $04
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
EA       NOP
68   ... PLA      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
10 bytes
EA   ... NOP      × 3
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
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
17 bytes
68   ... PLA      × 17
Clobbers A, S, and Z&N
20 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 8
48       PHA       /
Clobbers A, and Z&N
23 bytes
EA       NOP
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N
34 bytes
EA   ... NOP      × 34
No requirements


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 FD    BNE *-1
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 FD    BNE *-1
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
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
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
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and requires @zptemp
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
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
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
36 36    ROL $36,X
76 36    ROR $36,X
90 F9    BCC *-5
Clobbers A, Z&N, and C
18 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 15
Clobbers A, S, and Z&N
20 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
24 bytes
C5 C5    CMP $C5
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
25 bytes
4C xx xx JMP *+3
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
26 bytes
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
35 bytes
18   ... CLC      × 33
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 33
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 33
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 33
Requires support for unofficial opcodes
36 bytes
4C xx xx JMP *+3
EA   ... NOP      × 33
Not relocatable code


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
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FB    BNE *-3
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A2 0C    LDX #12
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0C    LDY #12
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp
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
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
08       PHP
A9 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 FB    BNE *-3
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 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
68       PLA
48       PHA
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
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
68       PLA
48       PHA
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
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
A5 A5    LDA $A5
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
90 FA    BCC *-4
Clobbers A, Z&N, and C
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
18 bytes
EA       NOP
68   ... PLA      × 17
Clobbers A, S, and Z&N
20 bytes
68       PLA       \ × 10
48       PHA       /
Clobbers A, and Z&N
24 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N
35 bytes
EA   ... NOP      × 35
No requirements


71 cycles

5 bytes
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
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
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
EA       NOP
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; 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
18 bytes
68       PLA
48       PHA
68   ... PLA      × 16
Clobbers A, S, and Z&N
21 bytes
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
24 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
25 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
26 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
27 bytes
EA       NOP
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
36 bytes
18   ... CLC      × 34
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 34
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 34
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 34
Requires support for unofficial opcodes
37 bytes
4C xx xx JMP *+3
EA   ... NOP      × 34
Not relocatable code


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 FD    BNE *-1
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 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
8 bytes
EA   ... NOP      × 3
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
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
68       PLA
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
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
EA   ... NOP      × 2
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
98       TYA
48       PHA
A0 0C    LDY #12
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 08    LDX #8
C5 C5    CMP $C5
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
C5 C5    CMP $C5
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp
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
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
08       PHP
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 FB    BNE *-3
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 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
EA       NOP
68       PLA
48       PHA
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
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 FC    BCS *-2
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
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
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
A5 A5    LDA $A5
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
36 36    ROL $36,X
76 36    ROR $36,X
90 F9    BCC *-5
Clobbers A, Z&N, and C
18 bytes
68   ... PLA      × 18
Clobbers A, S, and Z&N
21 bytes
EA       NOP
68       PLA       \ × 10
48       PHA       /
Clobbers A, and Z&N
24 bytes
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N
36 bytes
EA   ... NOP      × 36
No requirements


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 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FC    BNE *-2
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
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
19 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 16
Clobbers A, S, and Z&N
21 bytes
68       PLA       \ × 2
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
25 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
26 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
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 \ × 5
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 \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
28 bytes
EA   ... NOP      × 2
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
37 bytes
18   ... CLC      × 35
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 35
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 35
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 35
Requires support for unofficial opcodes
38 bytes
4C xx xx JMP *+3
EA   ... NOP      × 35
Not relocatable code


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 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
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
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 FD    BNE *-1
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
F6 F6    INC $F6,X
90 FB    BCC *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
F6 F6    INC $F6,X
90 FB    BCC *-3
28       PLP
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
A0 06    LDY #6
F6 F6    INC $F6,X
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; requires @zptemp, and writable $00-$FF; 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 FC    BNE *-2
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 09    LDY #9
EA       NOP
88       DEY
D0 FC    BNE *-2
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 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 08    LDY #8
C5 C5    CMP $C5
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
88       DEY
D0 FD    BNE *-1
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 FC    BCS *-2
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
19 bytes
EA       NOP
68   ... PLA      × 18
Clobbers A, S, and Z&N
21 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
25 bytes
EA       NOP
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N
37 bytes
EA   ... NOP      × 37
No requirements


75 cycles

5 bytes
A9       LDA #48
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FC    BNE *-2
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
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
9 bytes
48       PHA
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 FB    BNE *-3
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 FB    BNE *-3
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
19 bytes
68       PLA
48       PHA
68   ... PLA      × 17
Clobbers A, S, and Z&N
22 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 9
48       PHA       /
Clobbers A, and Z&N
26 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 6
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 \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
29 bytes
EA   ... NOP      × 3
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
38 bytes
18   ... CLC      × 36
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 36
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 36
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 36
Requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
EA   ... NOP      × 36
Not relocatable code


76 cycles

5 bytes
A2 0F    LDX #15
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 0F    LDY #15
88       DEY
D0 FD    BNE *-1
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 FC    BNE *-2
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 FD    BNE *-1
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
EA       NOP
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
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 FD    BNE *-1
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
19 bytes
68   ... PLA      × 19
Clobbers A, S, and Z&N
22 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
26 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N
38 bytes
EA   ... NOP      × 38
No requirements


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 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
F6 F6    INC $F6,X
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
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
A2 0A    LDX #10 ;hides 'ASL A'
CA       DEX
D0 FC    BNE *-2
03 xx    SLO (@ptrtemp,X)
Clobbers A, X, Z&N, and C; and requires @ptrtemp, and support for unofficial opcodes
A0 0A    LDY #10 ;hides 'ASL A'
88       DEY
D0 FC    BNE *-2
13 xx    SLO (@ptrtemp),Y
Clobbers A, Y, Z&N, and C; and requires @ptrtemp, and support for unofficial opcodes
48   ... PHA      × 2
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
68       PLA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FC    BNE *-2
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 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
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 FC    BNE *-2
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
9 bytes
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
98       TYA
48       PHA
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
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 FB    BNE *-3
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 FB    BNE *-3
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
20 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 17
Clobbers A, S, and Z&N
22 bytes
68       PLA       \ × 11
48       PHA       /
Clobbers A, and Z&N
26 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
27 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
28 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
30 bytes
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X
76 36    ROR $36,X
26 26... ROL $26  × 9
Clobbers Z&N
39 bytes
18   ... CLC      × 37
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 37
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 37
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 37
Requires support for unofficial opcodes
40 bytes
4C xx xx JMP *+3
EA   ... NOP      × 37
Not relocatable code


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 FC    BNE *-2
Clobbers X, and Z&N
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, and Z&N
18       CLC
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
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
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
20 bytes
EA       NOP
68   ... PLA      × 19
Clobbers A, S, and Z&N
23 bytes
68       PLA
48       PHA
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
26 bytes
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
39 bytes
EA   ... NOP      × 39
No requirements


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 FD    BNE *-1
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 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0F    LDY #15
88       DEY
D0 FD    BNE *-1
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
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and not relocatable code
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
90 F9    BCC *-5
Clobbers A, Z&N, and C
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 FD    BNE *-1
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 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FD    BNE *-1
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 FD    BNE *-1
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 FB    BNE *-3
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
20 bytes
68       PLA
48       PHA
68   ... PLA      × 18
Clobbers A, S, and Z&N
23 bytes
EA       NOP
68       PLA       \ × 11
48       PHA       /
Clobbers A, and Z&N
27 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
28 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
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
36 36... ROL $36,X× 9
Clobbers Z&N, and V
04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
29 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
30 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
40 bytes
18   ... CLC      × 38
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 38
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 38
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 38
Requires support for unofficial opcodes
41 bytes
4C xx xx JMP *+3
EA   ... NOP      × 38
Not relocatable code


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
A2 0F    LDX #15
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 0F    LDY #15
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 0F    LDX #15
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 0F    LDY #15
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FB    BCS *-3
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 FA    BNE *-4
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;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
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FC    BNE *-2
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
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
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
20 bytes
68   ... PLA      × 20
Clobbers A, S, and Z&N
23 bytes
68       PLA       \ × 3
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
27 bytes
EA       NOP
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
40 bytes
EA   ... NOP      × 40
No requirements


81 cycles

5 bytes
A2 10    LDX #16
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and not relocatable code
08       PHP
A6 A6    LDX $A6
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
EA       NOP
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
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
26 26    ROL $26
66 26    ROR $26
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
08       PHP
A5 A5    LDA $A5
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
F6 F6    INC $F6,X
90 FB    BCC *-3
68       PLA
28       PLP
Requires @zptemp, and writable $00-$FF; 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
21 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 18
Clobbers A, S, and Z&N
23 bytes
68       PLA       \ × 2
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
28 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
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
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
29 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
30 bytes
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
41 bytes
18   ... CLC      × 39
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 39
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 39
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 39
Requires support for unofficial opcodes
42 bytes
4C xx xx JMP *+3
EA   ... NOP      × 39
Not relocatable code


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 FC    BNE *-2
Clobbers A, X, S, and Z&N
A0 09    LDY #9
68       PLA
88       DEY
D0 FC    BNE *-2
Clobbers A, Y, S, and Z&N
7 bytes
A2 09    LDX #9
EA   ... NOP      × 2
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 09    LDY #9
EA   ... NOP      × 2
88       DEY
D0 FB    BNE *-3
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 FB    BCS *-3
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
68       PLA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
9 bytes
EA   ... NOP      × 2
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
98       TYA
48       PHA
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
A5 A5    LDA $A5
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
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 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
04 04    NOP $04
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
EA       NOP
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
68   ... PLA      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
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
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
21 bytes
EA       NOP
68   ... PLA      × 20
Clobbers A, S, and Z&N
24 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 10
48       PHA       /
Clobbers A, and Z&N
28 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N
41 bytes
EA   ... NOP      × 41
No requirements


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 FC    BPL *-2
Clobbers A, Z&N, C, V, and D
EA       NOP
A2 10    LDX #16
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A2 0F    LDX #15
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0F    LDY #15
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
8 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and requires @zptemp
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
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
68   ... PLA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
48   ... PHA      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;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
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FC    BNE *-2
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 FC    BNE *-2
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 FC    BNE *-2
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
21 bytes
68       PLA
48       PHA
68   ... PLA      × 19
Clobbers A, S, and Z&N
24 bytes
EA       NOP
68       PLA       \ × 2
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
28 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
29 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X
76 36    ROR $36,X
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
30 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
31 bytes
EA       NOP
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
42 bytes
18   ... CLC      × 40
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 40
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 40
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 40
Requires support for unofficial opcodes
43 bytes
4C xx xx JMP *+3
EA   ... NOP      × 40
Not relocatable code


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
A2 10    LDX #16
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 10    LDX #16
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1
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
68       PLA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 FB    BCS *-3
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
38       SEC
A9 09    LDA #9
EA   ... NOP      × 2
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
E6 xx    INC @zptemp
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
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
08       PHP
F6 F6    INC $F6,X
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; requires @zptemp, and writable $00-$FF; 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
08       PHP
A2 0A    LDX #10 ;hides 'ASL A'
CA       DEX
D0 FC    BNE *-2
03 xx    SLO (@ptrtemp,X)
28       PLP
Clobbers A, and X; requires @ptrtemp, and support for unofficial opcodes; and writes in stack
08       PHP
A0 0A    LDY #10 ;hides 'ASL A'
88       DEY
D0 FC    BNE *-2
13 xx    SLO (@ptrtemp),Y
28       PLP
Clobbers A, and Y; requires @ptrtemp, and support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, 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 FC    BNE *-2
28       PLP
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
10 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 5
18       CLC
10 F7    BPL *-7
Clobbers A, Z&N, and C
EA       NOP
98       TYA
48       PHA
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
F6 F6    INC $F6,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; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; requires @zptemp, and writable $00-$FF; 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 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
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FC    BNE *-2
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
98       TYA
48       PHA
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
98       TYA
48       PHA
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
21 bytes
68   ... PLA      × 21
Clobbers A, S, and Z&N
24 bytes
68       PLA       \ × 12
48       PHA       /
Clobbers A, and Z&N
28 bytes
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N
42 bytes
EA   ... NOP      × 42
No requirements


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 FC    BNE *-2
Clobbers X, and Z&N
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, and Z&N
7 bytes
EA       NOP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
Clobbers A, Z&N, C, V, and D
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
EA       NOP
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
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
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
9 bytes
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 FB    BNE *-3
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 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
E6 xx    INC @zptemp
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires @zptemp
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 02 INC $0200,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $200-$2FF
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 03 INC $0300,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $300-$3FF
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 04 INC $0400,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $400-$4FF
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 05 INC $0500,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $500-$5FF
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 06 INC $0600,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $600-$6FF
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 07 INC $0700,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $700-$7FF
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
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
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
68       PLA       \ × 2
48       PHA       /
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
22 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 19
Clobbers A, S, and Z&N
25 bytes
68       PLA       \ × 2
48       PHA       /
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
29 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
30 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
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 \ × 6
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 \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
32 bytes
EA   ... NOP      × 2
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
43 bytes
18   ... CLC      × 41
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 41
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 41
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 41
Requires support for unofficial opcodes
44 bytes
4C xx xx JMP *+3
EA   ... NOP      × 41
Not relocatable code


86 cycles

5 bytes
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 11    LDY #17
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
A9       LDA #59
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48       PHA
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 FC    BPL *-2
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 FC    BPL *-2
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 FC    BNE *-2
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 FD    BNE *-1
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
A5 A5    LDA $A5
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
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 FD    BNE *-1
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
68       PLA
48       PHA
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
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
68       PLA
48       PHA
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
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
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and not relocatable code
68       PLA
48       PHA
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
11 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 5
18       CLC
10 F7    BPL *-7
Clobbers A, Z&N, and C
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
22 bytes
EA       NOP
68   ... PLA      × 21
Clobbers A, S, and Z&N
25 bytes
EA       NOP
68       PLA       \ × 12
48       PHA       /
Clobbers A, and Z&N
29 bytes
EA       NOP
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N
43 bytes
EA   ... NOP      × 43
No requirements


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
A2 F8    LDX #248 ;hides 'SED'
68       PLA
E8       INX
D0 FB    BNE *-3
Clobbers A, X, S, Z&N, and D
A0 F8    LDY #248 ;hides 'SED'
68       PLA
C8       INY
D0 FB    BNE *-3
Clobbers A, Y, 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 FC    BNE *-2
Clobbers X, and Z&N
EA       NOP
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FC    BNE *-2
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
98       TYA
48       PHA
A0 0F    LDY #15
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0F    LDX #15
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0F    LDY #15
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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 FB    BCS *-3
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 FB    BCS *-3
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 FA    BNE *-4
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 FA    BNE *-4
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 FC    BNE *-2
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
22 bytes
68       PLA
48       PHA
68   ... PLA      × 20
Clobbers A, S, and Z&N
25 bytes
68       PLA       \ × 4
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
30 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 7
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 \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
33 bytes
EA   ... NOP      × 3
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
44 bytes
18   ... CLC      × 42
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 42
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 42
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 42
Requires support for unofficial opcodes
45 bytes
4C xx xx JMP *+3
EA   ... NOP      × 42
Not relocatable code


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 FC    BPL *-2
Clobbers A, Z&N, C, V, and D
EA       NOP
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 11    LDY #17
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A2 10    LDX #16
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
EA       NOP
68       PLA
48       PHA
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
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
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 04    NOP $04
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
48       PHA
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
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and not relocatable code
A5 A5    LDA $A5
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 02 INC $0200,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $200-$2FF
A5 A5    LDA $A5
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 03 INC $0300,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $300-$3FF
A5 A5    LDA $A5
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 04 INC $0400,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $400-$4FF
A5 A5    LDA $A5
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 05 INC $0500,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $500-$5FF
A5 A5    LDA $A5
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 06 INC $0600,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $600-$6FF
A5 A5    LDA $A5
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
FE 00 07 INC $0700,X
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires writable $700-$7FF
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
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
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
68       PLA
48       PHA
26 26    ROL $26
66 26    ROR $26
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
22 bytes
68   ... PLA      × 22
Clobbers A, S, and Z&N
25 bytes
68       PLA       \ × 3
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
30 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
44 bytes
EA   ... NOP      × 44
No requirements


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 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
F6 F6    INC $F6,X
90 FA    BCC *-4
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
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 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
EA   ... NOP      × 2
88       DEY
D0 FB    BNE *-3
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
98       TYA
48       PHA
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FC    BNE *-2
68       PLA
A8       TAY
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 FB    BCS *-3
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 FB    BCS *-3
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
98       TYA
48       PHA
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 FB    BNE *-3
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 FC    BNE *-2
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
23 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 20
Clobbers A, S, and Z&N
26 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 11
48       PHA       /
Clobbers A, and Z&N
30 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
31 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
32 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
34 bytes
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
45 bytes
18   ... CLC      × 43
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 43
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 43
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 43
Requires support for unofficial opcodes
46 bytes
4C xx xx JMP *+3
EA   ... NOP      × 43
Not relocatable code


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
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 11    LDY #17
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
Clobbers A, Z&N, C, V, and D
EA   ... NOP      × 2
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 11    LDY #17
88       DEY
D0 FD    BNE *-1
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 FC    BPL *-2
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
EA       NOP
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 10    LDX #16
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
9 bytes
48       PHA
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
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 FC    BNE *-2
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 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 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
23 bytes
EA       NOP
68   ... PLA      × 22
Clobbers A, S, and Z&N
26 bytes
EA       NOP
68       PLA       \ × 3
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
30 bytes
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
45 bytes
EA   ... NOP      × 45
No requirements


91 cycles

5 bytes
A2 12    LDX #18
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
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
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C
48       PHA
08       PHP
A2 10    LDX #16
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 10    LDY #16
88       DEY
D0 FD    BNE *-1
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
98       TYA
48       PHA
A0 0F    LDY #15
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
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
38       SEC
A9 09    LDA #9
EA   ... NOP      × 2
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0E    LDY #14
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
F6 F6    INC $F6,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Requires @zptemp, and writable $00-$FF; 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 FC    BNE *-2
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
98       TYA
48       PHA
A0 0D    LDY #13
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
68       PLA
28       PLP
Writes in stack
23 bytes
68       PLA
48       PHA
68   ... PLA      × 21
Clobbers A, S, and Z&N
26 bytes
68       PLA       \ × 13
48       PHA       /
Clobbers A, and Z&N
31 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
32 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
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 /
36 36... ROL $36,X× 9
Clobbers Z&N, and V
04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
33 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 /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
34 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
46 bytes
18   ... CLC      × 44
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 44
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 44
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 44
Requires support for unofficial opcodes
47 bytes
4C xx xx JMP *+3
EA   ... NOP      × 44
Not relocatable code


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
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 0D    LDY #13
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, 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 FC    BPL *-2
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 FC    BPL *-2
Clobbers A, Z&N, C, V, and D
08       PHP
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
F6 F6    INC $F6,X
B0 F9    BCS *-5
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
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
68       PLA
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
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      × 2
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires @zptemp
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
EA       NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
11 bytes
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
23 bytes
68   ... PLA      × 23
Clobbers A, S, and Z&N
27 bytes
68       PLA       \ × 3
48       PHA       /
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
31 bytes
EA       NOP
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
46 bytes
EA   ... NOP      × 46
No requirements


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 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
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 FC    BPL *-2
68       PLA
Clobbers S, Z&N, C, V, and D; and writes in stack
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C
48       PHA
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
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 FC    BPL *-2
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
18   ... CLC      × 2
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
A5 A5    LDA $A5
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
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 FC    BNE *-2
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 FB    BNE *-3
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
24 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 21
Clobbers A, S, and Z&N
27 bytes
EA       NOP
68       PLA       \ × 13
48       PHA       /
Clobbers A, and Z&N
32 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
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 /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
33 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
34 bytes
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
47 bytes
18   ... CLC      × 45
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 45
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 45
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 45
Requires support for unofficial opcodes
48 bytes
4C xx xx JMP *+3
EA   ... NOP      × 45
Not relocatable code


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 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 12    LDX #18
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
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
38       SEC
A9 0D    LDA #13
EA       NOP
E9 01    SBC #1
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
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
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
08       PHP
A9 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 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FC    BNE *-2
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
98       TYA
48       PHA
A0 0F    LDY #15
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
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 FB    BCS *-3
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 FA    BNE *-4
68       PLA
28       PLP
Writes in stack
24 bytes
EA       NOP
68   ... PLA      × 23
Clobbers A, S, and Z&N
27 bytes
68       PLA       \ × 5
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
32 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N
47 bytes
EA   ... NOP      × 47
No requirements


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
A2 12    LDX #18
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 12    LDX #18
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
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 FC    BPL *-2
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 11    LDY #17
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
9 bytes
48       PHA
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 FB    BNE *-3
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
24 bytes
68       PLA
48       PHA
68   ... PLA      × 22
Clobbers A, S, and Z&N
27 bytes
68       PLA       \ × 4
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
32 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
33 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 2
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
34 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
35 bytes
EA       NOP
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
48 bytes
18   ... CLC      × 46
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 46
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 46
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 46
Requires support for unofficial opcodes
49 bytes
4C xx xx JMP *+3
EA   ... NOP      × 46
Not relocatable code


96 cycles

5 bytes
A2 13    LDX #19
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
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
68   ... PLA      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
Clobbers A, S, Z&N, C, V, and D
48       PHA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
48       PHA
08       PHP
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
A5 A5    LDA $A5
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
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
C5 C5    CMP $C5
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
F6 F6    INC $F6,X
90 FA    BCC *-4
68       PLA
Clobbers Z&N, C, and V; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
F6 F6    INC $F6,X
90 FA    BCC *-4
28       PLP
Clobbers A; requires @zptemp, and writable $00-$FF; 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
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
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
98       TYA
48       PHA
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FC    BNE *-2
68       PLA
A8       TAY
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 FB    BCS *-3
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
24 bytes
68   ... PLA      × 24
Clobbers A, S, and Z&N
28 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 12
48       PHA       /
Clobbers A, and Z&N
32 bytes
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N
48 bytes
EA   ... NOP      × 48
No requirements


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
A2 0C    LDX #12
48       PHA
CA       DEX
D0 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
A0 0C    LDY #12
48       PHA
88       DEY
D0 FC    BNE *-2
Clobbers Y, 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
A2 0C    LDX #12
C5 C5    CMP $C5
CA       DEX
D0 FB    BNE *-3
Clobbers X, Z&N, and C
A0 0C    LDY #12
C5 C5    CMP $C5
88       DEY
D0 FB    BNE *-3
Clobbers Y, Z&N, and C
A2 0C    LDX #12
24 24    BIT $24
CA       DEX
D0 FB    BNE *-3
Clobbers X, Z&N, and V
A0 0C    LDY #12
24 24    BIT $24
88       DEY
D0 FB    BNE *-3
Clobbers Y, Z&N, and V
A2 08    LDX #8
08       PHP
28       PLP
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N; and writes in stack
A0 08    LDY #8
08       PHP
28       PLP
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N; and writes in stack
A2 0C    LDX #12
A5 A5    LDA $A5
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, and Z&N
A0 0C    LDY #12
A5 A5    LDA $A5
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, and Z&N
A2 0C    LDX #12
A4 A4    LDY $A4
CA       DEX
D0 FB    BNE *-3
Clobbers X, Y, and Z&N
A2 0C    LDX #12
85 xx    STA @zptemp
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N; and requires @zptemp
A0 0C    LDY #12
85 xx    STA @zptemp
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N; and requires @zptemp
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
A2 0C    LDX #12
04 04    NOP $04
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N; and requires support for unofficial opcodes
A0 0C    LDY #12
04 04    NOP $04
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA   ... NOP      × 3
A2 12    LDX #18
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
EA       NOP
E6 xx    INC @zptemp
90 F9    BCC *-5
Clobbers A, Z&N, C, and V; and requires @zptemp
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
FE 00 02 INC $0200,X
90 F9    BCC *-5
Clobbers A, Z&N, C, and V; and requires writable $200-$2FF
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
FE 00 03 INC $0300,X
90 F9    BCC *-5
Clobbers A, Z&N, C, and V; and requires writable $300-$3FF
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
FE 00 04 INC $0400,X
90 F9    BCC *-5
Clobbers A, Z&N, C, and V; and requires writable $400-$4FF
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
FE 00 05 INC $0500,X
90 F9    BCC *-5
Clobbers A, Z&N, C, and V; and requires writable $500-$5FF
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
FE 00 06 INC $0600,X
90 F9    BCC *-5
Clobbers A, Z&N, C, and V; and requires writable $600-$6FF
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
FE 00 07 INC $0700,X
90 F9    BCC *-5
Clobbers A, Z&N, C, and V; and requires writable $700-$7FF
68       PLA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
9 bytes
EA       NOP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
EA       NOP
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 11    LDX #17
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 11    LDY #17
88       DEY
D0 FD    BNE *-1
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 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
25 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 22
Clobbers A, S, and Z&N
28 bytes
EA       NOP
68       PLA       \ × 4
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
33 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
34 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 7
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 \ × 7
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 \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
36 bytes
EA   ... NOP      × 2
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
49 bytes
18   ... CLC      × 47
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 47
50 00    BVC *+2
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 47
Requires @zptemp
04 04    NOP $04
EA   ... NOP      × 47
Requires support for unofficial opcodes


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 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A2 12    LDX #18
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
10 bytes
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
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
25 bytes
EA       NOP
68   ... PLA      × 24
Clobbers A, S, and Z&N
28 bytes
68       PLA       \ × 14
48       PHA       /
Clobbers A, and Z&N
33 bytes
EA       NOP
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N
49 bytes
EA   ... NOP      × 49
No requirements


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 FC    BNE *-2
Clobbers X, and Z&N
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FC    BNE *-2
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
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0D    LDY #13
EA       NOP
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
9 bytes
38       SEC
A9 0C    LDA #12
24 24    BIT $24
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C
68       PLA
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
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 FC    BPL *-2
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
EA   ... NOP      × 2
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
F6 F6    INC $F6,X
B0 F9    BCS *-5
68       PLA
Clobbers Z&N, C, and V; requires @zptemp, and writable $00-$FF; 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 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
25 bytes
68       PLA
48       PHA
68   ... PLA      × 23
Clobbers A, S, and Z&N
29 bytes
68       PLA       \ × 4
48       PHA       /
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
34 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 8
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 \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
37 bytes
EA   ... NOP      × 3
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
50 bytes
18   ... CLC      × 48
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 48
50 00    BVC *+2
Clobbers V


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 FC    BNE *-2
Clobbers A, X, S, and Z&N
A0 0B    LDY #11
68       PLA
88       DEY
D0 FC    BNE *-2
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 13    LDX #19
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
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 FB    BNE *-3
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A2 12    LDX #18
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
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 FB    BNE *-3
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 FB    BNE *-3
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
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and requires @zptemp
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
EA       NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
F6 F6    INC $F6,X
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; requires @zptemp, and writable $00-$FF; and writes in stack
48       PHA
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
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 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
25 bytes
68   ... PLA      × 25
Clobbers A, S, and Z&N
29 bytes
EA       NOP
68       PLA       \ × 14
48       PHA       /
Clobbers A, and Z&N
34 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
50 bytes
EA   ... NOP      × 50
No requirements


101 cycles

5 bytes
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FB    BNE *-3
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 FA    BNE *-4
Clobbers A, Z&N, C, and V
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
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
A2 12    LDX #18
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, 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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
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
38       SEC
A9 0D    LDA #13
EA       NOP
E9 01    SBC #1
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C
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
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
26 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 23
Clobbers A, S, and Z&N
29 bytes
68       PLA       \ × 6
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
34 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
35 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 7
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
36 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
38 bytes
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
51 bytes
18   ... CLC      × 49
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 49
50 00    BVC *+2
Clobbers V


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 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
F6 F6    INC $F6,X
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
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
A2 13    LDX #19
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
A2 0B    LDX #11
68       PLA
CA       DEX
D0 FC    BNE *-2
Clobbers A, X, S, and Z&N
EA       NOP
A0 0B    LDY #11
68       PLA
88       DEY
D0 FC    BNE *-2
Clobbers A, Y, S, and Z&N
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 FC    BNE *-2
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, and Z&N
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA   ... NOP      × 2
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
68       PLA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
9 bytes
EA   ... NOP      × 2
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
EA   ... NOP      × 2
08       PHP
A2 12    LDX #18
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 12    LDY #18
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
26 bytes
EA       NOP
68   ... PLA      × 25
Clobbers A, S, and Z&N
29 bytes
68       PLA       \ × 5
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
34 bytes
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
51 bytes
EA   ... NOP      × 51
No requirements


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 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08       PHP ;first loop only
90 FC    BCC *-2
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 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A2 13    LDX #19
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
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
8C       TXA
48       PHA
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FC    BNE *-2
68       PLA
AA       TAX
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 FB    BNE *-3
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 FB    BNE *-3
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
A5 A5    LDA $A5
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
F6 F6    INC $F6,X
90 FA    BCC *-4
68       PLA
28       PLP
Requires @zptemp, and writable $00-$FF; 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
26 bytes
68       PLA
48       PHA
68   ... PLA      × 24
Clobbers A, S, and Z&N
30 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 13
48       PHA       /
Clobbers A, and Z&N
35 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
36 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
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 /
36 36... ROL $36,X× 9
Clobbers Z&N, and V
04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
37 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 /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
38 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
52 bytes
18   ... CLC      × 50
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 50
50 00    BVC *+2
Clobbers V


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
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A6 A6    LDX $A6
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
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 0C    LDX #12
C5 C5    CMP $C5
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
C5 C5    CMP $C5
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
F6 F6    INC $F6,X
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
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
04 04    NOP $04
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
EA       NOP
68       PLA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
10 bytes
A5 A5    LDA $A5
38       SEC
A9 0E    LDA #14
EA       NOP
E9 01    SBC #1
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
11 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
26 bytes
68   ... PLA      × 26
Clobbers A, S, and Z&N
30 bytes
EA       NOP
68       PLA       \ × 5
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
35 bytes
EA       NOP
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
52 bytes
EA   ... NOP      × 52
No requirements


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 FC    BNE *-2
Clobbers X, S, and Z&N; and writes in stack
A0 0D    LDY #13
48       PHA
88       DEY
D0 FC    BNE *-2
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FC    BCC *-2
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 FB    BNE *-3
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A2 13    LDX #19
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
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 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
08       PHP
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
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
27 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 24
Clobbers A, S, and Z&N
30 bytes
68       PLA       \ × 15
48       PHA       /
Clobbers A, and Z&N
36 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
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 /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
37 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
38 bytes
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
53 bytes
18   ... CLC      × 51
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 51
50 00    BVC *+2
Clobbers V


106 cycles

5 bytes
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
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 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FC    BNE *-2
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 FB    BNE *-3
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
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
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 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
27 bytes
EA       NOP
68   ... PLA      × 26
Clobbers A, S, and Z&N
31 bytes
68       PLA       \ × 5
48       PHA       /
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
36 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N
53 bytes
EA   ... NOP      × 53
No requirements


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 FC    BCC *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
8 bytes
68       PLA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
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
38       SEC
A9 0D    LDA #13
24 24    BIT $24
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
98       TYA
48       PHA
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 13    LDX #19
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
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
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
48       PHA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
EA       NOP
08       PHP
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 FB    BNE *-3
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
27 bytes
68       PLA
48       PHA
68   ... PLA      × 25
Clobbers A, S, and Z&N
31 bytes
EA       NOP
68       PLA       \ × 15
48       PHA       /
Clobbers A, and Z&N
36 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
37 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 3
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
38 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
39 bytes
EA       NOP
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
54 bytes
18   ... CLC      × 52
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 52
50 00    BVC *+2
Clobbers V


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 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
7 bytes
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
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 FB    BNE *-3
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 FB    BNE *-3
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 FA    BNE *-4
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 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and requires @zptemp
F6 F6    INC $F6,X
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 writable $00-$FF; 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
EA       NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
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
27 bytes
68   ... PLA      × 27
Clobbers A, S, and Z&N
31 bytes
68       PLA       \ × 7
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
36 bytes
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N
54 bytes
EA   ... NOP      × 54
No requirements


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
A0 88    LDY #136 ;hides 'DEY'
F6 F6    INC $F6,X
30 FB    BMI *-3
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
48       PHA
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
A2 0C    LDX #12
68       PLA
CA       DEX
D0 FC    BNE *-2
Clobbers A, X, S, and Z&N
A0 0C    LDY #12
68       PLA
88       DEY
D0 FC    BNE *-2
Clobbers A, Y, S, and Z&N
7 bytes
A6 A6    LDX $A6
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
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 FD    BNE *-1
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
F6 F6    INC $F6,X
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
F6 F6    INC $F6,X
28       PLP
90 F9    BCC *-5
Clobbers A, Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
F6 F6    INC $F6,X
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; requires @zptemp, and writable $00-$FF; 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
EA       NOP
68       PLA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
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 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
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
EA       NOP
38       SEC
A9 0D    LDA #13
24 24    BIT $24
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
E6 xx    INC @zptemp
F6 F6    INC $F6,X
90 F8    BCC *-6
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C
11 bytes
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
28 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 25
Clobbers A, S, and Z&N
31 bytes
68       PLA       \ × 6
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
37 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
38 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 8
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 \ × 8
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 \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
40 bytes
EA   ... NOP      × 2
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
55 bytes
18   ... CLC      × 53
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 53
50 00    BVC *+2
Clobbers V


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
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
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 FB    BNE *-3
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
9 bytes
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
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 FB    BNE *-3
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
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
12 bytes
48       PHA
8C       TXA
48       PHA
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FC    BNE *-2
68       PLA
AA       TAX
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 FB    BNE *-3
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
28 bytes
EA       NOP
68   ... PLA      × 27
Clobbers A, S, and Z&N
32 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 14
48       PHA       /
Clobbers A, and Z&N
37 bytes
EA       NOP
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N
55 bytes
EA   ... NOP      × 55
No requirements


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
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
08       PHP
A6 A6    LDX $A6
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 14    LDY #20
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
08       PHP
48       PHA
A9       LDA #70
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
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
98       TYA
48       PHA
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
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 FB    BNE *-3
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 FB    BNE *-3
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
28 bytes
68       PLA
48       PHA
68   ... PLA      × 26
Clobbers A, S, and Z&N
32 bytes
EA       NOP
68       PLA       \ × 6
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
38 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 9
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 \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
41 bytes
EA   ... NOP      × 3
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
56 bytes
18   ... CLC      × 54
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 54
50 00    BVC *+2
Clobbers V


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 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
F6 F6    INC $F6,X
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
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
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
8 bytes
EA   ... NOP      × 3
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 FB    BNE *-3
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
EA   ... NOP      × 2
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
8C       TXA
48       PHA
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 0D    LDX #13
C5 C5    CMP $C5
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0D    LDY #13
C5 C5    CMP $C5
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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 FB    BNE *-3
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 FB    BNE *-3
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
28 bytes
68   ... PLA      × 28
Clobbers A, S, and Z&N
32 bytes
68       PLA       \ × 16
48       PHA       /
Clobbers A, and Z&N
38 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
56 bytes
EA   ... NOP      × 56
No requirements


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 FC    BNE *-2
Clobbers A, Z&N, C, and V
A2 10    LDX #16
EA       NOP
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 10    LDY #16
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
48   ... PHA      × 2
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
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 FB    BNE *-3
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 FB    BNE *-3
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 FB    BNE *-3
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
29 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 26
Clobbers A, S, and Z&N
33 bytes
68       PLA       \ × 6
48       PHA       /
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
38 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
39 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 8
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
40 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
42 bytes
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
57 bytes
18   ... CLC      × 55
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 55
50 00    BVC *+2
Clobbers V


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 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
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
A6 A6    LDX $A6
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
A2 18    LDX #24 ;hides 'CLC'
CA   ... DEX      × 2
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24 ;hides 'CLC'
88   ... DEY      × 2
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
8C       TXA
48       PHA
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 13    LDY #19
88       DEY
D0 FD    BNE *-1
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
08       PHP
38       SEC
A9 0D    LDA #13
24 24    BIT $24
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
29 bytes
EA       NOP
68   ... PLA      × 28
Clobbers A, S, and Z&N
33 bytes
EA       NOP
68       PLA       \ × 16
48       PHA       /
Clobbers A, and Z&N
38 bytes
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
57 bytes
EA   ... NOP      × 57
No requirements


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 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
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
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
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 FB    BNE *-3
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 FB    BNE *-3
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
36 36    ROL $36,X
76 36    ROR $36,X
90 F8    BCC *-6
Clobbers A, Z&N, and C
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 FB    BNE *-3
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 FA    BNE *-4
68       PLA
28       PLP
Writes in stack
29 bytes
68       PLA
48       PHA
68   ... PLA      × 27
Clobbers A, S, and Z&N
33 bytes
68       PLA       \ × 8
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
39 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
40 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
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 /
36 36... ROL $36,X× 9
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 /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
41 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 /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
42 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
58 bytes
18   ... CLC      × 56
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 56
50 00    BVC *+2
Clobbers V


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 FD    BNE *-1
Clobbers X, and Z&N
A0 17    LDY #23
88       DEY
D0 FD    BNE *-1
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
08       PHP
A0 88    LDY #136 ;hides 'DEY'
F6 F6    INC $F6,X
30 FB    BMI *-3
28       PLP
Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack
48       PHA
08       PHP
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
A6 A6    LDX $A6
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
08       PHP
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
8C       TXA
48       PHA
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
68       PLA
AA       TAX
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 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C; and requires @zptemp
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
F6 F6    INC $F6,X
28       PLP
90 F9    BCC *-5
68       PLA
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
F6 F6    INC $F6,X
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
28       PLP
Clobbers A; requires @zptemp, and writable $00-$FF; 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 FB    BNE *-3
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 FB    BNE *-3
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
EA       NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
29 bytes
68   ... PLA      × 29
Clobbers A, S, and Z&N
33 bytes
68       PLA       \ × 7
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
39 bytes
EA       NOP
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
58 bytes
EA   ... NOP      × 58
No requirements


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 A5    LDA $A5
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, and Z&N
A0 0D    LDY #13 ;hides 'ORA abs'
A5 A5    LDA $A5
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, and Z&N
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
F6 F6    INC $F6,X
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
F6 F6    INC $F6,X
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF
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
EA       NOP
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
48   ... PHA      × 2
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
9 bytes
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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 FB    BNE *-3
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 FB    BNE *-3
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
18   ... CLC      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
36 36    ROL $36,X
76 36    ROR $36,X
90 F8    BCC *-6
Clobbers A, Z&N, and C
30 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 27
Clobbers A, S, and Z&N
34 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 15
48       PHA       /
Clobbers A, and Z&N
40 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
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 /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
41 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
42 bytes
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
59 bytes
18   ... CLC      × 57
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 57
50 00    BVC *+2
Clobbers V


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 FC    BCS *-2
Clobbers A, Z&N, C, and V
EA       NOP
A2 17    LDX #23
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 17    LDY #23
88       DEY
D0 FD    BNE *-1
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
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
11 bytes
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
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 FB    BNE *-3
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
30 bytes
EA       NOP
68   ... PLA      × 29
Clobbers A, S, and Z&N
34 bytes
EA       NOP
68       PLA       \ × 7
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
40 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N
59 bytes
EA   ... NOP      × 59
No requirements


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
A0 88    LDY #136 ;hides 'DEY'
68       PLA
48       PHA
30 FB    BMI *-3
Clobbers A, Y, and Z&N
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 FD    BNE *-1
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 FD    BNE *-1
Clobbers X, and Z&N
A4 A4    LDY $A4
A0 17    LDY #23
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
08       PHP
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
08       PHP
F6 F6    INC $F6,X
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; requires @zptemp, and writable $00-$FF; 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
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 15    LDY #21
88       DEY
D0 FD    BNE *-1
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
8C       TXA
48       PHA
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
68       PLA
AA       TAX
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 FB    BNE *-3
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
30 bytes
68       PLA
48       PHA
68   ... PLA      × 28
Clobbers A, S, and Z&N
34 bytes
68       PLA       \ × 17
48       PHA       /
Clobbers A, and Z&N
40 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
41 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 4
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
42 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
43 bytes
EA       NOP
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
60 bytes
18   ... CLC      × 58
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 58
50 00    BVC *+2
Clobbers V


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 FC    BNE *-2
Clobbers X, and Z&N
A0 11    LDY #17
EA       NOP
88       DEY
D0 FC    BNE *-2
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 FC    BNE *-2
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 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 10    LDX #16
EA       NOP
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
EA       NOP
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; 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
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
48       PHA
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
30 bytes
68   ... PLA      × 30
Clobbers A, S, and Z&N
35 bytes
68       PLA       \ × 7
48       PHA       /
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
40 bytes
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N
60 bytes
EA   ... NOP      × 60
No requirements


121 cycles

5 bytes
A2 18    LDX #24
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 18    LDY #24
88       DEY
D0 FD    BNE *-1
Clobbers Y, 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
E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V; and requires @zptemp
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
EA       NOP
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
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
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, 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 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 A4    LDY $A4
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
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
8C       TXA
48       PHA
A2 14    LDX #20
CA       DEX
D0 FD    BNE *-1
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 14    LDA #20
E9 01    SBC #1
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
31 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 28
Clobbers A, S, and Z&N
35 bytes
EA       NOP
68       PLA       \ × 17
48       PHA       /
Clobbers A, and Z&N
41 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
42 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 9
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 \ × 9
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 \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
43 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
44 bytes
EA   ... NOP      × 2
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
61 bytes
18   ... CLC      × 59
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 59
50 00    BVC *+2
Clobbers V


122 cycles

6 bytes
EA       NOP
A9       LDA #93
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 FB    BPL *-3
Clobbers A, Z&N, C, V, and D
EA       NOP
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
EA       NOP
A0 11    LDY #17
EA       NOP
88       DEY
D0 FC    BNE *-2
Clobbers Y, and Z&N
F6 F6    INC $F6,X
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
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
EA       NOP
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
8 bytes
38       SEC
A9 11    LDA #17
EA       NOP
E9 01    SBC #1
D0 FA    BNE *-4
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 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
31 bytes
EA       NOP
68   ... PLA      × 30
Clobbers A, S, and Z&N
35 bytes
68       PLA       \ × 9
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
41 bytes
EA       NOP
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N
61 bytes
EA   ... NOP      × 61
No requirements


123 cycles

6 bytes
EA       NOP
A2 18    LDX #24
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA       NOP
A0 18    LDY #24
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
EA       NOP
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
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
38       SEC
A9 18    LDA #24
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 17    LDX #23
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
10 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, S, Z&N, and C
11 bytes
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
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 FB    BNE *-3
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'
08       PHP
F6 F6    INC $F6,X
28       PLP
90 F9    BCC *-5
68       PLA
28       PLP
Requires @zptemp, and writable $00-$FF; 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 FB    BNE *-3
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
31 bytes
68       PLA
48       PHA
68   ... PLA      × 29
Clobbers A, S, and Z&N
35 bytes
68       PLA       \ × 8
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
42 bytes
C5 C5    CMP $C5
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N, and C
24 24    BIT $24
36 36    ROL $36,X \ × 10
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 \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
EA       NOP
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $200-$2FF
EA       NOP
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $300-$3FF
EA       NOP
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $400-$4FF
EA       NOP
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $500-$5FF
EA       NOP
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $600-$6FF
EA       NOP
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires writable $700-$7FF
04 04    NOP $04
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
43 bytes
4C xx xx JMP *+3
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
45 bytes
EA   ... NOP      × 3
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
62 bytes
18   ... CLC      × 60
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 60
50 00    BVC *+2
Clobbers V


124 cycles

4 bytes
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers X, and Z&N
6 bytes
48       PHA
A0 18    LDY #24
88       DEY
D0 FD    BNE *-1
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A9       LDA #93
20 xx xx JSR delay_a_25_clocks
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A4 A4    LDY $A4
A0 18    LDY #24
88       DEY
D0 FD    BNE *-1
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
A5 A5    LDA $A5
A9       LDA #94
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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 FB    BPL *-3
Clobbers A, Z&N, C, V, and D
EA       NOP
F6 F6    INC $F6,X
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF
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 FA    BNE *-4
Clobbers A, Z&N, C, and V
08       PHP
A2 0D    LDX #13 ;hides 'ORA abs'
A5 A5    LDA $A5
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 A5    LDA $A5
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 FD    BNE *-1
F6 xx    INC @zptemp,X
28       PLP
Clobbers X; requires @zptemp; and writes in stack
F6 F6    INC $F6,X
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 @zptemp, and writable $00-$FF; and writes in stack
08       PHP
F6 F6    INC $F6,X
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack
08       PHP
F6 F6    INC $F6,X
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; requires @zptemp, and writable $00-$FF; 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
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y, 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 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 16    LDX #22
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 16    LDY #22
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C; and requires @zptemp
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
EA       NOP
A5 A5    LDA $A5
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
31 bytes
68   ... PLA      × 31
Clobbers A, S, and Z&N
36 bytes
36 36    ROL $36,X
76 36    ROR $36,X
68       PLA       \ × 16
48       PHA       /
Clobbers A, and Z&N
42 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
62 bytes
EA   ... NOP      × 62
No requirements


125 cycles

6 bytes
68       PLA
A2 18    LDX #24
CA       DEX
D0 FD    BNE *-1
Clobbers A, X, S, and Z&N
68       PLA
A0 18    LDY #24
88       DEY
D0 FD    BNE *-1
Clobbers A, Y, S, and Z&N
68       PLA
A9       LDA #94
20 xx xx JSR delay_a_25_clocks
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
EA   ... NOP      × 2
A2 18    LDX #24
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 18    LDY #24
88       DEY
D0 FD    BNE *-1
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
EA   ... NOP      × 2
A9       LDA #94
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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 FC    BCS *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA       NOP
38       SEC
A9 18    LDA #24
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 17    LDY #23
88       DEY
D0 FD    BNE *-1
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
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack
11 bytes
F6 F6    INC $F6,X
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, S, Z&N, and C
12 bytes
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
32 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 29
Clobbers A, S, and Z&N
36 bytes
EA       NOP
68       PLA       \ × 8
48       PHA       /
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
42 bytes
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
43 bytes
EA       NOP
C5 C5    CMP $C5
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N, and C
EA       NOP
24 24    BIT $24
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N, and V
FE 00 02 INC $0200,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 9
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
EA       NOP
04 04    NOP $04
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires support for unofficial opcodes
44 bytes
EA       NOP
4C xx xx JMP *+3
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and not relocatable code
46 bytes
26 26    ROL $26   \ × 2
66 26    ROR $26   /
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
63 bytes
18   ... CLC      × 61
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 61
50 00    BVC *+2
Clobbers V


126 cycles

5 bytes
A2 19    LDX #25
CA       DEX
D0 FD    BNE *-1
Clobbers X, and Z&N
A0 19    LDY #25
88       DEY
D0 FD    BNE *-1
Clobbers Y, and Z&N
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
68       PLA
48       PHA
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
EA       NOP
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
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 FD    BNE *-1
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
A5 A5    LDA $A5
38       SEC
A9 18    LDA #24
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
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 FD    BNE *-1
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
11 bytes
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FD    BNE *-1
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 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
32 bytes
EA       NOP
68   ... PLA      × 31
Clobbers A, S, and Z&N
36 bytes
68       PLA       \ × 18
48       PHA       /
Clobbers A, and Z&N
42 bytes
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N
63 bytes
EA   ... NOP      × 63
No requirements


127 cycles

5 bytes
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
6 bytes
A2 12    LDX #18
EA       NOP
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 12    LDY #18
EA       NOP
88       DEY
D0 FC    BNE *-2
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
68       PLA
48       PHA
A9       LDA #93
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
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
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
EA       NOP
88       DEY
D0 FC    BNE *-2
28       PLP
Clobbers Y; and writes in stack
68       PLA
38       SEC
A9 18    LDA #24
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, S, Z&N, C, and V
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
38       SEC
A9 18    LDA #24
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
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 FC    BNE *-2
68       PLA
28       PLP
Writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 3
90 00    BCC *+2
18       CLC
D0 F7    BNE *-7
Clobbers A, Z&N, and C
32 bytes
68       PLA
48       PHA
68   ... PLA      × 30
Clobbers A, S, and Z&N
37 bytes
68       PLA       \ × 8
48       PHA       /
36 36    ROL $36,X
76 36    ROR $36,X
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 12
10 F0    BPL *-14
Clobbers A, and Z&N
43 bytes
EA       NOP
E6 xx    INC @zptemp
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires @zptemp
FE 00 02 INC $0200,X
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $200-$2FF
FE 00 03 INC $0300,X
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $300-$3FF
FE 00 04 INC $0400,X
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $400-$4FF
FE 00 05 INC $0500,X
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $500-$5FF
FE 00 06 INC $0600,X
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $600-$6FF
FE 00 07 INC $0700,X
36 36    ROL $36,X \ × 10
76 36    ROR $36,X /
Clobbers Z&N; and requires writable $700-$7FF
44 bytes
C5 C5    CMP $C5
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and C
24 24    BIT $24
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N, and V
04 04    NOP $04
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and requires support for unofficial opcodes
45 bytes
4C xx xx JMP *+3
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 5
76 36    ROR $36,X /
36 36... ROL $36,X× 9
Clobbers Z&N; and not relocatable code
46 bytes
26 26    ROL $26
66 26    ROR $26
36 36    ROL $36,X \ × 6
76 36    ROR $36,X /
26 26... ROL $26  × 9
Clobbers Z&N
64 bytes
18   ... CLC      × 62
90 00    BCC *+2
Clobbers C
B8   ... CLV      × 62
50 00    BVC *+2
Clobbers V


128 cycles

7 bytes
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 FB    BNE *-3
Clobbers A, Z&N, C, and V
08       PHP
A2 18    LDX #24
CA       DEX
D0 FD    BNE *-1
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24
88       DEY
D0 FD    BNE *-1
28       PLP
Clobbers Y; 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
8 bytes
A2 14    LDX #20 ;hides 'NOP zp,X'
04 EA    NOP $EA ;hides 'NOP'
CA   ... DEX      × 2
D0 F9    BNE *-5
Clobbers X, and Z&N; and requires support for unofficial opcodes
A0 14    LDY #20 ;hides 'NOP zp,X'
04 EA    NOP $EA ;hides 'NOP'
88   ... DEY      × 2
D0 F9    BNE *-5
Clobbers Y, and Z&N; and requires support for unofficial opcodes
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
A2 0B    LDX #11
F6 F6    INC $F6,X
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp, and writable $00-$FF
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
A2 0B    LDX #11
EA       NOP
68       PLA
CA       DEX
D0 FB    BNE *-3
F6 xx    INC @zptemp,X
Clobbers A, X, S, and Z&N; and requires @zptemp
10 bytes
A2 05    LDX #5 ;hides 'ORA zp'
CA       DEX ;first loop only
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
CA       DEX
D0 F7    BNE *-7
Clobbers A, X, Z&N, and C
A0 05    LDY #5 ;hides 'ORA zp'
88       DEY ;first loop only
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
88       DEY
D0 F7    BNE *-7
Clobbers A, Y, Z&N, and C
A2 0B    LDX #11
EA   ... NOP      × 3
CA       DEX
D0 FA    BNE *-4
F6 xx    INC @zptemp,X
Clobbers X, and Z&N; and requires @zptemp
A2 09    LDX #9 ;hides 'ORA #imm'
FE B5 02 INC $02B5,X ;hides 'LDA $02,X'
A5 A5    LDA $A5
CA       DEX
D0 F7    BNE *-7
Clobbers A, X, and Z&N; and requires writable $200-$2FF, and writable $300-$3FF
A0 09    LDY #9 ;hides 'ORA #imm'
FE B5 02 INC $02B5,X ;hides 'LDA $02,X'
A5 A5    LDA $A5
88       DEY
D0 F7    BNE *-7
Clobbers A, Y, and Z&N; and requires writable $200-$2FF, and writable $300-$3FF
A2 09    LDX #9 ;hides 'ORA #imm'
FE B5 03 INC $03B5,X ;hides 'LDA $03,X'
A5 A5    LDA $A5
CA       DEX
D0 F7    BNE *-7
Clobbers A, X, and Z&N; and requires writable $300-$3FF, and writable $400-$4FF
A0 09    LDY #9 ;hides 'ORA #imm'
FE B5 03 INC $03B5,X ;hides 'LDA $03,X'
A5 A5    LDA $A5
88       DEY
D0 F7    BNE *-7
Clobbers A, Y, and Z&N; and requires writable $300-$3FF, and writable $400-$4FF
A2 09    LDX #9 ;hides 'ORA #imm'
FE B5 04 INC $04B5,X ;hides 'LDA $04,X'
A5 A5    LDA $A5
CA       DEX
D0 F7    BNE *-7
Clobbers A, X, and Z&N; and requires writable $400-$4FF, and writable $500-$5FF
A0 09    LDY #9 ;hides 'ORA #imm'
FE B5 04 INC $04B5,X ;hides 'LDA $04,X'
A5 A5    LDA $A5
88       DEY
D0 F7    BNE *-7
Clobbers A, Y, and Z&N; and requires writable $400-$4FF, and writable $500-$5FF
A2 09    LDX #9 ;hides 'ORA #imm'
FE B5 05 INC $05B5,X ;hides 'LDA $05,X'
A5 A5    LDA $A5
CA       DEX
D0 F7    BNE *-7
Clobbers A, X, and Z&N; and requires writable $500-$5FF, and writable $600-$6FF
A0 09    LDY #9 ;hides 'ORA #imm'
FE B5 05 INC $05B5,X ;hides 'LDA $05,X'
A5 A5    LDA $A5
88       DEY
D0 F7    BNE *-7
Clobbers A, Y, and Z&N; and requires writable $500-$5FF, and writable $600-$6FF
A2 09    LDX #9 ;hides 'ORA #imm'
FE B5 07 INC $07B5,X ;hides 'LDA $07,X'
A5 A5    LDA $A5
CA       DEX
D0 F7    BNE *-7
Clobbers A, X, and Z&N; and requires writable $00-$FF, and writable $700-$7FF
A0 09    LDY #9 ;hides 'ORA #imm'
FE B5 07 INC $07B5,X ;hides 'LDA $07,X'
A5 A5    LDA $A5
88       DEY
D0 F7    BNE *-7
Clobbers A, Y, and Z&N; and requires writable $00-$FF, and writable $700-$7FF
A2 09    LDX #9 ;hides 'ORA #imm'
FE B5 06 INC $06B5,X ;hides 'LDA $06,X'
A5 A5    LDA $A5
CA       DEX
D0 F7    BNE *-7
Clobbers A, X, and Z&N; and requires writable $600-$6FF, and writable $700-$7FF
A0 09    LDY #9 ;hides 'ORA #imm'
FE B5 06 INC $06B5,X ;hides 'LDA $06,X'
A5 A5    LDA $A5
88       DEY
D0 F7    BNE *-7
Clobbers A, Y, and Z&N; and requires writable $600-$6FF, and writable $700-$7FF
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
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
BA       TSX
A0 09    LDY #9 ;hides 'ORA #imm'
A5 68    LDA $68 ;hides 'PLA'
A5 A5    LDA $A5
88       DEY
D0 F8    BNE *-6
9A       TXS
Clobbers A, X, Y, and Z&N; and unsafe for interrupts
A2 05    LDX #5 ;hides 'ORA zp'
B5 68    LDA $68,X ;hides 'PLA'
68       PLA       \ × 2
48       PHA       /
CA       DEX
D0 F6    BNE *-8
Clobbers A, X, S, and Z&N
A0 05    LDY #5 ;hides 'ORA zp'
B5 68    LDA $68,X ;hides 'PLA'
68       PLA       \ × 2
48       PHA       /
88       DEY
D0 F6    BNE *-8
Clobbers A, Y, S, and Z&N
12 bytes
A2 05    LDX #5 ;hides 'ORA zp'
AD EA EA LDA $EAEA ;hides two 'NOP's
68       PLA       \ × 2
48       PHA       /
CA       DEX
D0 F5    BNE *-9
Clobbers A, X, and Z&N
A0 05    LDY #5 ;hides 'ORA zp'
AD EA EA LDA $EAEA ;hides two 'NOP's
68       PLA       \ × 2
48       PHA       /
88       DEY
D0 F5    BNE *-9
Clobbers A, Y, and Z&N
A2 01    LDX #1
EA       NOP
A0 11    LDY #17
EA       NOP
88       DEY
D0 FC    BNE *-2
CA       DEX
D0 F6    BNE *-8
Clobbers X, Y, and Z&N
16 bytes
18   ... CLC      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 9
18       CLC
10 F3    BPL *-11
Clobbers A, Z&N, and C
32 bytes
68   ... PLA      × 32
Clobbers A, S, and Z&N
64 bytes
EA   ... NOP      × 64
No requirements
  • From 128 cycles onwards, these tables quit considering RTI options.


See also