Fixed cycle delay: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(Bugfix)
(update)
Line 1,438: Line 1,438:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 69   LDA #$69 ;hides 'ADC #$D8'
|<pre>18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
90 FD   BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,449: Line 1,449:
48      PHA
48      PHA
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|<pre>A9 69    LDA #$69 ;hides 'ADC #$08'
08      PHP ;first loop only
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,458: Line 1,454:
48      PHA
48      PHA
00 00    BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 1,610: Line 1,602:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
18      CLC
Line 1,719: Line 1,711:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
90 FD   BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,727: Line 1,719:
28      PLP
28      PLP
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
85 xx    STA @zptemp
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,748: Line 1,736:
68      PLA
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA</pre>||Clobbers A, S, and Z&N
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
04 00    NOP $00
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,021: Line 2,005:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
A0 04    LDY #4
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,028: Line 2,017:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 04    LDY #4
18       CLC
88       DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
48      PHA
90 FD   BCC *-1</pre>||Clobbers A, S, Z&N, and C
10 FC   BPL *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>68      PLA
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8      CLD ;first loop only
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, C, V, and D
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,052: Line 2,031:
28      PLP
28      PLP
00 00    BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|<pre>68      PLA
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 2,085: Line 2,059:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, V, and D
90 FD   BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,094: Line 2,068:
28      PLP
28      PLP
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
85 xx    STA @zptemp
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,119: Line 2,088:
68      PLA
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA</pre>||Clobbers A, S, and Z&N
|-
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
04 00    NOP $00
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,134: Line 2,098:
20 xx xx JSR delay_256a_16_clocks
20 xx xx JSR delay_256a_16_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack
|-
|<pre>68      PLA
48      PHA
A9      LDA #0
20 xx xx JSR delay_256a_16_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks, and delay_256a_16_clocks
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,283: Line 2,242:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
Line 2,472: Line 2,431:
28      PLP
28      PLP
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|<pre>A2 82    LDX #130 ;hides 'NOP #imm'
04 EA    NOP $EA ;hides 'NOP'
CA      DEX
30 FA    BMI *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 82    LDY #130 ;hides 'NOP #imm'
|<pre>A0 82    LDY #130 ;hides 'NOP #imm'
Line 2,477: Line 2,441:
88      DEY
88      DEY
30 FA    BMI *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
30 FA    BMI *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|<pre>A2 82    LDX #130 ;hides 'NOP #imm'
04 EA    NOP $EA ;hides 'NOP'
CA      DEX
30 FA    BMI *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,682: Line 2,641:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,689: Line 2,653:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 05    LDX #5
18       CLC
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
Line 2,704: Line 2,663:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
10 FC   BPL *-2
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
A0 04    LDY #4
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,714: Line 2,679:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 04    LDY #4
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
10 FC   BPL *-2
90 FD   BCC *-1
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,740: Line 2,699:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA      NOP ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,808: Line 2,761:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 04    LDX #4
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
Line 2,819: Line 2,767:
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 69   LDA #$69 ;hides 'ADC #$D8'
|<pre>A2 04   LDX #4
D8      CLD ;first loop only
EA      NOP
EA      NOP
10 FB   BPL *-3</pre>||Clobbers A, Z&N, C, V, and D
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
90 FC    BCC *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 2,850: Line 2,799:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
48      PHA
18      CLC
10 FB    BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA      NOP ;first loop only
EA      NOP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 2,872: Line 2,811:
28      PLP
28      PLP
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>EA      NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,897: Line 2,831:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
18      CLC
Line 2,905: Line 2,839:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 03    LDY #3
A2 03    LDX #3
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 03    LDX #3
A0 03    LDY #3
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
18      CLC
Line 3,174: Line 3,108:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
Line 3,186: Line 3,120:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
10 FC   BPL *-2
90 FD   BCC *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 3,207: Line 3,141:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
18       CLC
D8       CLD ;first loop only
10 FC    BPL *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
85 xx   STA @zptemp
90 FD   BCC *-1
10 FB    BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,231: Line 3,159:
68      PLA
68      PLA
68      PLA</pre>||Clobbers A, S, and Z&N
68      PLA</pre>||Clobbers A, S, and Z&N
|-
|<pre>48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
10 FC    BPL *-2
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
04 00    NOP $00
10 FB    BPL *-3
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 3,310: Line 3,225:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$18'
|<pre>18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
30 FC    BMI *-2</pre>||Clobbers A, Z&N, C, and V
90 FD   BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|<pre>A9 4B   LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 3,329: Line 3,240:
10 FD    BPL *-1
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 3,396: Line 3,302:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
|-
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,408: Line 3,310:
28      PLP
28      PLP
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14</pre>||Requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 3,437: Line 3,343:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A6 00    LDX $00
A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,444: Line 3,357:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 04    LDX #4
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
Line 3,692: Line 3,598:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A6 00    LDX $00
A2 04    LDX #4
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 3,699: Line 3,611:
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>EA      NOP
A2 04    LDX #4
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Line 3,730: Line 3,636:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 09   LDA #$09 ;hides 'ORA #$EA'
18      CLC
EA      NOP ;first loop only
A9 4A   LDA #$4A ;hides 'LSR A'
08      PHP
24 00    BIT $00
28      PLP
90 FB   BCC *-3
10 FA   BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 3,839: Line 3,744:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
30 FC   BMI *-2</pre>||Clobbers A, Z&N, C, and V
90 FD   BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,847: Line 3,752:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 3,873: Line 3,773:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,307: Line 4,201:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
30 FC    BMI *-2</pre>||Clobbers A, S, Z&N, C, and V
90 FD   BCC *-1</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>68      PLA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
D0 FC   BNE *-2</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 4,326: Line 4,215:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
30 FC   BMI *-2</pre>||Clobbers A, Z&N, C, and V
90 FD   BCC *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,341: Line 4,230:
10 FD    BPL *-1
10 FD    BPL *-1
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>EA      NOP
EA      NOP
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,367: Line 4,244:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 4,388: Line 4,265:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
90 00    BCC *+2
18      CLC
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,418: Line 4,289:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
10 FC   BPL *-2
90 FD   BCC *-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 4,609: Line 4,480:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 4,635: Line 4,506:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
EA      NOP
EA      NOP
10 FB   BPL *-3
90 FC   BCC *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 04    LDX #4
A0 04    LDY #4
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 04    LDY #4
A2 04    LDX #4
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
EA      NOP
EA      NOP
10 FB   BPL *-3
90 FC   BCC *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,666: Line 4,537:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,683: Line 4,548:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA      NOP ;first loop only
EA      NOP
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 4,710: Line 4,561:
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>68      PLA
C5 00    CMP $00
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
Line 4,735: Line 4,579:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
18      CLC
18      CLC
Line 4,875: Line 4,719:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 4,899: Line 4,743:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 4,917: Line 4,761:
08      PHP
08      PHP
48      PHA
48      PHA
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
10 FC   BPL *-2
90 FD   BCC *-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 5,102: Line 4,946:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 07    LDY #7
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,114: Line 4,953:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A0 07    LDY #7
2A       ROL A ;first loop only
88      DEY
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>38      SEC
A9 69   LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 5,126: Line 4,970:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
30 FC   BMI *-2
90 FD   BCC *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 5,142: Line 4,986:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18      CLC ;first loop only
30 FC    BMI *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0</pre>||Requires dummy interrupt handler, and @rts12; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler, and @rts12; and writes in stack
|-
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 5,405: Line 5,243:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
EA      NOP
08      PHP
48      PHA
48      PHA
A9 09   LDA #$09 ;hides 'ORA #$EA'
18      CLC
EA      NOP ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
08      PHP
90 FD   BCC *-1
28      PLP
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 5,620: Line 5,458:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 69   LDA #$69 ;hides 'ADC #$EA'
2A       ROL A ;first loop only
EA       NOP ;first loop only
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 5,649: Line 5,487:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
30 FC   BMI *-2
90 FD   BCC *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 5,667: Line 5,505:
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
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|<pre>EA      NOP
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18      CLC ;first loop only
30 FC    BMI *-2
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,688: Line 5,526:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 5,781: Line 5,612:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
Line 6,199: Line 6,030:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 6,288: Line 6,119:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 06    LDY #6
|<pre>A2 06    LDX #6
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A0 06    LDY #6
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
90 FC   BCC *-2</pre>||Clobbers A, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 6,331: Line 6,162:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 6,361: Line 6,192:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
EA      NOP
EA      NOP
10 FB   BPL *-3
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 6,770: Line 6,601:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 6,871: Line 6,702:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
A0 06    LDY #6
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,885: Line 6,710:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 06    LDY #6
EA      NOP
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
90 FC   BCC *-2</pre>||Clobbers A, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,902: Line 6,733:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 69   LDA #$69 ;hides 'ADC #$EA'
2A       ROL A ;first loop only
EA       NOP ;first loop only
B0 FC   BCS *-2
10 FA   BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 6,923: Line 6,754:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 69   LDA #$69 ;hides 'ADC #$EA'
2A       ROL A ;first loop only
EA       NOP ;first loop only
B0 FC   BCS *-2
10 FA   BPL *-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
|-
|-
Line 6,940: Line 6,771:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
30 FC   BMI *-2
90 FD   BCC *-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 7,401: Line 7,232:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 06    LDX #6
A0 06    LDY #6
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 06    LDY #6
A2 06    LDX #6
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,443: Line 7,274:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
38      SEC
2A       ROL A ;first loop only
A9 69   LDA #$69 ;hides 'ADC #$EA'
B0 FC   BCS *-2
EA       NOP ;first loop only
10 FA   BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 7,467: Line 7,298:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
38      SEC
2A       ROL A ;first loop only
A9 69   LDA #$69 ;hides 'ADC #$EA'
B0 FC   BCS *-2
EA       NOP ;first loop only
10 FA   BPL *-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
|-
|-
Line 7,507: Line 7,338:
08      PHP
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
30 FC   BMI *-2
90 FD   BCC *-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 7,722: Line 7,553:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
D0 FD    BNE *-1
Line 7,740: Line 7,571:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
D0 FD    BNE *-1
Line 7,855: Line 7,686:
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
18      CLC
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 7,867: Line 7,698:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
B8      CLV
A9 2A    LDA #$2A ;hides 'ROL A'
50 00    BVC *+2
08      PHP
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, and V
28      PLP
90 FB    BCC *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
24 00    BIT $00
90 FB   BCC *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
90 FB   BCC *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,895: Line 7,732:
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
18      CLC
90 FB   BCC *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
10 FA   BPL *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,070: Line 7,907:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 07    LDY #7
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 07    LDX #7
|<pre>A2 07    LDX #7
Line 8,075: Line 7,917:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 07    LDY #7
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
Line 8,116: Line 7,953:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
08      PHP
90 FC   BCC *-2
A9 0A   LDA #$0A ;hides 'ASL A'
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
|<pre>08      PHP
A0 06    LDY #6
A2 06    LDX #6
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 06    LDX #6
A0 06    LDY #6
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
48      PHA
90 FC   BCC *-2
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 8,452: Line 8,289:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 69   LDA #$69 ;hides 'ADC #$EA'
2A       ROL A ;first loop only
EA       NOP ;first loop only
EA      NOP
EA      NOP
B0 FB   BCS *-3</pre>||Clobbers A, Z&N, C, and V
10 F9   BPL *-5</pre>||Clobbers A, 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'
48      PHA
48      PHA
18      CLC
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,476: Line 8,313:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 8,510: Line 8,347:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD   BNE *-1
EA      NOP
90 FC   BCC *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 06    LDY #6
A2 06    LDX #6
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 06    LDX #6
A0 06    LDY #6
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD   BNE *-1
EA      NOP
90 FC   BCC *-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>EA       NOP
|<pre>18       CLC
EA      NOP
A9 4A   LDA #$4A ;hides 'LSR A'
EA      NOP
36 00    ROL $00,X
68      PLA
76 00    ROR $00,X
48      PHA
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C
A9 0A   LDA #$0A ;hides 'ASL A'
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,558: Line 8,393:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
38      SEC
2A       ROL A ;first loop only
A9 69   LDA #$69 ;hides 'ADC #$EA'
B0 FC   BCS *-2
EA       NOP ;first loop only
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 8,626: Line 8,461:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 0A    LDY #10
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 8,638: Line 8,468:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 0A    LDY #10
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>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
30 FC   BMI *-2</pre>||Clobbers A, Z&N, C, and V
30 FA   BMI *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
Line 8,665: Line 8,500:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
18      CLC
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,959: Line 8,794:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
38      SEC
2A       ROL A ;first loop only
A9 69   LDA #$69 ;hides 'ADC #$EA'
B0 FC   BCS *-2
EA       NOP ;first loop only
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 9,094: Line 8,929:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
D0 FD    BNE *-1
Line 9,237: Line 9,072:
30 FC    BMI *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
30 FC    BMI *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
Line 9,255: Line 9,090:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 9,272: Line 9,107:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
24 00    BIT $00
50 00    BVC *+2
90 FB   BCC *-3
10 FA   BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 9,286: Line 9,121:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
50 00    BVC *+2
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18      CLC
18      CLC
10 FA   BPL *-4
A9 2A   LDA #$2A ;hides 'ROL A'
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
08      PHP
28      PLP
90 FB    BCC *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,306: Line 9,135:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18      CLC
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,391: Line 9,213:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 08    LDY #8
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 08    LDX #8
|<pre>A2 08    LDX #8
Line 9,397: Line 9,224:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 08    LDY #8
|<pre>18       CLC
EA       NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 9,466: Line 9,288:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
EA      NOP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD   BNE *-1
EA      NOP
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 9,607: Line 9,429:
18      CLC
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 9,771: Line 9,598:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 9,814: Line 9,641:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 69   LDA #$69 ;hides 'ADC #$EA'
2A       ROL A ;first loop only
EA       NOP ;first loop only
EA      NOP
EA      NOP
B0 FB   BCS *-3
10 F9   BPL *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 9,830: Line 9,657:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
38       SEC
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
A9 69   LDA #$69 ;hides 'ADC #$EA'
2A       ROL A ;first loop only
EA       NOP ;first loop only
EA      NOP
EA      NOP
B0 FB   BCS *-3
10 F9   BPL *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 9,847: Line 9,674:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 9,873: Line 9,700:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD   BNE *-1
EA      NOP
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,031: Line 9,858:
18      CLC
18      CLC
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>EA      NOP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,044: Line 9,877:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
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
30 FC   BMI *-2
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 0A    LDY #10
A2 0A    LDX #10
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 0A    LDX #10
A0 0A    LDY #10
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,071: Line 9,904:
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
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
30 FC   BMI *-2
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
|-
|-
Line 10,182: Line 10,015:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 10,188: Line 10,021:
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$38'
|<pre>18      CLC
38      SEC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
E6 xx    INC @zptemp
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
90 FB   BCC *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,213: Line 10,046:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 10,233: Line 10,066:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 0A    LDX #10
A0 0A    LDY #10
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 0A    LDY #10
A2 0A    LDX #10
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,261: Line 10,094:
10 FA    BPL *-4
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,268: Line 10,108:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 10,605: Line 10,438:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 0C    LDY #12
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,610: Line 10,448:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 0C    LDY #12
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 10,737: Line 10,570:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 2A   LDA #$2A ;hides 'ROL A'
18      CLC
08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
28       PLP
EA       NOP
08       PHP
EA       NOP
28       PLP
18       CLC
10 F9   BPL *-5
10 FA   BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
18      CLC
08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
28       PLP
EA       NOP
08       PHP
EA       NOP
28       PLP
18       CLC
10 F9   BPL *-5
10 FA   BPL *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 10,758: Line 10,591:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
18      CLC
B8       CLV
A9 2A   LDA #$2A ;hides 'ROL A'
50 00    BVC *+2
08       PHP
10 FA   BPL *-4
28      PLP
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,917: Line 10,751:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 10,938: Line 10,772:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 11,038: Line 10,872:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 08    LDY #8
|<pre>A2 08    LDX #8
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<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 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A2 08    LDX #8
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 11,058: Line 10,892:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
Line 11,077: Line 10,911:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 11,113: Line 10,947:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
4C xx xx JMP *+3
Line 11,154: Line 10,988:
18      CLC
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 11,289: Line 11,137:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0D    LDY #13
|<pre>A0 0D    LDY #13
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #39
|<pre>A9      LDA #39
Line 11,349: Line 11,197:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 0B    LDX #11
A0 0B    LDY #11
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 0B    LDY #11
A2 0B    LDX #11
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 11,374: Line 11,222:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,382: Line 11,237:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>18       CLC
A4 00    LDY $00
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 11,416: Line 11,264:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
38      SEC
2A       ROL A ;first loop only
A9 69   LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
EA      NOP
EA      NOP
B0 FB   BCS *-3
10 F9   BPL *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,570: Line 11,418:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 F9    BMI *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
EA      NOP
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
|-
|<pre>68      PLA
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C
04 00    NOP $00
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 0B    LDY #11
A2 0B    LDX #11
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 0B    LDY #11
A2 0B    LDX #11
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 0B    LDX #11
A0 0B    LDY #11
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,662: Line 11,480:
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
08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,672: Line 11,506:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
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
30 FC   BMI *-2
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,851: Line 11,685:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 11,859: Line 11,693:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>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 12,058: Line 11,892:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
EA      NOP
A9 2A   LDA #$2A ;hides 'ROL A'
18      CLC
36 00    ROL $00,X
90 00   BCC *+2
76 00    ROR $00,X
18      CLC
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C
10 F8    BPL *-6</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 12,134: Line 11,967:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 0D    LDY #13
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 12,139: Line 11,977:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 0D    LDY #13
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 12,179: Line 12,012:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 0C    LDY #12
A2 0C    LDX #12
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 0C    LDX #12
A0 0C    LDY #12
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
Line 12,259: Line 12,092:
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
|-
|-
|<pre>68       PLA
|<pre>18       CLC
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,271: Line 12,104:
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>68      PLA
68      PLA
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,295: Line 12,120:
D0 FD    BNE *-1
D0 FD    BNE *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 12,344: Line 12,162:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
18      CLC
08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
28       PLP
EA       NOP
08       PHP
EA       NOP
28       PLP
18       CLC
10 F9   BPL *-5
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 12,492: Line 12,310:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 12,653: Line 12,471:
|<pre>08      PHP
|<pre>08      PHP
A0 08    LDY #8
A0 08    LDY #8
C5 00    CMP $00
24 00    BIT $00
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 12,665: Line 12,483:
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>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
Line 12,672: Line 12,490:
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
Line 12,686: Line 12,504:
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 12,693: Line 12,511:
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>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 12,724: Line 12,542:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
4C xx xx JMP *+3
Line 12,739: Line 12,557:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68       PLA
18       CLC
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 12,769: Line 12,587:
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08      PHP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
68      PLA
68      PLA
68       PLA
28       PLP</pre>||Requires support for unofficial opcodes; and writes in stack
68      PLA
48      PHA
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
!colspan="2"|11 bytes
Line 12,789: Line 12,607:
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
10 F8    BPL *-6</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 12,879: Line 12,689:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 12,894: Line 12,709:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 13,117: Line 12,932:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 F9   BMI *-5
90 FA   BCC *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 13,136: Line 12,951:
08      PHP
08      PHP
A0 08    LDY #8
A0 08    LDY #8
C5 00    CMP $00
24 00    BIT $00
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts12
|<pre>48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18      CLC ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 F9   BMI *-5
90 FA   BCC *-4
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>EA      NOP
EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
D0 FB    BNE *-3
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 0B    LDY #11
A2 0B    LDX #11
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 13,203: Line 12,995:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
B0 FA    BCS *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
28      PLP
08      PHP
48      PHA
48      PHA
98      TYA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
48      PHA
0A      ASL A ;first loop only
A0 88   LDY #136 ;hides 'DEY'
30 FC   BMI *-2
30 FD   BMI *-1
68      PLA
A8      TAY
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 13,302: Line 13,104:
18      CLC
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>EA      NOP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,330: Line 13,138:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 13,385: Line 13,193:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
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 13,505: Line 13,313:
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
Line 13,511: Line 13,319:
28      PLP
28      PLP
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>04 00    NOP $00
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 13,636: Line 13,450:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>EA      NOP
68      PLA
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,643: Line 13,463:
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>68       PLA
68       PLA
38       SEC
A2 0E   LDX #14
A9 69   LDA #$69 ;hides 'ADC #$5A'
CA       DEX
5A       NOP ;first loop only
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,664: Line 13,484:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 0E    LDY #14
A2 0E    LDX #14
88       DEY
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 69   LDA #$69 ;hides 'ADC #$D8'
|<pre>18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 F9   BPL *-5</pre>||Clobbers A, Z&N, C, V, and D; requires @rts14; and writes in stack
90 FA   BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,687: Line 13,507:
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>A9 4B   LDA #$4B ;hides 'ASR #$EA'
|<pre>EA      NOP
EA       NOP ;first loop only
EA      NOP
20 xx xx JSR @rts14
38      SEC
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 13,705: Line 13,527:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 0D    LDY #13
A2 0D    LDX #13
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 0D    LDX #13
A0 0D    LDY #13
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 13,863: Line 13,685:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08      PHP ;first loop only
08      PHP ;first loop only
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 14,036: Line 13,858:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A4 00    LDY $00
A0 0F    LDY #15
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 14,041: Line 13,868:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 0F    LDY #15
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 14,219: Line 14,041:
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
Line 14,228: Line 14,050:
28      PLP</pre>||Requires @zptemp; 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
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 14,340: Line 14,162:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,378: Line 14,206:
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
|-
|-
|<pre>08      PHP
|<pre>08      PHP
38      SEC
38      SEC
A9 0E   LDA #14
A9 69   LDA #$69 ;hides 'ADC #$5A'
E9 01   SBC #1
5A      NOP ;first loop only
D0 F9   BNE *-5
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|9 bytes
|-
|<pre>08      PHP
18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 14,495: Line 14,338:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 10    LDY #16
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
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 10    LDY #16
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #54
|<pre>A9      LDA #54
Line 14,521: Line 14,364:
90 FA    BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
90 FA    BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
Line 14,544: Line 14,387:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<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 @rts15; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
B8      CLV
Line 14,550: Line 14,398:
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<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
|<pre>48      PHA
08      PHP
08      PHP
A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 0E    LDY #14
A2 0E    LDX #14
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 14,577: Line 14,431:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A6 00    LDX $00
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
Line 14,585: Line 14,446:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>18       CLC
A6 00    LDX $00
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
4C xx xx JMP *+3
Line 14,598: Line 14,452:
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 14,666: Line 14,520:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 F9   BMI *-5
90 FA   BCC *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 14,787: Line 14,641:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>EA      NOP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 14,832: Line 14,693:
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>EA      NOP
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 14,838: Line 14,707:
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,850: Line 14,727:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
38       SEC
18       CLC
A9 0E   LDA #14
A9 0A   LDA #$0A ;hides 'ASL A'
E9 01    SBC #1
EA      NOP
D0 F9   BNE *-5
18      CLC
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 14,944: Line 14,822:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 10    LDY #16
A2 10    LDX #16
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 10    LDY #16
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A2 10   LDX #16
A9 69   LDA #$69 ;hides 'ADC #$F8'
CA       DEX
F8       SED ;first loop only
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 15,011: Line 14,894:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
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 @rts15; and writes in stack
|-
|<pre>EA      NOP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<pre>EA      NOP
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>68      PLA
|<pre>68      PLA
Line 15,026: Line 14,922:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|<pre>48      PHA
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,064: Line 14,976:
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
48      PHA
08      PHP
08      PHP
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 0E   LDA #14
EA      NOP
E9 01    SBC #1
18      CLC
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
|-
|-
Line 15,081: Line 14,994:
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>00 00    BRK 0
|<pre>04 00   NOP $00
08      PHP
08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
04 00    NOP $00
A9 69   LDA #$69 ;hides 'ADC #$5A'
D0 FB   BNE *-3
5A      NOP ;first loop only
28       PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>04 00    NOP $00
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA   BNE *-4
68       PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 15,166: Line 15,088:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 10    LDY #16
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,171: Line 15,098:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 10    LDY #16
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 15,229: Line 15,151:
18      CLC
18      CLC
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>68      PLA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,251: Line 15,180:
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<pre>48      PHA
48      PHA
08      PHP
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,260: Line 15,197:
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>68       PLA
48      PHA
08      PHP
08      PHP
A0 0E   LDY #14
38      SEC
88       DEY
A9 69   LDA #$69 ;hides 'ADC #$5A'
D0 FB   BNE *-3
5A       NOP ;first loop only
28      PLP</pre>||Clobbers Y, and S; and writes in stack
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,290: Line 15,227:
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,299: Line 15,236:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 0E    LDY #14
A2 0E    LDX #14
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 15,314: Line 15,251:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 F9   BPL *-5
90 FA   BCC *-4
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 F9   BPL *-5
90 FA   BCC *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,345: Line 15,282:
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
|<pre>EA      NOP
A9 4B   LDA #$4B ;hides 'ASR #$EA'
EA      NOP
EA       NOP ;first loop only
08      PHP
20 xx xx JSR @rts14
38      SEC
D0 F9   BNE *-5
A9 69    LDA #$69 ;hides 'ADC #$5A'
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
5A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
48      PHA
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA   BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,364: Line 15,312:
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
EA       NOP
98       TYA
08       PHP
48       PHA
38      SEC
A0 0D   LDY #13
A9 0E   LDA #14
88      DEY
E9 01    SBC #1
D0 FB   BNE *-3
D0 F9   BNE *-5
68      PLA
A8      TAY
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 15,465: Line 15,414:
28      PLP
28      PLP
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
B0 FA    BCS *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|<pre>EA      NOP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,477: Line 15,432:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 0B    LDY #11
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,485: Line 15,447:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>18       CLC
A0 0B   LDY #11
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
88       DEY
08       PHP
D0 FA    BNE *-4
28      PLP
28      PLP</pre>||Clobbers Y; and writes in stack
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,497: Line 15,459:
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>EA      NOP
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>A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
EA      NOP
08      PHP
28      PLP
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,528: Line 15,476:
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>18       CLC
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
EA      NOP
18      CLC
EA      NOP
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and requires @zptemp
E6 xx    INC @zptemp
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,636: Line 15,584:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,655: Line 15,609:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
10 FA    BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>A5 00    LDA $00
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,673: Line 15,633:
18      CLC
18      CLC
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>00 00    BRK 0
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,749: Line 15,715:
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>68       PLA
|<pre>18       CLC
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18      CLC
18      CLC
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>68      PLA
!colspan="2"|12 bytes
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|11 bytes
|<pre>EA      NOP
|-
|<pre>68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
48      PHA
98      TYA
98      TYA
Line 15,961: Line 15,910:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,986: Line 15,951:
D0 F8    BNE *-6
D0 F8    BNE *-6
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
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,991: Line 15,965:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
38       SEC
18       CLC
A9 0E   LDA #14
A9 0A   LDA #$0A ;hides 'ASL A'
E9 01    SBC #1
EA      NOP
D0 F9   BNE *-5
18      CLC
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 16,069: Line 16,044:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 16,109: Line 16,089:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 16,159: Line 16,139:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
B8      CLV
Line 16,167: Line 16,147:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48      PHA
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 @rts15; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
B8      CLV
Line 16,175: Line 16,162:
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>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
Line 16,191: Line 16,178:
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>48      PHA
48      PHA
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
00 00    BRK 0
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 16,209: Line 16,204:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 16,220: Line 16,215:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68       PLA
18       CLC
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18      CLC
18      CLC
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,236: Line 16,231:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 16,256: Line 16,243:
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>26 00    ROL $00
66 00    ROR $00
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 16,331: Line 16,311:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
Line 16,349: Line 16,329:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 16,416: Line 16,396:
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
08      PHP
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
Line 16,444: Line 16,442:
D0 F8    BNE *-6
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 16,450: Line 16,458:
08      PHP
08      PHP
48      PHA
48      PHA
38       SEC
18       CLC
A9 0E   LDA #14
A9 0A   LDA #$0A ;hides 'ASL A'
E9 01    SBC #1
EA      NOP
D0 F9   BNE *-5
18      CLC
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 16,518: Line 16,527:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,536: Line 16,551:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,556: Line 16,578:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
38      SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 16,598: Line 16,620:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
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 @rts15; and writes in stack
|-
|<pre>EA      NOP
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
Line 16,607: Line 16,637:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA      NOP
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
|-
|<pre>EA      NOP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 16,614: Line 16,653:
D0 FA    BNE *-4
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 16,636: Line 16,685:
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
48      PHA
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 0E   LDA #14
EA      NOP
E9 01    SBC #1
18      CLC
D0 F9   BNE *-5
D0 FB   BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>04 00   NOP $00
08      PHP
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
04 00    NOP $00
A9 69   LDA #$69 ;hides 'ADC #$5A'
D0 FB   BNE *-3
5A      NOP ;first loop only
D0 FA   BNE *-4
68      PLA
68      PLA
28      PLP</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 16,720: Line 16,771:
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V
30 FA    BMI *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 16,792: Line 16,843:
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,901: Line 16,950:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 69   LDA #$69 ;hides 'ADC #$D8'
18      CLC
D8      CLD ;first loop only
A9 2A   LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 F9   BPL *-5
90 FA   BCC *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 16,918: Line 16,967:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,926: Line 16,973:
48      PHA
48      PHA
38      SEC
38      SEC
A9 0E   LDA #14
A9 69   LDA #$69 ;hides 'ADC #$5A'
E9 01   SBC #1
5A      NOP ;first loop only
D0 F9   BNE *-5
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>08      PHP
48      PHA
98      TYA
48      PHA
A0 0D   LDY #13
88      DEY
D0 FB   BNE *-3
68      PLA
A8      TAY
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 16,981: Line 17,042:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>68      PLA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, C, V, and D
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,012: Line 17,079:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
Line 17,033: Line 17,107:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A      ROL A ;first loop only
08      PHP
08      PHP
28       PLP
18       CLC
B0 FA    BCS *-4
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 17,071: Line 17,145:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
28      PLP
90 FA    BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,079: Line 17,162:
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
EA      NOP
08      PHP
28      PLP
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 17,185: Line 17,259:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 17,198: Line 17,272:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>48      PHA
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,206: Line 17,288:
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>48      PHA
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers S, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,216: Line 17,306:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
A5 00    LDA $00
A9 0A   LDA #$0A ;hides 'ASL A'
18       CLC
20 xx xx JSR @rts12
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 17,231: Line 17,322:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
26 00    ROL $00
EA       NOP
66 00    ROR $00
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C
|-
|<pre>24 00    BIT $00
48       PHA
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
48       PHA
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>00 00    BRK 0
48      PHA
48      PHA
38      SEC
38      SEC
A9 10   LDA #16
A9 69   LDA #$69 ;hides 'ADC #$5A'
E9 01    SBC #1
5A      NOP ;first loop only
D0 F9   BNE *-5
D0 FA   BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; 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
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 17,414: Line 17,511:
A8      TAY
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 17,482: Line 17,589:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,488: Line 17,601:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,506: Line 17,613:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 11    LDY #17
A2 11    LDX #17
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 11    LDX #17
A0 11    LDY #17
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 17,526: Line 17,640:
18      CLC
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
38      SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,553: Line 17,667:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 17,568: Line 17,682:
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
28      PLP
90 FA    BCC *-4
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,580: Line 17,704:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
B8      CLV
B8      CLV
Line 17,623: Line 17,747:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 13    LDX #19
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 13    LDY #19
|<pre>A0 13    LDY #19
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 13    LDX #19
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #69
|<pre>A9      LDA #69
Line 17,663: Line 17,787:
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Line 17,692: Line 17,816:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>68      PLA
68      PLA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4</pre>||Clobbers A, S, Z&N, C, V, and D
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,702: Line 17,833:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 17,725: Line 17,856:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 17,734: Line 17,865:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 17,772: Line 17,903:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
B0 F9    BCS *-5
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 17,824: Line 17,966:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 0C    LDX #12
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 17,829: Line 17,976:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A2 0C    LDX #12
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 08    LDX #8
08      PHP
28      PLP
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
Line 17,842: Line 17,990:
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and writes in stack
|-
|<pre>A2 08    LDX #8
08      PHP
28      PLP
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 17,864: Line 18,006:
D0 F9    BNE *-5</pre>||Clobbers X, Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 17,889: Line 18,031:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
|-
|<pre>A2 0C    LDX #12
85 xx    STA @zptemp
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 17,894: Line 18,041:
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|<pre>A2 0C    LDX #12
85 xx    STA @zptemp
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 17,950: Line 18,092:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>EA       NOP
48       PHA
08       PHP
A0 11   LDY #17
38      SEC
88       DEY
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 FB   BNE *-3
F8       SED ;first loop only
68      PLA
10 FA   BPL *-4
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,974: Line 18,116:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 17,980: Line 18,122:
18      CLC
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,990: Line 18,140:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
38      SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FA   BNE *-4
A9 69   LDA #$69 ;hides 'ADC #$F8'
68       PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
F8       SED ;first loop only
|-
10 FA   BPL *-4
!colspan="2"|11 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 18,109: Line 18,232:
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>48       PHA
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
Line 18,142: Line 18,265:
28      PLP</pre>||Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
EA      NOP
18       CLC
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
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; and writes in stack
|-
|-
Line 18,263: Line 18,384:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 18,276: Line 18,397:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>68      PLA
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 18,306: Line 18,435:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
98      TYA
48      PHA
A0 11    LDY #17
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 18,324: Line 18,453:
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A9 2A   LDA #$2A ;hides 'ROL A'
EA      NOP
00 00    BRK 0
48      PHA
00 00    BRK 0
38      SEC
10 F9   BPL *-5
A9 69   LDA #$69 ;hides 'ADC #$F8'
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
F8      SED ;first loop only
10 FA   BPL *-4
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,340: Line 18,471:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$2A'
18      CLC
2A       ROL A ;first loop only
A9 69   LDA #$69 ;hides 'ADC #$F8'
08      PHP
F8       SED ;first loop only
28      PLP
10 FA    BPL *-4
B0 FA    BCS *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 18,464: Line 18,595:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
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
Line 18,482: Line 18,613:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
48      PHA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 FA    BNE *-4
A9 69   LDA #$69 ;hides 'ADC #$F8'
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
F8      SED ;first loop only
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; 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
28      PLP
24 00    BIT $00
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
18      CLC
B8       CLV
A9 69   LDA #$69 ;hides 'ADC #$F8'
50 00    BVC *+2
F8       SED ;first loop only
D0 FA    BNE *-4
10 FA    BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 18,561: Line 18,659:
48      PHA
48      PHA
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
30 FA    BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,574: Line 18,678:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Line 18,585: Line 18,689:
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 18,630: Line 18,734:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 18,696: Line 18,800:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 18,782: Line 18,886:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A      NOP ;first loop only
EA      NOP
EA      NOP
B0 F8    BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,816: Line 18,927:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
10 FA    BPL *-4
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 18,825: Line 18,945:
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
|}
|-
 
|<pre>08      PHP
 
48      PHA
=== 103 cycles ===
38      SEC
{| class="wikitable testtable"
A9 11    LDA #17
!colspan="2"|5 bytes
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|}
 
 
=== 103 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #76
|<pre>A9      LDA #76
Line 18,857: Line 18,966:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08      PHP ;first loop only
90 FA    BCC *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 18,922: Line 19,036:
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
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Line 18,929: Line 19,043:
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>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 @rts14
Line 18,970: Line 19,084:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>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 18,982: Line 19,096:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 19,068: Line 19,182:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 19,090: Line 19,204:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>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 19,104: Line 19,218:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>04 00    NOP $00
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,123: Line 19,244:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
98       TYA
08       PHP
48      PHA
48      PHA
A0 11   LDY #17
38      SEC
88       DEY
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 FB   BNE *-3
F8       SED ;first loop only
10 FA   BPL *-4
68      PLA
68      PLA
A8       TAY
28       PLP</pre>||Writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,141: Line 19,262:
18      CLC
18      CLC
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 19,187: Line 19,296:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A0 14    LDY #20
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,195: Line 19,310:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A0 14   LDY #20
A9 69   LDA #$69 ;hides 'ADC #$08'
88       DEY
08       PHP ;first loop only
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
90 FA   BCC *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,232: Line 19,347:
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>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
Line 19,248: Line 19,363:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 19,306: Line 19,421:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 15    LDY #21
|<pre>A0 15    LDY #21
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #79
|<pre>A9      LDA #79
Line 19,340: Line 19,455:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0E    LDX #14
A0 0E    LDY #14
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0E    LDY #14
A2 0E    LDX #14
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,380: Line 19,495:
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>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Line 19,418: Line 19,533:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 19,427: Line 19,542:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
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 19,455: Line 19,570:
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
98      TYA
48      PHA
A0 11    LDY #17
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
00 00    BRK 0
10 F9    BPL *-5
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,483: Line 19,576:
48      PHA
48      PHA
38      SEC
38      SEC
A9 11   LDA #17
A9 69   LDA #$69 ;hides 'ADC #$F8'
E9 01    SBC #1
F8      SED ;first loop only
D0 F9   BNE *-5
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 19,512: Line 19,605:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>68      PLA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08      PHP ;first loop only
90 FA    BCC *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,596: Line 19,695:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 19,708: Line 19,807:
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,726: Line 19,841:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Line 19,749: Line 19,864:
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
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
Line 19,769: Line 19,884:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
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 19,852: Line 19,967:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$18'
|<pre>18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
30 FA   BMI *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; 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
|<pre>48      PHA
Line 19,862: Line 19,977:
EA      NOP
EA      NOP
30 FB    BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
30 FB    BMI *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
00 00    BRK 0
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,884: Line 19,994:
18      CLC
18      CLC
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
00 00    BRK 0
18      CLC
10 F9    BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 19,912: Line 20,016:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 0E    LDX #14
A0 0E    LDY #14
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 0E    LDY #14
A2 0E    LDX #14
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
90 F9   BCC *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
28      PLP
10 F8   BPL *-6</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,979: Line 20,083:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 20,010: Line 20,114:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,016: Line 20,126:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 20,115: Line 20,219:
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
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 @rts14
Line 20,146: Line 20,250:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
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 20,293: Line 20,397:
10 F9    BPL *-5
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
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A      NOP ;first loop only
EA      NOP
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
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 20,375: Line 20,497:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
18      CLC
7A      NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; 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
Line 20,477: Line 20,599:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>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
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 20,508: Line 20,630:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 20,526: Line 20,648:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 20,576: Line 20,698:
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>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 @rts14
Line 20,606: Line 20,728:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
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 20,644: Line 20,766:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 20,649: Line 20,776:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 20,802: Line 20,924:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
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
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,832: Line 20,954:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 20,839: Line 20,966:
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
20 xx xx JSR @rts14
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,869: Line 20,991:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
76 00    ROR $00,X
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 20,877: Line 21,006:
D0 FB    BNE *-3
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 dummy interrupt handler; and writes in stack
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>08      PHP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA      NOP
EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
D0 F9   BNE *-5
EA       NOP
68       PLA
18       CLC
28       PLP</pre>||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
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 20,915: Line 21,037:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 17    LDX #23
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 17    LDY #23
|<pre>A0 17    LDY #23
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 17    LDX #23
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 20,944: Line 21,066:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 15    LDY #21
A2 15    LDX #21
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 15    LDX #21
A0 15    LDY #21
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,964: Line 21,093:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 20,980: Line 21,102:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
30 FA   BMI *-4
90 FB   BCC *-3
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
30 FA   BMI *-4
90 FB   BCC *-3
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,000: Line 21,122:
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
00 00    BRK 0
D0 FA    BNE *-4
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
Line 21,038: Line 21,153:
18      CLC
18      CLC
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
00 00    BRK 0
18      CLC
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 21,168: Line 21,275:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers A, Y, and Z&N
|-
|<pre>48      PHA
48      PHA
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,174: Line 21,287:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
48      PHA
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,215: Line 21,322:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
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
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 21,233: Line 21,340:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 15    LDY #21
A2 15    LDX #21
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 15    LDX #21
A0 15    LDY #21
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,283: Line 21,390:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
36 00    ROL $00,X
90 00    BCC *+2
76 00    ROR $00,X
18      CLC
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 21,325: Line 21,419:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>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
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,412: Line 21,506:
68      PLA
68      PLA
28      PLP</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
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 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 21,513: Line 21,618:
48      PHA
48      PHA
08      PHP
08      PHP
A0 15    LDY #21
A2 15    LDX #21
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
A2 15    LDX #21
A0 15    LDY #21
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,548: Line 21,653:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 15    LDY #21
A2 15    LDX #21
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,557: Line 21,662:
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 15    LDX #21
A0 15    LDY #21
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
30 FA   BMI *-4
90 FB   BCC *-3
28      PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
30 FA   BMI *-4
90 FB   BCC *-3
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
00 00    BRK 0
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 21,649: Line 21,746:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
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
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,666: Line 21,763:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
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
D0 FC   BNE *-2
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 21,687: Line 21,784:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
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
D0 FC   BNE *-2
D0 FA   BNE *-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
|-
|-
Line 21,705: Line 21,802:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>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 21,790: Line 21,887:
|-
|-
!colspan="2"|8 bytes
!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 @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,796: Line 21,898:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL 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
|<pre>48      PHA
Line 21,824: Line 21,932:
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
20 xx xx JSR @rts15
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
EA      NOP
00 00    BRK 0
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 21,844: Line 21,941:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
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
Line 21,851: Line 21,955:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 21,875: Line 21,972:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 21,953: Line 22,050:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 F9    BPL *-5</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,987: Line 22,090:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
08      PHP
10 F9   BPL *-5
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
|-
|-
Line 22,012: Line 22,115:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
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
D0 FC   BNE *-2
D0 FA   BNE *-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
|-
|-
Line 22,029: Line 22,132:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
18      CLC
7A      NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
D0 F9   BNE *-5
90 FA   BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 22,086: Line 22,189:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 17    LDY #23
A2 17    LDX #23
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 17    LDX #23
A0 17    LDY #23
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,131: Line 22,234:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 22,151: Line 22,254:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
30 FA   BMI *-4
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
Line 22,298: Line 22,401:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 F9    BPL *-5</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 22,370: Line 22,480:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
EA      NOP
10 F9   BPL *-5
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
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 22,381: Line 22,491:
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 10    LDX #16
A0 10    LDY #16
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 10    LDY #16
A2 10    LDX #16
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
48      PHA
48      PHA
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
D0 FC   BNE *-2
D0 FA   BNE *-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
|-
|-
Line 22,471: Line 22,581:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A0 18    LDY #24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,477: Line 22,593:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A0 18    LDY #24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,496: Line 22,606:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
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
B0 FC   BCS *-2
B0 FA   BCS *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 22,517: Line 22,627:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
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
B0 FC   BCS *-2
B0 FA   BCS *-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
|-
|-
Line 22,556: Line 22,666:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 22,571: Line 22,681:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 19    LDY #25
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 19    LDX #25
|<pre>A2 19    LDX #25
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 19    LDY #25
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #99
|<pre>A9      LDA #99
Line 22,715: Line 22,825:
08      PHP
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$18'
18      CLC
18      CLC ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
30 FA   BMI *-4
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
Line 22,817: Line 22,927:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
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
B0 FC   BCS *-2
B0 FA   BCS *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
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
B0 FC   BCS *-2
B0 FA   BCS *-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
|-
|-
Line 22,848: Line 22,958:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
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
D0 FC   BNE *-2
D0 FA   BNE *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 22,948: Line 23,058:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08       PHP
18       CLC
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
90 FA   BCC *-4
D0 FC   BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
18      CLC
7A       NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
EA       NOP
D0 F9   BNE *-5
00 00    BRK 0
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
90 FA   BCC *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
08      PHP
7A       NOP ;first loop only
48      PHA
EA      NOP
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
00 00    BRK 0
0A       ASL A ;first loop only
D0 F9   BNE *-5
D0 FC   BNE *-2
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 23,061: Line 23,171:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
38       SEC
A2 11   LDX #17
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
CA      DEX
10 F9   BPL *-5
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,078: Line 23,188:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
A2 11   LDX #17
EA      NOP
EA      NOP
08       PHP
CA       DEX
28      PLP
D0 FA   BNE *-4
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>48      PHA
|<pre>48      PHA
48       PHA
38       SEC
08      PHP
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
B0 FC   BCS *-2
10 F9   BPL *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,109: Line 23,219:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>08      PHP
38      SEC
A9 11    LDA #17
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,128: Line 23,230:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
08      PHP
10 F9   BPL *-5
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
D0 FC    BNE *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 23,267: Line 23,369:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
48      PHA
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,284: Line 23,392:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack
B0 FC    BCS *-2</pre>||Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,303: Line 23,417:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 00    NOP $00
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,350: Line 23,470:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>8C       TXA
|<pre>EA       NOP
08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
10 F9    BPL *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
A2 11   LDX #17
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
CA      DEX
10 F9   BPL *-5
D0 FA   BNE *-4
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,366: Line 23,495:
10 F9    BPL *-5
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
48      PHA
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>EA      NOP
|<pre>EA      NOP
Line 23,388: Line 23,508:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08       PHP
48       PHA
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
Line 23,394: Line 23,514:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA      NOP
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
|<pre>48      PHA
Line 23,427: Line 23,538:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
18      CLC
0A       ASL A ;first loop only
A9 69   LDA #$69 ;hides 'ADC #$F8'
D0 FC   BNE *-2
F8       SED ;first loop only
EA      NOP
10 F9   BPL *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 23,535: Line 23,646:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 18    LDY #24
A2 18    LDX #24
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 18    LDX #24
A0 18    LDY #24
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,564: Line 23,675:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
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
B0 FC   BCS *-2
B0 FA   BCS *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 23,619: Line 23,730:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>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
Line 23,625: Line 23,742:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 23,649: Line 23,760:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 4B   LDA #$4B ;hides 'ASR #$7A'
|<pre>18      CLC
7A      NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A9 4B   LDA #$4B ;hides 'ASR #$7A'
|<pre>18      CLC
7A      NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A9 4B   LDA #$4B ;hides 'ASR #$7A'
|<pre>18      CLC
7A      NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
D0 F8   BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,690: Line 23,801:
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts15; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
20 xx xx JSR @rts12
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,698: Line 23,815:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts14
90 F8    BCC *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,716: Line 23,839:
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>A9 4B   LDA #$4B ;hides 'ASR #$7A'
|<pre>18      CLC
7A      NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
04 00    NOP $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, and C; requires @zptemp, @rts14, and support for unofficial opcodes; and writes in stack
90 F8   BCC *-6</pre>||Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 23,732: Line 23,855:
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
90 F7    BCC *-7</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 23,744: Line 23,874:
18      CLC
18      CLC
D0 F7    BNE *-7</pre>||Clobbers A, S, Z&N, and C
D0 F7    BNE *-7</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
90 F6    BCC *-8</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 23,749: Line 23,887:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 23,818: Line 23,956:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack
B0 F9    BCS *-5</pre>||Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
48      PHA
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,894: Line 24,039:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
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
B0 FC   BCS *-2
B0 FA   BCS *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 23,971: Line 24,116:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,978: Line 24,130:
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
08      PHP
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,044: Line 24,189:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1B    LDY #27
|<pre>A0 1B    LDY #27
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #109
|<pre>A9      LDA #109
Line 24,158: Line 24,303:
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
08      PHP
28      PLP
18      CLC
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 11   LDA #17
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
E9 01   SBC #1
10 F9   BPL *-5
D0 F8    BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 24,217: Line 24,340:
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>A0 11    LDY #17
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 24,222: Line 24,350:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
48      PHA
A5 00    LDA $00
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 24,234: Line 24,362:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers A, X, and Z&N
D0 F9    BNE *-5</pre>||Clobbers A, X, and Z&N
|-
|<pre>A0 11    LDY #17
A5 00    LDA $00
88      DEY
D0 F9    BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 24,254: Line 24,377:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and C
|-
|<pre>A0 11    LDY #17
24 00    BIT $00
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
Line 24,259: Line 24,387:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
|-
|<pre>A0 11    LDY #17
24 00    BIT $00
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 24,274: Line 24,397:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>A2 11    LDX #17
04 00    NOP $00
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 24,279: Line 24,407:
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|<pre>A2 11    LDX #17
04 00    NOP $00
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,309: Line 24,432:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 24,397: Line 24,520:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 24,428: Line 24,551:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 1A    LDY #26
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,436: Line 24,570:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 1A    LDY #26
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 24,511: Line 24,639:
B0 FC    BCS *-2
B0 FC    BCS *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts15; 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 F8    BPL *-6
28      PLP</pre>||Clobbers A; requires @zptemp; 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 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,543: Line 24,687:
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 00    NOP $00
10 F8    BPL *-6
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 00    NOP $00
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 24,573: Line 24,733:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
8C       TXA
08       PHP
48      PHA
48      PHA
A2 11   LDX #17
38      SEC
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
CA      DEX
10 F9   BPL *-5
D0 FA   BNE *-4
68      PLA
68      PLA
AA       TAX
28       PLP</pre>||Writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 24,593: Line 24,753:
18      CLC
18      CLC
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C
|-
|<pre>EA      NOP
48      PHA
48      PHA
08      PHP
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
B0 FC    BCS *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 11    LDA #17
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
68      PLA
28      PLP</pre>||Writes in stack
|-
|-
|}
|}
Line 24,629: Line 24,765:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,634: Line 24,775:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 1B    LDX #27
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 24,651: Line 24,787:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
48      PHA
10 F9    BPL *-5</pre>||Clobbers A, S, Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,663: Line 24,805:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 24,674: Line 24,822:
E9 01    SBC #1
E9 01    SBC #1
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 00    NOP $00
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,686: Line 24,840:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 24,696: Line 24,850:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
00 00    BRK 0
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 24,743: Line 24,903:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,752: Line 24,912:
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 19    LDX #25
A0 19    LDY #25
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,817: Line 24,977:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
18      CLC
90 F6   BCC *-8</pre>||Clobbers A, Z&N, and C
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 24,839: Line 24,997:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 24,844: Line 25,007:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,863: Line 25,021:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,878: Line 25,042:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 1A    LDX #26
A0 1A    LDY #26
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 1A    LDY #26
A2 1A    LDX #26
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,922: Line 25,086:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
18      CLC
7A      NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
D0 F8   BNE *-6
90 F9   BCC *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
18      CLC
7A      NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
D0 F8   BNE *-6
90 F9   BCC *-5
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 24,948: Line 25,112:
68      PLA
68      PLA
28      PLP</pre>||Requires @rts15; and writes in stack
28      PLP</pre>||Requires @rts15; and writes in stack
|-
|<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>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 24,968: Line 25,140:
68      PLA
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts14
90 F8    BCC *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,981: Line 25,161:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
18      CLC
7A      NOP ;first loop only
A9 0A   LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
04 00    NOP $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
D0 F7   BNE *-7
90 F8   BCC *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, @rts14, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 25,018: Line 25,198:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1C    LDX #28
|<pre>A2 1C    LDX #28
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #114
|<pre>A9      LDA #114
Line 25,031: Line 25,211:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,045: Line 25,231:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 13    LDY #19
A2 13    LDX #19
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 13    LDX #19
A0 13    LDY #19
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 25,064: Line 25,250:
28      PLP
28      PLP
30 F9    BMI *-5</pre>||Clobbers A, Z&N, C, and V; and writes in stack
30 F9    BMI *-5</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|<pre>04 00    NOP $00
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,090: Line 25,282:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 25,108: Line 25,300:
B0 F9    BCS *-5
B0 F9    BCS *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts14; and writes in stack
|-
|<pre>EA      NOP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
00 00    BRK 0
90 F9    BCC *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 25,184: Line 25,383:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
18      CLC
90 F6   BCC *-8</pre>||Clobbers A, Z&N, and C
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 25,242: Line 25,439:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|<pre>68      PLA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,274: Line 25,477:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>EA      NOP
EA      NOP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,393: Line 25,603:
00 00    BRK 0
00 00    BRK 0
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, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<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
|<pre>08      PHP
Line 25,401: Line 25,622:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 25,550: Line 25,765:
D0 FD    BNE *-1
D0 FD    BNE *-1
28      PLP</pre>||Clobbers X; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers X; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 11    LDY #17
A2 11    LDX #17
C5 00    CMP $00
C5 00    CMP $00
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 11    LDX #17
A0 11    LDY #17
C5 00    CMP $00
C5 00    CMP $00
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,573: Line 25,795:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,583: Line 25,813:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 25,599: Line 25,829:
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
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 25,680: Line 25,910:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A2 10    LDX #16
68      PLA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
Line 25,685: Line 25,920:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
68       PLA
EA       NOP
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
Line 25,699: Line 25,935:
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>18       CLC
EA       NOP
EA      NOP
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
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, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,724: Line 25,960:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 1B    LDY #27
A2 1B    LDX #27
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,741: Line 25,977:
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
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,815: Line 26,065:
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 25,824: Line 26,074:
18      CLC
18      CLC
D0 F6    BNE *-8</pre>||Clobbers A, Z&N, and C
D0 F6    BNE *-8</pre>||Clobbers A, Z&N, and C
|-
|<pre>08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,844: Line 26,104:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>08      PHP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 00    NOP $00
10 F8    BPL *-6
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 25,881: Line 26,151:
00 00    BRK 0
00 00    BRK 0
D0 FB    BNE *-3</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; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,919: Line 26,195:
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>04 00    NOP $00
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,957: Line 26,239:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
28      PLP</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
85 xx    STA @zptemp
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 25,966: Line 26,264:
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|<pre>08      PHP
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 00    NOP $00
10 F8    BPL *-6
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 00    NOP $00
10 F8    BPL *-6
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 25,978: Line 26,292:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 25,992: Line 26,306:
D0 F7    BNE *-7
D0 F7    BNE *-7
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>48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
00 00    BRK 0
90 F9    BCC *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 26,079: Line 26,401:
00 00    BRK 0
00 00    BRK 0
D0 FB    BNE *-3</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; requires dummy interrupt handler; and writes in stack
|-
|<pre>68      PLA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,105: Line 26,433:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|<pre>18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 26,117: Line 26,452:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>EA      NOP
EA      NOP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 1B    LDY #27
A2 1B    LDX #27
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 26,149: Line 26,491:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
08      PHP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,201: Line 26,559:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 26,232: Line 26,590:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A      TXS ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 26,282: Line 26,645:
00 00    BRK 0
00 00    BRK 0
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, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,323: Line 26,702:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 26,340: Line 26,719:
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
48      PHA
48      PHA
48      PHA
18      CLC
8C      TXA
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
00 00    BRK 0
90 F9    BCC *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
48      PHA
48      PHA
8C      TXA
48      PHA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
Line 26,439: Line 26,827:
00 00    BRK 0
00 00    BRK 0
D0 FB    BNE *-3</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; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
68      PLA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A0 98    LDY #152 ;hides 'TYA'
EA      NOP
88      DEY
88      DEY
30 FA    BMI *-4
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,450: Line 26,853:
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08       PHP
|<pre>EA       NOP
A0 98   LDY #152 ;hides 'TYA'
18      CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
EA      NOP
88      DEY
10 F8   BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
88      DEY
30 FA   BMI *-4
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 26,503: Line 26,906:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|<pre>68      PLA
08      PHP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,514: Line 26,933:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,546: Line 26,965:
E9 01    SBC #1
E9 01    SBC #1
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
EA      NOP
08      PHP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 26,605: Line 27,042:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 26,650: Line 27,087:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A      TXS ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,694: Line 27,137:
D0 FB    BNE *-3
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 dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,776: Line 27,233:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|<pre>48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A      TXS ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,809: Line 27,272:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>A5 00    LDA $00
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A      TXS ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,842: Line 27,311:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
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
A8       TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>48      PHA
48      PHA
08      PHP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
EA      NOP
8C      TXA
48      PHA
48      PHA
A2 1B    LDX #27
48      PHA
CA       DEX
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
EA      NOP
98      TYA
48      PHA
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 26,889: Line 27,376:
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 26,970: Line 27,477:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A      TXS ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,996: Line 27,509:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>68      PLA
38      SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 27,036: Line 27,543:
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA       NOP
|<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
00 00    BRK 0
Line 27,043: Line 27,550:
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
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
D0 FB    BNE *-3
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 dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>EA      NOP
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,074: Line 27,597:
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,104: Line 27,636:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 EA    LDX #234 ;hides 'NOP'
E8      INX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 EA    LDY #234 ;hides 'NOP'
|<pre>A0 EA    LDY #234 ;hides 'NOP'
C8      INY
C8      INY
D0 FC    BNE *-2</pre>||Clobbers Y, and Z&N
D0 FC    BNE *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 EA    LDX #234 ;hides 'NOP'
E8      INX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #126
|<pre>A9      LDA #126
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>18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08      PHP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 1D    LDY #29
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,123: Line 27,668:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 1D    LDY #29
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 27,147: Line 27,686:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Line 27,154: Line 27,693:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 27,176: Line 27,715:
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>48      PHA
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #112
A9      LDA #112
Line 27,214: Line 27,769:
D0 F9    BNE *-5
D0 F9    BNE *-5
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|<pre>04 00    NOP $00
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>04 00    NOP $00
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,235: Line 27,806:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 27,245: Line 27,816:
18      CLC
18      CLC
D0 F6    BNE *-8</pre>||Clobbers A, Z&N, and C
D0 F6    BNE *-8</pre>||Clobbers A, Z&N, and C
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
85 xx    STA @zptemp
10 F8    BPL *-6
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,256: Line 27,837:
D0 F8    BNE *-6
D0 F8    BNE *-6
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
48      PHA
38      SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
04 00    NOP $00
10 F8    BPL *-6
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 27,329: Line 27,920:
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 writes in stack
|-
|<pre>EA      NOP
68      PLA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A      TXS ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,365: Line 27,963:
28      PLP
28      PLP
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
68      PLA
38      SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 27,379: Line 27,970:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>68      PLA
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,389: Line 27,988:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
8C       TXA
18       CLC
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$F8'
A2 1C    LDX #28
F8       SED ;first loop only
CA       DEX
EA      NOP
D0 FB   BNE *-3
EA       NOP
68      PLA
10 F8   BPL *-6
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
28       PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 10    LDY #16
A2 10    LDX #16
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 10    LDX #16
A0 10    LDY #16
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,424: Line 28,023:
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
EA      NOP
08      PHP
10 F8   BPL *-6
A9 0A    LDA #$0A ;hides 'ASL A'
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
00 00    BRK 0
D0 FB   BNE *-3
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
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
Line 27,440: Line 28,040:
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>EA       NOP
|-
EA       NOP
|<pre>48       PHA
8C       TXA
48      PHA
48      PHA
A2 1B    LDX #27
18      CLC
CA       DEX
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>48      PHA
98      TYA
48      PHA
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
38      SEC
A9 12   LDA #18
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
24 00    BIT $00
3A      NOP ;first loop only
E9 01    SBC #1
D0 FA   BNE *-4
D0 F7   BNE *-7
68      PLA
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 27,594: Line 28,205:
D0 FB    BNE *-3
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 dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 27,622: Line 28,243:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 27,759: Line 28,380:
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>8C       TXA
|<pre>EA       NOP
48       PHA
08       PHP
A2 10   LDX #16
18      CLC
A9 69   LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
10 F8   BPL *-6
D0 F9   BNE *-5
28       PLP</pre>||Clobbers A; and writes in stack
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8      SED ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
10 F8   BPL *-6
A9 0A    LDA #$0A ;hides 'ASL A'
68       PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
00 00    BRK 0
D0 FB   BNE *-3
28       PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
48      PHA
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
Line 27,792: Line 28,432:
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
08       PHP
48       PHA
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5
D0 F9    BNE *-5
28       PLP</pre>||Clobbers A, and S; and writes in stack
68       PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
EA      NOP
EA      NOP
48      PHA
48      PHA
48       PHA
18       CLC
38      SEC
A9 EB   LDA #$EB ;hides 'SBC #$7A'
A9 1C   LDA #28
7A      NOP ;first loop only
E9 01    SBC #1
D0 FA   BNE *-4
D0 F9   BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 27,812: Line 28,453:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
38      SEC
38      SEC
A9 12   LDA #18
A9 E9   LDA #$E9 ;hides 'SBC #$3A'
24 00    BIT $00
3A      NOP ;first loop only
E9 01    SBC #1
D0 FA   BNE *-4
D0 F7   BNE *-7
68      PLA
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 27,879: Line 28,522:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 EA    LDY #234 ;hides 'NOP'
C8      INY
D0 FC    BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 27,884: Line 28,532:
E8      INX
E8      INX
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 EA    LDY #234 ;hides 'NOP'
C8      INY
D0 FC    BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 27,904: Line 28,547:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>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
EA      NOP
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,978: Line 28,621:
68      PLA
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>08      PHP
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,991: Line 28,643:
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
E6 xx    INC @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
90 F5    BCC *-9</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,008: Line 28,669:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 28,041: Line 28,702:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 28,116: Line 28,777:
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
|-
!colspan="2"|12 bytes
|-
|<pre>48      PHA
48      PHA
08      PHP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 28,122: Line 28,796:
EA      NOP
EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 28,151: Line 28,825:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
48      PHA
38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 28,246: Line 28,932:
48      PHA
48      PHA
08      PHP
08      PHP
A0 1D    LDY #29
A2 1D    LDX #29
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
A2 1D    LDX #29
A0 1D    LDY #29
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 28,329: Line 29,015:
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 28,337: Line 29,023:
68      PLA
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
08      PHP
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 28,414: Line 29,110:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,454: Line 29,150:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>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 @rts14
Line 28,463: Line 29,159:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>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 28,481: Line 29,177:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 28,502: Line 29,208:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>04 00    NOP $00
08      PHP
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A      NOP ;first loop only
D0 FA    BNE *-4
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 28,575: Line 29,291:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Line 28,586: Line 29,302:
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
D0 FC    BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 28,594: Line 29,310:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 1E    LDY #30
A2 1E    LDX #30
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 1E    LDX #30
A0 1E    LDY #30
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,622: Line 29,338:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
Line 28,637: Line 29,353:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
Line 28,680: Line 29,396:
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 28,733: Line 29,449:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48      PHA
48      PHA
8C       TXA
18       CLC
48      PHA
A9 69   LDA #$69 ;hides 'ADC #$F8'
A2 1C   LDX #28
F8       SED ;first loop only
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX
68       PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
38      SEC
A9 15    LDA #21
EA      NOP
EA      NOP
E9 01    SBC #1
D0 F8    BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
10 F8   BPL *-6
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
00 00    BRK 0
D0 FB    BNE *-3
68      PLA
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
EA      NOP
08      PHP
48      PHA
38      SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 28,912: Line 29,597:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 28,924: Line 29,609:
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
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,930: Line 29,621:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,023: Line 29,708:
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
!colspan="2"|13 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C      TXA
48      PHA
48      PHA
A2 10    LDX #16
08      PHP
EA       NOP
48       PHA
EA       NOP
18       CLC
CA       DEX
A9 EB    LDA #$EB ;hides 'SBC #$7A'
D0 F9   BNE *-5
7A       NOP ;first loop only
D0 FA   BNE *-4
68      PLA
68      PLA
AA       TAX
28       PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
D0 FB    BNE *-3
68      PLA
28      PLP</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
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
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
D0 F5   BNE *-9</pre>||Clobbers A, S, Z&N, and C
A9 69   LDA #$69 ;hides 'ADC #$F8'
|-
F8       SED ;first loop only
!colspan="2"|14 bytes
|-
|<pre>EA       NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
10 F8   BPL *-6
48      PHA
38      SEC
A9 1C   LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
18      CLC
90 F5    BCC *-9</pre>||Clobbers A, Z&N, and C
90 00    BCC *+2
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 29,136: Line 29,781:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>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
EA      NOP
B0 FB   BCS *-3</pre>||Clobbers A, Z&N, C, and V
B0 F9   BCS *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,154: Line 29,799:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
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
EA      NOP
D0 FB   BNE *-3
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 29,178: Line 29,823:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
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
EA      NOP
D0 FB   BNE *-3
D0 F9   BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 29,292: Line 29,937:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,309: Line 29,954:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 29,330: Line 29,975:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-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
|-
|-
Line 29,386: Line 30,031:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68       PLA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
36 00   ROL $00,X
EA      NOP
76 00   ROR $00,X
18      CLC
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C
90 00    BCC *+2
18      CLC
D0 F5   BNE *-9</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|15 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
90 00   BCC *+2
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 29,418: Line 30,045:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 21    LDX #33
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 21    LDY #33
|<pre>A0 21    LDY #33
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 21    LDX #33
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #139
|<pre>A9      LDA #139
Line 29,456: Line 30,083:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
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
EA      NOP
B0 FB   BCS *-3</pre>||Clobbers A, Z&N, C, and V
B0 F9   BCS *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,498: Line 30,125:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,505: Line 30,139:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,600: Line 30,227:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 18    LDY #24 ;hides 'CLC'
88      DEY
D0 FC    BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 18    LDX #24 ;hides 'CLC'
|<pre>A2 18    LDX #24 ;hides 'CLC'
CA      DEX
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
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
|<pre>A9      LDA #140
Line 29,668: Line 30,295:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 29,681: Line 30,308:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 29,705: Line 30,332:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-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
|-
|-
Line 29,862: Line 30,489:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Line 29,877: Line 30,504:
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>48       PHA
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
Line 29,887: Line 30,514:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
Line 29,913: Line 30,540:
28      PLP</pre>||Clobbers S; requires @rts14; and writes in stack
28      PLP</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 29,993: Line 30,620:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 18    LDY #24
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 18    LDX #24
|<pre>A2 18    LDX #24
Line 29,998: Line 30,630:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 18    LDY #24
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,086: Line 30,713:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 30,176: Line 30,803:
D0 FA    BNE *-4</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; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 30,220: Line 30,847:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!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
|<pre>A0 22    LDY #34
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #144
|<pre>A9      LDA #144
Line 30,288: Line 30,915:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
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
EA      NOP
B0 FB   BCS *-3
B0 F9   BCS *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 30,310: Line 30,937:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
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
EA      NOP
B0 FB   BCS *-3
B0 F9   BCS *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 30,327: Line 30,954:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
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
EA      NOP
D0 FB   BNE *-3
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 30,354: Line 30,981:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 30,477: Line 31,104:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 30,501: Line 31,128:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 30,550: Line 31,177:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 22    LDY #34
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 30,555: Line 31,187:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 22    LDY #34
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,640: Line 31,267:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
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
EA      NOP
B0 FB   BCS *-3
B0 F9   BCS *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
48      PHA
48      PHA
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
EA      NOP
B0 FB   BCS *-3
B0 F9   BCS *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 30,696: Line 31,323:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 30,873: Line 31,500:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 30,900: Line 31,527:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 31,072: Line 31,699:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
18      CLC
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C
90 00   BCC *+2
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,378: Line 32,002:
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
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
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
Line 31,402: Line 32,026:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C
18      CLC
90 00   BCC *+2
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,510: Line 32,131:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
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
EA      NOP
B0 FB   BCS *-3
B0 F9   BCS *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 31,523: Line 32,144:
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C
18      CLC
90 00   BCC *+2
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,579: Line 32,197:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 14    LDY #20 ;hides 'NOP zp,X'
EA      NOP
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 14    LDX #20 ;hides 'NOP zp,X'
|<pre>A2 14    LDX #20 ;hides 'NOP zp,X'
Line 31,584: Line 32,207:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|<pre>A0 14    LDY #20 ;hides 'NOP zp,X'
EA      NOP
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 31,602: Line 32,220:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>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
48      PHA
48      PHA
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,620: Line 32,238:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>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
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>EA       NOP
|<pre>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
04 00    NOP $00
04 00    NOP $00
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 13    LDX #19
A0 13    LDY #19
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 13    LDY #19
A2 13    LDX #19
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 31,741: Line 32,359:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
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
Line 31,766: Line 32,384:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F5   BCC *-9</pre>||Clobbers A, S, Z&N, and C
18      CLC
90 00   BCC *+2
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 31,781: Line 32,396:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C
18      CLC
90 00   BCC *+2
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,815: Line 32,427:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
EA      NOP
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,821: Line 32,439:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,848: Line 32,460:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 22    LDX #34
A0 22    LDY #34
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 22    LDY #34
A2 22    LDX #34
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,913: Line 32,525:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
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
EA      NOP
B0 FB   BCS *-3
B0 F9   BCS *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 31,926: Line 32,538:
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C; and requires @zptemp
18      CLC
90 00   BCC *+2
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 31,941: Line 32,550:
|<pre>EA      NOP
|<pre>EA      NOP
A5 00    LDA $00
A5 00    LDA $00
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C
18      CLC
90 00   BCC *+2
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,958: Line 32,564:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 24    LDY #36
|<pre>A0 24    LDY #36
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #154
|<pre>A9      LDA #154
Line 32,147: Line 32,753:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FC   BNE *-2
D0 FA   BNE *-4
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
Line 32,172: Line 32,778:
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
90 F3    BCC *-11</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F5    BCC *-9</pre>||Clobbers A, S, Z&N, and C
18      CLC
|-
90 00    BCC *+2
|<pre>18      CLC
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 F4   BNE *-10</pre>||Clobbers A, S, Z&N, and C
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
90 F3   BCC *-11</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 32,191: Line 32,812:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C
18      CLC
90 00   BCC *+2
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 32,263: Line 32,881:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 23    LDX #35
A0 23    LDY #35
CA       DEX
88       DEY
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 23    LDY #35
A2 23    LDX #35
88       DEY
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 32,366: Line 32,984:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>68      PLA
D0 FD    BNE *-1
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
18      CLC
76 00    ROR $00,X
90 00   BCC *+2
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C
18      CLC
D0 F6    BNE *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 32,388: Line 33,005:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 1A    LDY #26
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1A    LDX #26
|<pre>A2 1A    LDX #26
Line 32,394: Line 33,016:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1A   LDY #26
|<pre>38      SEC
EA       NOP
A9 EB   LDA #$EB ;hides 'SBC #$DA'
88      DEY
DA       NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 32,809: Line 33,431:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD   BNE *-1
36 00   ROL $00,X
A9 0A   LDA #$0A ;hides 'ASL A'
76 00   ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F5   BCC *-9</pre>||Clobbers A, Z&N, and C
18      CLC
90 00   BCC *+2
18      CLC
D0 F6    BNE *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 32,841: Line 33,462:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
A0 24    LDY #36
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 32,846: Line 33,472:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 24    LDY #36
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 32,962: Line 33,583:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>EA       NOP
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 32,981: Line 33,602:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!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
|<pre>A2 25    LDX #37
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 25    LDY #37
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 32,997: Line 33,618:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,009: Line 33,636:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 D8    LDY #216 ;hides 'CLD'
C8      INY
C8      INY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,016: Line 33,650:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 D8    LDY #216 ;hides 'CLD'
C8      INY
C8      INY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,029: Line 33,656:
E9 01    SBC #1
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>04 00    NOP $00
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 33,060: Line 33,693:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
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
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 FA   BNE *-4
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
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
85 xx    STA @zptemp
85 xx    STA @zptemp
D0 FA   BNE *-4
D0 F8   BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
Line 33,085: Line 33,718:
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
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
04 00    NOP $00
04 00    NOP $00
D0 FA   BNE *-4
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
48       PHA
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
04 00    NOP $00
04 00    NOP $00
D0 FA   BNE *-4
D0 F8   BNE *-6
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 33,217: Line 33,850:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>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
48      PHA
48      PHA
B0 FB   BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
B0 F9   BCS *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|<pre>68      PLA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,249: Line 33,888:
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>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
85 xx    STA @zptemp
85 xx    STA @zptemp
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
B0 F8   BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 33,261: Line 33,900:
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>EA       NOP
|<pre>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
04 00    NOP $00
04 00    NOP $00
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
B0 F8   BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 33,280: Line 33,919:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 23    LDY #35
A2 23    LDX #35
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 23    LDX #35
A0 23    LDY #35
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 33,337: Line 33,976:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>68       PLA
|<pre>18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00   ROL $00,X
EA      NOP
76 00   ROR $00,X
EA      NOP
90 F4    BCC *-10</pre>||Clobbers A, Z&N, and C
EA      NOP
EA      NOP
18      CLC
D0 F4   BNE *-10</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|15 bytes
|-
|<pre>EA      NOP
EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 33,563: Line 34,182:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|6 bytes
!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
|<pre>48      PHA
Line 33,568: Line 34,192:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 25    LDY #37
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 33,642: Line 34,261:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
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
85 xx    STA @zptemp
85 xx    STA @zptemp
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
B0 F8   BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 33,672: Line 34,291:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA       NOP
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
04 00    NOP $00
04 00    NOP $00
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
B0 F8   BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,757: Line 34,376:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|16 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
90 F4    BCC *-10</pre>||Clobbers A, Z&N, and C
EA      NOP
EA      NOP
18      CLC
D0 F4    BNE *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 33,842: Line 34,440:
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
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|<pre>48      PHA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FA    BNE *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 34,038: Line 34,650:
00 00    BRK 0
00 00    BRK 0
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>68      PLA
68      PLA
38      SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA      NOP ;first loop only
D0 FA    BNE *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 34,256: Line 34,875:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>38      SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A      NOP ;first loop only
EA      NOP
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,316: Line 34,941:
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>A2 E0    LDX #224 ;hides 'CPX #imm'
2C 24 EA BIT $EA24 ;hides 'BIT zp'
E8      INX
E8      INX
D0 F8    BNE *-6</pre>||Clobbers X, Z&N, C, and V
|-
|-
|<pre>A0 E0    LDY #224 ;hides 'CPX #imm'
|<pre>A0 E0    LDY #224 ;hides 'CPX #imm'
Line 34,322: Line 34,953:
C8      INY
C8      INY
D0 F8    BNE *-6</pre>||Clobbers Y, Z&N, C, and V
D0 F8    BNE *-6</pre>||Clobbers Y, Z&N, C, and V
|-
|<pre>A2 E0    LDX #224 ;hides 'CPX #imm'
2C 24 EA BIT $EA24 ;hides 'BIT zp'
E8      INX
E8      INX
D0 F8    BNE *-6</pre>||Clobbers X, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,362: Line 34,987:
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>A2 0C    LDX #12 ;hides 'NOP abs'
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
A5 00    LDA $0
A5 00    LDA $0
68      PLA
68      PLA
48      PHA
48      PHA
CA       DEX
88       DEY
D0 F8    BNE *-6</pre>||Clobbers A, X, and Z&N; and requires support for unofficial opcodes
D0 F8    BNE *-6</pre>||Clobbers A, Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
|<pre>A2 0C    LDX #12 ;hides 'NOP abs'
A5 00    LDA $0
A5 00    LDA $0
68      PLA
68      PLA
48      PHA
48      PHA
88       DEY
CA       DEX
D0 F8    BNE *-6</pre>||Clobbers A, Y, and Z&N; and requires support for unofficial opcodes
D0 F8    BNE *-6</pre>||Clobbers A, X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,407: Line 35,032:
D0 F6    BNE *-8</pre>||Clobbers X, Y, and Z&N
D0 F6    BNE *-8</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A2 25    LDX #37
A2 25    LDX #37
CA      DEX
CA      DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
38      SEC
B0 F8   BCS *-6</pre>||Clobbers A, X, Z&N, and C
90 F7   BCC *-7</pre>||Clobbers A, X, Z&N, and C
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A0 25    LDY #37
A0 25    LDY #37
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
38      SEC
B0 F8   BCS *-6</pre>||Clobbers A, Y, Z&N, and C
90 F7   BCC *-7</pre>||Clobbers A, Y, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,494: Line 35,119:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
E8       INX ;first loop only
C8       INY ;first loop only
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
CA       DEX
88       DEY
D0 F3    BNE *-11</pre>||Clobbers A, X, and Z&N
D0 F3    BNE *-11</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
C8       INY ;first loop only
E8       INX ;first loop only
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
88       DEY
CA       DEX
D0 F3    BNE *-11</pre>||Clobbers A, Y, and Z&N
D0 F3    BNE *-11</pre>||Clobbers A, X, and Z&N
|-
|-
|}
|}

Revision as of 09:33, 15 March 2016

Delay code

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

All code samples are written for CA65.

Assumptions:

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

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

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

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

Explanations on the requirements:

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

{{#css:

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

}}


2 cycles

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


3 cycles

1 bytes
48       PHA
Clobbers S; and writes in stack
2 bytes
A5 00    LDA $00
Clobbers A, and Z&N
A4 00    LDY $00
Clobbers Y, and Z&N
A6 00    LDX $00
Clobbers X, and Z&N
C5 00    CMP $00
Clobbers Z&N, and C
24 00    BIT $00
Clobbers Z&N, and V
85 xx    STA @zptemp
Requires @zptemp
04 00    NOP $00
Requires support for unofficial opcodes
3 bytes
4C xx xx JMP *+3
Not relocatable code
  • 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
EA       NOP
No requirements
  • zp-indexed modes such as LDA $00,X also do 4 cycles, but having side effects, these two-byte instructions are inferior to a simple 2 × NOP.
  • There is also an unofficial opcode NOP $00,X (34 00), but there is no reason to use this instruction when the official equivalent has the same performance.


5 cycles

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


6 cycles

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


7 cycles

2 bytes
08       PHP
28       PLP
Writes in stack
68       PLA
48       PHA
Clobbers A, and Z&N
3 bytes
EA       NOP
E6 xx    INC @zptemp
Clobbers Z&N; and requires @zptemp
4 bytes
EA       NOP
EA       NOP
A4 00    LDY $00
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A6 00    LDX $00
Clobbers X, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
5 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code
  • PHP-PLP is very efficient for 7 cycles of delay, but it does modify stack contents. S register remains 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
68       PLA
Clobbers A, S, and Z&N
3 bytes
BA       TSX
68       PLA
9A       TXS
Clobbers A, X, and Z&N
EA       NOP
48       PHA
48       PHA
Clobbers S; and writes in stack
4 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements
  • 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
EA       NOP
E6 xx    INC @zptemp
Clobbers Z&N; and requires @zptemp
5 bytes
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
6 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code
  • Jumping into the middle of another instruction is a very efficient way of reducing code size. Note that all code samples using branches on this page require that no page wrap occurs.


10 cycles

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


11 cycles

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


12 cycles

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


13 cycles

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


14 cycles

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


15 cycles

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


16 cycles

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


17 cycles

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


18 cycles

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


19 cycles

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


20 cycles

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


21 cycles

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


22 cycles

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


23 cycles

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


24 cycles

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


25 cycles

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


26 cycles

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


27 cycles

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


28 cycles

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


29 cycles

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


30 cycles

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


31 cycles

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


32 cycles

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


33 cycles

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


34 cycles

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


35 cycles

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


36 cycles

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


37 cycles

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


38 cycles

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


39 cycles

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


40 cycles

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


41 cycles

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


42 cycles

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


43 cycles

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


44 cycles

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


45 cycles

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


46 cycles

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


47 cycles

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


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 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 09    LDY #9
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 08    LDX #8
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
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'
D0 FD    BNE *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
9 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
10 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
12 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
15 bytes
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
16 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
24 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


49 cycles

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


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
A0 07    LDY #7
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
B0 FB    BCS *-3
Clobbers A, Z&N, C, and V
7 bytes
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
68       PLA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
28       PLP
Clobbers A, S, and Z&N; and writes in stack
68       PLA
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, S, Z&N, and C
08       PHP
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
90 FC    BCC *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 06    LDX #6
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 06    LDY #6
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
90 FC    BCC *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
9 bytes
08       PHP
48       PHA
A9 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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
15 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
10 F4    BPL *-10
Clobbers A, and Z&N
17 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


51 cycles

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


52 cycles

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


53 cycles

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


54 cycles

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


55 cycles

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


56 cycles

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


57 cycles

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


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


59 cycles

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


60 cycles

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


61 cycles

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


62 cycles

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


63 cycles

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


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
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
EA       NOP
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
48       PHA
18       CLC
10 FA    BPL *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #30
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #30
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 08    LDY #8
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 08    LDX #8
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C
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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
19 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
10 F1    BPL *-13
Clobbers A, and Z&N
22 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


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
A2 08    LDX #8
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A0 08    LDY #8
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
EA       NOP
EA       NOP
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
08       PHP
A9       LDA #31
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #31
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and not relocatable code
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
EA       NOP
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
00 00    BRK 0
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
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
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
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FC    BMI *-2
68       PLA
28       PLP
Writes in stack
26 00    ROL $00
66 00    ROR $00
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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
19 bytes
EA       NOP
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
Clobbers A, and Z&N
22 bytes
E6 xx    INC @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
23 bytes
EA       NOP
C5 00    CMP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
24 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


66 cycles

5 bytes
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #39
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
08       PHP
A9       LDA #32
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #32
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
38       SEC
A9 09    LDA #9
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
A5 00    LDA $00
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
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
68       PLA
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
04 00    NOP $00
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
08       PHP
A4 00    LDY $00
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C
08       PHP
48       PHA
A9       LDA #25
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
00 00    BRK 0
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$EA'
EA       NOP ;first loop only
EA       NOP
10 F9    BPL *-5
68       PLA
28       PLP
Writes in stack
17 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
19 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
10 F0    BPL *-14
Clobbers A, and Z&N
23 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


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
E6 xx    INC @zptemp
A2 88    LDX #136 ;hides 'DEY'
CA       DEX
30 FC    BMI *-2
Clobbers X, Y, and Z&N; and requires @zptemp
A2 06    LDX #6
48       PHA
48       PHA
CA       DEX
D0 F9    BNE *-5
Clobbers X, S, and Z&N; and writes in stack
A0 06    LDY #6
48       PHA
48       PHA
88       DEY
D0 F9    BNE *-5
Clobbers Y, S, and Z&N; and writes in stack
A2 06    LDX #6
EA       NOP
68       PLA
CA       DEX
D0 F9    BNE *-5
Clobbers A, X, S, and Z&N
A0 06    LDY #6
EA       NOP
68       PLA
88       DEY
D0 F9    BNE *-5
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 00    NOP $00
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
08       PHP
A9       LDA #33
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #33
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A4 00    LDY $00
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A6 00    LDX $00
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
90 FA    BCC *-4
Clobbers A, Z&N, and C
9 bytes
8C       TXA
48       PHA
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A; requires @zptemp; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
EA       NOP
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #26
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FA    BMI *-4
68       PLA
28       PLP
Writes in stack
17 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
19 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
10 EE    BPL *-16
Clobbers A, and Z&N
23 bytes
EA       NOP
E6 xx    INC @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
24 bytes
EA       NOP
EA       NOP
C5 00    CMP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes


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 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #34
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #34
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires @zptemp
9 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
68       PLA
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C
EA       NOP
04 00    NOP $00
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
08       PHP
48       PHA
A9       LDA #27
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
10 FB    BPL *-3
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
EA       NOP
18       CLC
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack
17 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
68       PLA
48       PHA
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


69 cycles

5 bytes
A0 88    LDY #136 ;hides 'DEY'
EA       NOP
30 FC    BMI *-2
Clobbers Y, and Z&N
A2 0A    LDX #10 ;hides 'ASL A'
CA       DEX
D0 FC    BNE *-2
Clobbers A, X, Z&N, and C
A9       LDA #42
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
A2 88    LDX #136 ;hides 'DEY'
CA       DEX
30 FC    BMI *-2
28       PLP
Clobbers X, and Y; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
10 FA    BPL *-4
Clobbers A, Z&N, and C; and writes in stack
08       PHP
A9       LDA #35
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #35
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
00 00    BRK 0
08       PHP
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
28       PLP
Clobbers Y; requires dummy interrupt handler; and writes in stack
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 00    NOP $00
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 00    ROL $00,X
76 00    ROR $00,X
90 F9    BCC *-5
Clobbers A, Z&N, and C
18 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
20 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
10 EE    BPL *-16
Clobbers A, and Z&N
24 bytes
EA       NOP
EA       NOP
E6 xx    INC @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp


70 cycles

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


71 cycles

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


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


73 cycles

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


74 cycles

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


75 cycles

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


76 cycles

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


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


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
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
30 FA    BMI *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #44
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #44
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
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
EA       NOP
B0 FA    BCS *-4
68       PLA
28       PLP
Writes in stack
20 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
10 ED    BPL *-17
Clobbers A, and Z&N


79 cycles

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


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
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
30 FC    BMI *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
EA       NOP
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #46
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #46
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0B    LDA #11
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
68       PLA
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
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
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
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 00    NOP $00
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
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
23 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
10 ED    BPL *-17
Clobbers A, and Z&N


81 cycles

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


82 cycles

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


83 cycles

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


84 cycles

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


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
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP
28       PLP
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and writes in stack
EA       NOP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
08       PHP
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
90 FA    BCC *-4
Clobbers A, Z&N, and C; and writes in stack
EA       NOP
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
E6 xx    INC @zptemp
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
08       PHP
48       PHA
A9       LDA #44
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
Clobbers A, Z&N, and C
22 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
48       PHA
Clobbers A, S, and Z&N
24 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
10 EA    BPL *-20
Clobbers A, and Z&N


86 cycles

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


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


88 cycles

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


89 cycles

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


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


91 cycles

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


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


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


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
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 00    LDY $00
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
08       PHP
A9       LDA #60
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #60
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
08       PHP
28       PLP
10 F9    BPL *-5
Clobbers A, Z&N, and C; and writes in stack
38       SEC
A9 0D    LDA #13
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
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 FB    BNE *-3
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 F9    BCS *-5
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack
24 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


95 cycles

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


96 cycles

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


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 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A0 0C    LDY #12
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 08    LDX #8
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and writes in stack
A0 08    LDY #8
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and writes in stack
A2 0C    LDX #12
A5 00    LDA $00
CA       DEX
D0 F9    BNE *-5
Clobbers A, X, and Z&N
A0 0C    LDY #12
A5 00    LDA $00
88       DEY
D0 F9    BNE *-5
Clobbers A, Y, and Z&N
A2 0C    LDX #12
A4 00    LDY $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, Y, and Z&N
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 00    CMP $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, Z&N, and C
A0 0C    LDY #12
C5 00    CMP $00
88       DEY
D0 F9    BNE *-5
Clobbers Y, Z&N, and C
A0 0C    LDY #12
24 00    BIT $00
88       DEY
D0 F9    BNE *-5
Clobbers Y, Z&N, and V
A2 0C    LDX #12
24 00    BIT $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, Z&N, and V
A2 0C    LDX #12
85 xx    STA @zptemp
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and requires @zptemp
A0 0C    LDY #12
85 xx    STA @zptemp
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and requires @zptemp
A2 0C    LDX #12
04 00    NOP $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and requires support for unofficial opcodes
A0 0C    LDY #12
04 00    NOP $00
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and requires support for unofficial opcodes
08       PHP
A9       LDA #63
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #63
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
68       PLA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
EA       NOP
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
08       PHP
48       PHA
A9       LDA #56
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


98 cycles

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


99 cycles

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


100 cycles

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


101 cycles

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


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
48       PHA
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 0E    LDX #14
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A0 0B    LDY #11
68       PLA
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, S, and Z&N
EA       NOP
A2 0B    LDX #11
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
08       PHP
A9       LDA #68
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #68
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
A6 00    LDX $00
A2 0E    LDX #14
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A4 00    LDY $00
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
EA       NOP
B0 F8    BCS *-6
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
EA       NOP
EA       NOP
08       PHP
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0B    LDA #11
EA       NOP
EA       NOP
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #61
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack
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


103 cycles

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


104 cycles

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


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


106 cycles

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


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


108 cycles

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


109 cycles

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


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


111 cycles

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


112 cycles

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


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


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


115 cycles

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


116 cycles

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


117 cycles

5 bytes
A9       LDA #90
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A2 0D    LDX #13 ;hides 'ORA abs'
A5 00    LDA $0
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, and Z&N
A0 0D    LDY #13 ;hides 'ORA abs'
A5 00    LDA $0
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, and Z&N
48       PHA
48       PHA
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
48       PHA
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; 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
08       PHP
A9       LDA #83
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #83
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
EA       NOP
A2 10    LDX #16
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 10    LDY #16
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
EA       NOP
EA       NOP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V
9 bytes
98       TYA
48       PHA
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
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
08       PHP
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
90 F8    BCC *-6
Clobbers A, Z&N, and C


118 cycles

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


119 cycles

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


120 cycles

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


121 cycles

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


122 cycles

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


123 cycles

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


124 cycles

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


125 cycles

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


126 cycles

5 bytes
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #99
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
08       PHP
28       PLP
30 FB    BMI *-3
28       PLP
Clobbers Y; and writes in stack
20 xx xx JSR @rts15
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack
EA       NOP
00 00    BRK 0
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
08       PHP
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
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
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
9 bytes
08       PHP
A5 00    LDA $00
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 00    LDX $00
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
24 00    BIT $00
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 00    LDA $00
38       SEC
A9 18    LDA #24
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
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 00    BIT $00
28       PLP
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
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
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


127 cycles

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


128 cycles

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


129 cycles

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


130 cycles

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


131 cycles

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


132 cycles

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


133 cycles

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


134 cycles

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


135 cycles

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


136 cycles

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


137 cycles

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


138 cycles

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


139 cycles

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


140 cycles

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


141 cycles

5 bytes
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #114
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
A9       LDA #107
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #107
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 13    LDX #19
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
08       PHP
28       PLP
30 F9    BMI *-5
Clobbers A, Z&N, C, and V; and writes in stack
04 00    NOP $00
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
08       PHP
48       PHA
A9       LDA #100
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
20 xx xx JSR @rts14
B0 F9    BCS *-5
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
20 xx xx JSR @rts14
B0 F9    BCS *-5
68       PLA
Clobbers Z&N, C, and V; requires @rts14; and writes in stack
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
E6 xx    INC @zptemp
00 00    BRK 0
90 F9    BCC *-5
Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
68       PLA
98       TYA
48       PHA
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP
28       PLP
08       PHP
28       PLP
B0 F8    BCS *-6
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts15
10 F8    BPL *-6
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP
28       PLP
08       PHP
28       PLP
B0 F8    BCS *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
00 00    BRK 0
B0 FA    BCS *-4
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
D0 F7    BNE *-7
Clobbers A, S, Z&N, and C
13 bytes
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
90 F6    BCC *-8
Clobbers A, Z&N, and C


142 cycles

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


143 cycles

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


144 cycles

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


145 cycles

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


146 cycles

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


147 cycles

5 bytes
A9       LDA #120
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
EA       NOP
A0 12    LDY #18
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
A2 12    LDX #18
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A0 10    LDY #16
68       PLA
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, S, and Z&N
EA       NOP
A2 10    LDX #16
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #113
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #113
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
A0 10    LDY #16
EA       NOP
EA       NOP
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N
EA       NOP
A2 10    LDX #16
EA       NOP
EA       NOP
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
EA       NOP
EA       NOP
10 F8    BPL *-6
Clobbers A, Z&N, C, V, and D
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
D0 FB    BNE *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
EA       NOP
EA       NOP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
98       TYA
48       PHA
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 12    LDA #18
24 00    BIT $00
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
EA       NOP
08       PHP
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #106
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
12 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
D0 F6    BNE *-8
Clobbers A, S, Z&N, and C
13 bytes
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
D0 F6    BNE *-8
Clobbers A, Z&N, and C


148 cycles

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


149 cycles

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


150 cycles

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


151 cycles

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


152 cycles

5 bytes
A9       LDA #125
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48       PHA
48       PHA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
48       PHA
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A       TXS ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V
08       PHP
A9       LDA #118
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #118
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
EA       NOP
A2 15    LDX #21
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 15    LDY #21
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
9 bytes
8C       TXA
48       PHA
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 10    LDX #16
EA       NOP
EA       NOP
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
EA       NOP
EA       NOP
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 15    LDA #21
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
D0 FB    BNE *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
EA       NOP
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #111
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
14 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C


153 cycles

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


154 cycles

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


155 cycles

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


156 cycles

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


157 cycles

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


158 cycles

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


159 cycles

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


160 cycles

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


161 cycles

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


162 cycles

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


163 cycles

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


164 cycles

5 bytes
A9       LDA #137
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
7 bytes
A6 00    LDX $00
A2 20    LDX #32
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 00    LDY $00
A0 20    LDY #32
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 F9    BCS *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #130
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #130
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 0D    LDY #13
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #123
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack
14 bytes
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
D0 F5    BNE *-9
Clobbers A, Z&N, and C; and requires @zptemp
15 bytes
EA       NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
D0 F5    BNE *-9
Clobbers A, Z&N, and C


165 cycles

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


166 cycles

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


167 cycles

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


168 cycles

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


169 cycles

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


170 cycles

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


171 cycles

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


172 cycles

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


173 cycles

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


174 cycles

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


175 cycles

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


176 cycles

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


177 cycles

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


178 cycles

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


179 cycles

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


180 cycles

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


181 cycles

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


182 cycles

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


183 cycles

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


184 cycles

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


185 cycles

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


186 cycles

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


187 cycles

6 bytes
EA       NOP
A9       LDA #158
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
00 00    BRK 0
A2 E8    LDX #232 ;hides 'INX'
EA       NOP
D0 FC    BNE *-2
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0
A0 98    LDY #152 ;hides 'TYA'
88       DEY
30 FC    BMI *-2
Clobbers A, Y, and Z&N; requires dummy interrupt handler; and writes in stack
EA       NOP
A2 17    LDX #23
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A0 17    LDY #23
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
B0 F9    BCS *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
68       PLA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$DA'
DA       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #153
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #153
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
EA       NOP
A2 1A    LDX #26
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 1A    LDY #26
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 F8    BCS *-6
Clobbers A, Z&N, C, and V; and requires @zptemp
68       PLA
38       SEC
A9 24    LDA #36
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
B0 F8    BCS *-6
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
8C       TXA
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 17    LDA #23
24 00    BIT $00
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #146
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
14 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
90 F4    BCC *-10
Clobbers A, Z&N, and C


188 cycles

6 bytes
EA       NOP
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
68       PLA
A9       LDA #157
20 xx xx JSR delay_a_25_clocks
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 25    LDA #37
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #154
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #154
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
00 00    BRK 0
30 FA    BMI *-4
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
00 00    BRK 0
30 FA    BMI *-4
68       PLA
Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9       LDA #147
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
08       PHP
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
08       PHP
38       SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
EA       NOP
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
EA       NOP
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
24 00    BIT $00
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
00 00    BRK 0
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 C8    LDY #200 ;hides 'INY'
C8       INY
C8       INY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
EA       NOP
EA       NOP
E9 01    SBC #1
D0 F7    BNE *-7
68       PLA
28       PLP
Writes in stack
15 bytes
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
D0 F4    BNE *-10
Clobbers A, Z&N, and C; and requires @zptemp
16 bytes
EA       NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
D0 F4    BNE *-10
Clobbers A, Z&N, and C


189 cycles

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


190 cycles

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


191 cycles

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


192 cycles

7 bytes
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #158
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #158
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
38       SEC
A9 1B    LDA #27
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
A2 E0    LDX #224 ;hides 'CPX #imm'
B4 48    LDY $48,X ;hides 'PHA'
E8       INX
E8       INX
D0 F9    BNE *-5
Clobbers X, Y, S, Z&N, C, and V; and writes in stack
A2 E0    LDX #224 ;hides 'CPX #imm'
14 48    NOP $48,X ;hides 'PHA'
E8       INX
E8       INX
D0 F9    BNE *-5
Clobbers X, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
A0 E0    LDY #224 ;hides 'CPX #imm'
14 48    NOP $48,X ;hides 'PHA'
C8       INY
C8       INY
D0 F9    BNE *-5
Clobbers Y, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
8C       TXA
48       PHA
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 17    LDX #23
24 00    BIT $00
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
C5 00    CMP $00
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
A2 E0    LDX #224 ;hides 'CPX #imm'
2C 24 EA BIT $EA24 ;hides 'BIT zp'
E8       INX
E8       INX
D0 F8    BNE *-6
Clobbers X, Z&N, C, and V
A0 E0    LDY #224 ;hides 'CPX #imm'
2C 24 EA BIT $EA24 ;hides 'BIT zp'
C8       INY
C8       INY
D0 F8    BNE *-6
Clobbers Y, Z&N, C, and V
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
A0 0D    LDY #13 ;hides 'ORA abs'
AD 00 68 LDA $6800 ;hides 'PLA'
EA       NOP
88       DEY
D0 F8    BNE *-6
Clobbers A, Y, S, and Z&N
A2 0D    LDX #13 ;hides 'ORA abs'
AD 00 68 LDA $6800 ;hides 'PLA'
EA       NOP
CA       DEX
D0 F8    BNE *-6
Clobbers A, X, S, and Z&N
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
B0 FA    BCS *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
A0 0C    LDY #12 ;hides 'NOP abs'
A5 00    LDA $0
68       PLA
48       PHA
88       DEY
D0 F8    BNE *-6
Clobbers A, Y, and Z&N; and requires support for unofficial opcodes
A2 0C    LDX #12 ;hides 'NOP abs'
A5 00    LDA $0
68       PLA
48       PHA
CA       DEX
D0 F8    BNE *-6
Clobbers A, X, and Z&N; and requires support for unofficial opcodes
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #151
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1A    LDA #26
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
A0 01    LDY #1
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
88       DEY
D0 F6    BNE *-8
Clobbers X, Y, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
B0 F8    BCS *-6
Clobbers A, X, Z&N, and C
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
B0 F8    BCS *-6
Clobbers A, Y, Z&N, and C
48       PHA
38       SEC
A9 1A    LDA #26
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
Clobbers Z&N, C, and V; and writes in stack
A2 0C    LDX #12 ;hides 'NOP abs'
44 00    NOP $0
EA       NOP
E6 xx    INC @zptemp
CA       DEX
D0 F7    BNE *-7
Clobbers X, and Z&N; and requires @zptemp, and support for unofficial opcodes
A0 0C    LDY #12 ;hides 'NOP abs'
44 00    NOP $0
EA       NOP
E6 xx    INC @zptemp
88       DEY
D0 F7    BNE *-7
Clobbers Y, and Z&N; and requires @zptemp, and support for unofficial opcodes
11 bytes
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
A0 0C    LDY #12 ;hides 'NOP abs'
44 00    NOP $0
EA       NOP
EA       NOP
04 00    NOP $00
88       DEY
D0 F6    BNE *-8
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 0C    LDX #12 ;hides 'NOP abs'
44 00    NOP $0
EA       NOP
EA       NOP
04 00    NOP $00
CA       DEX
D0 F6    BNE *-8
Clobbers X, and Z&N; and requires support for unofficial opcodes
12 bytes
A2 EC    LDX #236 ;hides 'CPX abs'
E6 xx    INC @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
E8       INX
E8       INX
D0 F5    BNE *-9
Clobbers X, Z&N, and C; and requires @zptemp
A0 EC    LDY #236 ;hides 'CPX abs'
E6 xx    INC @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
C8       INY
C8       INY
D0 F5    BNE *-9
Clobbers Y, Z&N, and C; and requires @zptemp
14 bytes
A0 05    LDY #5 ;hides 'ORA zp'
C8       INY ;first loop only
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
88       DEY
D0 F3    BNE *-11
Clobbers A, Y, and Z&N
A2 05    LDX #5 ;hides 'ORA zp'
E8       INX ;first loop only
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
CA       DEX
D0 F3    BNE *-11
Clobbers A, X, and Z&N


See also